npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
empiricalCopulaHisto.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_EMPIRICALCOPULAHISTO_HH_
2 #define NPSTAT_EMPIRICALCOPULAHISTO_HH_
3 
4 /*!
5 // \file empiricalCopulaHisto.hh
6 //
7 // \brief Build copula histograms out of sets of points
8 //
9 // Author: I. Volobouev
10 //
11 // September 2010
12 */
13 
14 #include <vector>
15 
17 #include "npstat/stat/HistoND.hh"
18 
19 namespace npstat {
20  /**
21  // Function for building copula density out of sets of points by ordering
22  // the points and remembering the order in each dimension. The histogram
23  // is filled with point counts. All histogram axes should normally have
24  // minimum at 0.0 and maximum at 1.0.
25  //
26  // The input "data" vector will be reordered by this function. It is
27  // assumed that the "data" items have correct coordinates but that
28  // their order has not been established yet. A typical way to fill
29  // such a vector is to use the "fillOrderedPoints" function declared
30  // in the "OrderedPointND.hh" header.
31  //
32  // See also functions declared in the empiricalCopula.hh header
33  // which can perform similar tasks.
34  //
35  // This function assumes (but does not check) that the argument
36  // histogram is defined on the unit multivariate cube. The histogram
37  // will be reset before it is filled from the provided data.
38  // The histogram contents will not be normalized after the
39  // histogram is filled. If you want normalized result, call the
40  // "convertHistoToDensity" function (declared in the HistoND header).
41  //
42  // The dimensionality of the points can be larger than the dimensionality
43  // of the histogram. In this case only the leading dimensions are used.
44  */
45  template <class Point, typename Histo>
46  void empiricalCopulaHisto(std::vector<OrderedPointND<Point> >& data,
47  Histo* result, bool useFillC = false);
48 }
49 
50 #include "npstat/stat/empiricalCopulaHisto.icc"
51 
52 #endif // NPSTAT_EMPIRICALCOPULAHISTO_HH_
Arbitrary-dimensional histogram template.
Multidimensional points which can be sorted according to multiple sorting criteria.
Definition: OrderedPointND.hh:40
Definition: AbsArrayProjector.hh:14
void empiricalCopulaHisto(std::vector< OrderedPointND< Point > > &data, Histo *result, bool useFillC=false)