|
Go to the documentation of this file. 1 #ifndef NPSTAT_ABSCOPULASMOOTHERBASE_HH_
2 #define NPSTAT_ABSCOPULASMOOTHERBASE_HH_
18 #include "geners/AbsArchive.hh"
41 double tolerance, unsigned maxNormCycles);
45 inline unsigned dim() const { return dim_;}
51 void setArchive(gs::AbsArchive* ar, const char* category = 0);
54 template < class Po int>
56 unsigned long uniqueId,
58 double* bandwidthUsed = 0);
61 template < class Po int>
63 unsigned long uniqueId,
64 const std::vector<std::pair<const Point*, double> >& in,
65 const unsigned* dimsToUse, unsigned nDimsToUse,
66 double* bandwidthUsed = 0);
74 void makeMarginalsUniform();
75 void storeHisto( unsigned long uniqueId, double bw) const;
79 double effectiveSampleSize,
80 double* bandwidthUsed,
81 bool isSampleWeighted) = 0;
84 unsigned shape_[CHAR_BIT* sizeof( unsigned long)];
88 std::string category_;
92 template < class Po int>
94 unsigned long uniqueId,
96 double* bandwidthUsed)
98 assert(bandwidthUsed);
99 smooth(uniqueId, in, bandwidthUsed);
102 template < class Po int>
103 void weightedSmooth_2(
104 unsigned long uniqueId,
105 const std::vector<Point>& data,
106 const std::vector<double>& weights,
107 const unsigned* dimsToUse, unsigned nDimsToUse,
108 double* bandwidthUsed);
120 #include "npstat/stat/AbsCopulaSmootherBase.icc"
Arbitrary-dimensional histogram template.
Multidimensional points which can be sorted according to multiple sorting criteria.
Definition: AbsCopulaSmootherBase.hh:31
void setArchive(gs::AbsArchive *ar, const char *category=0)
AbsCopulaSmootherBase(const unsigned *nBinsInEachDim, unsigned dim, double tolerance, unsigned maxNormCycles)
const HistoND< double > & weightedSmooth(unsigned long uniqueId, const std::vector< std::pair< const Point *, double > > &in, const unsigned *dimsToUse, unsigned nDimsToUse, double *bandwidthUsed=0)
ArrayShape copulaShape() const Definition: AbsCopulaSmootherBase.hh:48
const HistoND< double > & smooth(unsigned long uniqueId, std::vector< OrderedPointND< Point > > &in, double *bandwidthUsed=0)
Definition: OrderedPointND.hh:40
Definition: AbsArrayProjector.hh:14
std::vector< unsigned > ArrayShape Definition: ArrayShape.hh:21
|