npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
scannedKSDistance.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_SCANNEDKSDISTANCE_HH_
2 #define NPSTAT_SCANNEDKSDISTANCE_HH_
3 
4 /*!
5 // \file scannedKSDistance.hh
6 //
7 // \brief Calculate KS distance between two 1-d distributions by scanning
8 // the difference between cdf values
9 //
10 // Author: I. Volobouev
11 //
12 // November 2019
13 */
14 
16 
17 namespace npstat {
18  /**
19  // The x values at which the cumulative density functions
20  // are compared are determined by spliting the [0, 1] interval
21  // into "nScanPoints" subintervals (bins) and then calculating
22  // the quantile function of the reference distribution at the
23  // center of each subinterval.
24  */
25  double scannedKSDistance(const AbsDistribution1D& reference,
26  const AbsDistribution1D& compared,
27  unsigned nScanPoints);
28 }
29 
30 #endif // NPSTAT_SCANNEDKSDISTANCE_HH_
Interface definition for 1-d continuous statistical distributions.
Definition: AbsArrayProjector.hh:14
double scannedKSDistance(const AbsDistribution1D &reference, const AbsDistribution1D &compared, unsigned nScanPoints)
Definition: AbsDistribution1D.hh:31