|
SDDS ToolKit Programs and Libraries for C and Python
|
Provides routines to determine the top-level and base-level of data.
This file contains functions to find the top-level and base-level of a dataset, as well as to identify crossing points within the data. The routines utilize histogram binning and statistical analysis to compute these levels.
Definition in file topbase.c.
#include "mdb.h"Go to the source code of this file.
Functions | |
| long | findTopBaseLevels (double *top, double *base, double *data, int64_t points, long bins, double sigmasRequired) |
| Finds the top-level and base-level of a dataset. | |
| int64_t | findCrossingPoint (int64_t start, double *data, int64_t points, double level, long direction, double *indepData, double *location) |
| Finds the crossing point in the data where the data crosses a specified level. | |
| int64_t findCrossingPoint | ( | int64_t | start, |
| double * | data, | ||
| int64_t | points, | ||
| double | level, | ||
| long | direction, | ||
| double * | indepData, | ||
| double * | location ) |
Finds the crossing point in the data where the data crosses a specified level.
| start | The starting index to search for the crossing point. |
| data | Pointer to the array of data points. |
| points | Number of data points in the array. |
| level | The level at which to find the crossing point. |
| direction | The direction of crossing (positive for upward, negative for downward). |
| indepData | Pointer to the independent data array corresponding to the data points. Can be NULL. |
| location | Pointer to store the interpolated location of the crossing point. Can be NULL. |
Definition at line 118 of file topbase.c.
| long findTopBaseLevels | ( | double * | top, |
| double * | base, | ||
| double * | data, | ||
| int64_t | points, | ||
| long | bins, | ||
| double | sigmasRequired ) |
Finds the top-level and base-level of a dataset.
| top | Pointer to store the computed top-level value. |
| base | Pointer to store the computed base-level value. |
| data | Pointer to the array of data points. |
| points | Number of data points in the array. |
| bins | Number of bins to use for histogram computation. If <= 0, a default bin factor is applied. |
| sigmasRequired | Number of standard deviations required for determining significant histogram peaks. |
Definition at line 36 of file topbase.c.