npstat::ConstantBandwidthSmootherND< MaxDeg > Class Template Reference
Detailed Descriptiontemplate<unsigned MaxDeg>
|
npstat::ConstantBandwidthSmootherND< MaxDeg >::ConstantBandwidthSmootherND | ( | const HistoND< Numeric > & | protoHisto, |
const AbsDistributionND & | kernel, | ||
const double * | taper, | ||
unsigned | maxDeg, | ||
bool | mirror = true |
||
) |
Constructor arguments are as follows:
protoHisto – Prototype histogram which defines expected data shape and grid coordinates.
kernel – The "base" kernel function. This must have correct bandwidth settings already. Normally, the location vector has to be set to all zeros.
taper – Damping factors for each polynomial degree (starting with the 0th order term). This can be NULL in which case it is assumed that all factors are 1.
maxDeg – Polynomial degree to use with the given kernel. Must not exceed the MaxDeg template parameter.
mirror – If true, the data will be mirrored at the boundaries to reduce the edge effects.
|
inline |
Simple inspector of object properties
void npstat::ConstantBandwidthSmootherND< MaxDeg >::smoothHistogram | ( | const HistoND< Numeric > & | histoIn, |
HistoND< Real > * | histoOut | ||
) |
Perform actual convolution. histoIn and histoOut can refer to the same histogram.