npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
empiricalCopula.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_EMPIRICALCOPULA_HH_
2 #define NPSTAT_EMPIRICALCOPULA_HH_
3 
4 /*!
5 // \file empiricalCopula.hh
6 //
7 // \brief Functions for building copulas out of sets of points
8 //
9 // k-d trees are used internally for algorithm implementation.
10 // See also "empiricalCopulaHisto.hh" header.
11 //
12 // Author: I. Volobouev
13 //
14 // March 2010
15 */
16 
17 #include <vector>
18 
19 namespace npstat {
20  /**
21  // In the "calculateEmpiricalCopula" function the assumption is
22  // that the result index 0 corresponds to copula argument 0.0
23  // and that the maximum array index corresponds to copula argument 1.0.
24  // Class Point should be subscriptable.
25  */
26  template <class Point, class Array>
28  const std::vector<Point>& data,
29  const unsigned* dimsToUse, unsigned nDimsToUse,
30  Array* result);
31 
32  /**
33  // In the "empiricalCopulaDensity" function the assumption is
34  // that the result indices correspond to points equdistant
35  // _inside_ the unit hypercube. That is, array index 0 corresponds
36  // to copula argument 0.5/N, where N is the length of relevant
37  // dimension. Array index N-1 corresponds to 1.0 - 0.5/N.
38  // Class Point should be subscriptable.
39  */
40  template <class Point, class Array>
42  const std::vector<Point>& data,
43  const unsigned* dimsToUse, unsigned nDimsToUse,
44  Array* result);
45 }
46 
47 #include "npstat/stat/empiricalCopula.icc"
48 
49 #endif // NPSTAT_EMPIRICALCOPULA_HH_
Definition: AbsArrayProjector.hh:14
void calculateEmpiricalCopula(const std::vector< Point > &data, const unsigned *dimsToUse, unsigned nDimsToUse, Array *result)
void empiricalCopulaDensity(const std::vector< Point > &data, const unsigned *dimsToUse, unsigned nDimsToUse, Array *result)