|
Go to the documentation of this file. 1 #ifndef NPSTAT_KERNELSENSITIVITYCALCULATOR_HH_
2 #define NPSTAT_KERNELSENSITIVITYCALCULATOR_HH_
52 template < class Kernel>
55 unsigned maxdegInputPoly, unsigned maxdegOutPoly,
56 long double ymin, long double ymax,
59 bool normalizeKernel = true, bool validateCDF = true);
90 template < class Kernel>
92 const Kernel& kernel, const std::vector<double>& sample,
93 unsigned maxdegInputPoly, unsigned maxdegOutPoly,
94 long double ymin, long double ymax,
96 bool normalizeKernel = true, bool validateCDF = true);
98 inline bool isOracle() const { return oracle_;}
99 inline unsigned maxdegInputPoly() const { return maxdegInputPoly_;}
100 inline unsigned maxdegOutPoly() const { return maxdegOutPoly_;}
112 template< class InPoly, class OutPoly>
114 const InPoly& inputPoly, const OutPoly& outPoly) const;
127 template< class InPoly, class KDECdf>
129 const InPoly& inputPoly, const KDECdf& cdf) const;
138 template< class OutPoly>
148 template< class KDECdf>
152 typedef std::vector<std::pair<long double,long double> > WeightedCoords;
154 template < class Kernel>
155 void calcKValues( const Kernel& kernel, bool normalize);
157 void makeLocalLegendreMatrix() const;
161 const Poly& poly, unsigned maxdeg, const WeightedCoords& wcoords) const;
163 template< class CdfFcn>
165 const CdfFcn& cdf, unsigned maxdeg, const WeightedCoords& wcoords) const;
167 std::shared_ptr<const AbsDistribution1D> distro_;
168 unsigned maxdegInputPoly_;
169 unsigned maxdegOutPoly_;
174 long double densityIntegral_;
180 #include "npstat/stat/KernelSensitivityCalculator.icc"
Interface definition for 1-d continuous statistical distributions.
Base class for quadratures on the [-1, 1] interval.
Definition: AbsIntervalQuadrature1D.hh:19
Definition: KernelSensitivityCalculator.hh:23
Matrix< double > sMatrix2(const OutPoly &outPoly) const
KernelSensitivityCalculator(const Kernel &kernel, const AbsDistribution1D &distro, unsigned maxdegInputPoly, unsigned maxdegOutPoly, long double ymin, long double ymax, const AbsIntervalQuadrature1D &xIntegrator, const AbsIntervalQuadrature1D &yIntegrator, bool normalizeKernel=true, bool validateCDF=true)
Matrix< double > sMatrix0(const InPoly &inputPoly, const OutPoly &outPoly) const
Matrix< double > sMatrix1(const InPoly &inputPoly, const KDECdf &cdf) const
KernelSensitivityCalculator(const Kernel &kernel, const std::vector< double > &sample, unsigned maxdegInputPoly, unsigned maxdegOutPoly, long double ymin, long double ymax, const AbsIntervalQuadrature1D &yIntegrator, bool normalizeKernel=true, bool validateCDF=true)
Matrix< double > sMatrix3(const KDECdf &cdf) const
Definition: AbsArrayProjector.hh:14
Definition: AbsDistribution1D.hh:31
|