SDDS ToolKit Programs and Libraries for C and Python
|
Statistical distribution testing tool for SDDS datasets.
This program performs statistical tests on columns of data from an SDDS file against specified distributions (Gaussian, Poisson, Student's t, or Chi-Squared). It supports both Kolmogorov-Smirnov (KS) and Chi-Squared tests, along with the ability to use user-defined distributions provided via external files.
Required | Description |
---|---|
-column | Specifies the columns to test, with optional sigma columns for error handling. |
Optional | Description |
---|---|
-pipe | Enables piping for input and/or output data streams. |
-exclude | Excludes specified columns from testing. |
-degreesOfFreedom | Specifies degrees of freedom as a fixed value or a parameter. |
-test | Selects the test to perform: Kolmogorov-Smirnov or Chi-Squared. |
-fileDistribution | Uses a user-defined distribution from a file. |
-gaussian | Tests against a Gaussian distribution. |
-poisson | Tests against a Poisson distribution. |
-student | Tests against a Student's t distribution. |
-chisquared | Tests against a Chi-Squared distribution. |
-majorOrder | Specifies the data ordering: 'row' or 'column'. |
-threads | Number of threads for parallel computations. |
-test
option is incompatible with specifying multiple distributions (e.g., -gaussian
and -poisson
).-fileDistribution
-gaussian
-poisson
-student
-chisquared
Definition in file sddsdistest.c.
Go to the source code of this file.
Functions | |
void | compareToFileDistribution (char *output, long testCode, SDDS_DATASET *SDDSin, char **columnName, long columnNames, char *distFile, char *distFileIndep, char *distFileDepen) |
void | compareToDistribution (char *output, long testCode, SDDS_DATASET *SDDSin, char **columnName, char **sigmaName, long columnNames, long distCode, long degreesFree, char *dofParameter, short columnMajorOrder, int threads) |
void | ksTestWithFunction (double *data, int64_t rows, double(*CDF)(double x), double *statReturn, double *sigLevelReturn) |
void | chiSquaredTestWithFunction (double *data, int64_t rows, double(*PDF)(double x), double *statReturn, double *sigLevelReturn) |
int | main (int argc, char **argv) |
double | gaussianPDF (double x) |
double | gaussianCDF (double x) |
double | poissonPDF (double xd) |
double | poissonCDF (double xd) |
double | studentPDF (double t) |
double | studentCDF (double t) |
double | chiSquaredPDF (double x) |
double | chiSquaredCDF (double x) |
double chiSquaredCDF | ( | double | x | ) |
Definition at line 402 of file sddsdistest.c.
double chiSquaredPDF | ( | double | x | ) |
Definition at line 392 of file sddsdistest.c.
void chiSquaredTestWithFunction | ( | double * | data, |
int64_t | rows, | ||
double(* | PDF )(double x), | ||
double * | statReturn, | ||
double * | sigLevelReturn ) |
Definition at line 532 of file sddsdistest.c.
void compareToDistribution | ( | char * | output, |
long | testCode, | ||
SDDS_DATASET * | SDDSin, | ||
char ** | columnName, | ||
char ** | sigmaName, | ||
long | columnNames, | ||
long | distCode, | ||
long | degreesFree, | ||
char * | dofParameter, | ||
short | columnMajorOrder, | ||
int | threads ) |
Definition at line 411 of file sddsdistest.c.
void compareToFileDistribution | ( | char * | output, |
long | testCode, | ||
SDDS_DATASET * | SDDSin, | ||
char ** | columnName, | ||
long | columnNames, | ||
char * | distFile, | ||
char * | distFileIndep, | ||
char * | distFileDepen ) |
Definition at line 314 of file sddsdistest.c.
double gaussianCDF | ( | double | x | ) |
Definition at line 337 of file sddsdistest.c.
double gaussianPDF | ( | double | x | ) |
Definition at line 331 of file sddsdistest.c.
void ksTestWithFunction | ( | double * | data, |
int64_t | rows, | ||
double(* | CDF )(double x), | ||
double * | statReturn, | ||
double * | sigLevelReturn ) |
Definition at line 536 of file sddsdistest.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 168 of file sddsdistest.c.
double poissonCDF | ( | double | xd | ) |
Definition at line 359 of file sddsdistest.c.
double poissonPDF | ( | double | xd | ) |
Definition at line 351 of file sddsdistest.c.
double studentCDF | ( | double | t | ) |
Definition at line 383 of file sddsdistest.c.
double studentPDF | ( | double | t | ) |
Definition at line 379 of file sddsdistest.c.