Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

kuiperkolms.h File Reference

Kolmogorov-Smirnov statistics with Kuiper's modification. More...

Go to the source code of this file.

Typedefs

typedef double (* Cdftype_ )(double, const void *)
 The signature of a function that calculates the CDF of a distribution. More...


Functions

double kolms_vstat1 (const double *Data, int n, Cdftype_ Cdf, const void *Cdfpars)
 Calculates the Kuiper-modified Kolmogorov-Smirnov statistics probability by comparing the SORTED discrete abscissa values in Data (n long) to the known distribution given by the CDF Cdf. More...

double kolms_vstat2 (const double *Data1, int n1, const double *Data2, int n2)
 Calculates the Kuiper-modified Kolmogorov-Smirnov statistics probability by comparing the SORTED discrete abscissa values in Data1 (n1 long) to the SORTED discrete abscissa values in Data2 (n2 long).

void ascend_dblsort (double *d, int n)
 Sorts the n-long double array d into ascending order.


Detailed Description

Kolmogorov-Smirnov statistics with Kuiper's modification.

Author(s):
Andras Aszodi
Date:
2-Jul-2002.

Definition in file kuiperkolms.h.


Typedef Documentation

typedef double(* Cdftype_)(double, const void *)
 

The signature of a function that calculates the CDF of a distribution.

The first argument is the argument of the CDF, the second argument can point to a data structure that contains parameters of the CDF. If it is NULL, then it shall be ignored.

Definition at line 25 of file kuiperkolms.h.


Function Documentation

double kolms_vstat1 ( const double * Data,
int n,
Cdftype_ Cdf,
const void * Cdfpars )
 

Calculates the Kuiper-modified Kolmogorov-Smirnov statistics probability by comparing the SORTED discrete abscissa values in Data (n long) to the known distribution given by the CDF Cdf.

The parameters of Cdf are optionally supplied in Cdfpars, use NULL if there are none.

Referenced by Cdftype_().

double kolms_vstat2 ( const double * Data1,
int n1,
const double * Data2,
int n2 )
 

Calculates the Kuiper-modified Kolmogorov-Smirnov statistics probability by comparing the SORTED discrete abscissa values in Data1 (n1 long) to the SORTED discrete abscissa values in Data2 (n2 long).

Referenced by Cdftype_().

void ascend_dblsort ( double * d,
int n )
 

Sorts the n-long double array d into ascending order.

Referenced by Cdftype_().


Generated at Wed Aug 21 09:33:29 2002 for The Razorback C Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001