/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
/* program: sddsdistest.c
* purpose: test data against various distributions
* M. Borland, August 1995.
$Log: sddsdistest.c,v $
Revision 1.8 2005/11/04 22:46:13 soliday
Updated code to be compiled by a 64 bit processor.
Revision 1.7 2005/10/18 14:14:01 jiaox
Corrected PoissonCDF function. Fixed a bug of @parameterName option that did not work.
Revision 1.6 2002/08/14 17:12:44 soliday
Added Open License
Revision 1.5 2001/01/10 19:35:35 soliday
Standardized usage message.
Revision 1.4 1999/07/12 21:11:56 soliday
Added link to fdlibm library for lgamma function on WIN32
Revision 1.3 1999/05/25 19:08:31 soliday
Removed compiler warning on linux.
Revision 1.2 1999/01/06 19:54:42 borland
Fixed the version number in the usage message.
Revision 1.1 1997/01/15 18:39:22 borland
Found this old program in an old SDDS directory. Think it is ok, but
was accidentally left out of repository.
*/
#include "mdb.h"
#include "SDDS.h"
#include "SDDSutils.h"
#include "scan.h"
#if defined(_WIN32)
#include "fdlibm.h"
#endif
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);
void ksTestWithFunction(double *data, long rows, double (*CDF)(double x),
double *statReturn, double *sigLevelReturn);
void chiSquaredTestWithFunction(double *data, long rows, double (*PDF)(double x),
double *statReturn, double *sigLevelReturn);
static char *USAGE = "sddsdistest [] [