|
| LocalMultiFilter1D (unsigned maxDegree, const OrthoPolyFilter1DBuilder &filterBuilder, unsigned dataLen) |
|
| LocalMultiFilter1D (const LocalMultiFilter1D &) |
|
LocalMultiFilter1D & | operator= (const LocalMultiFilter1D &) |
|
bool | operator== (const LocalMultiFilter1D &r) const |
|
bool | operator!= (const LocalMultiFilter1D &r) const |
|
unsigned | maxDegree () const |
|
unsigned | dataLen () const |
|
const PolyFilter1D & | getFilter (unsigned degree, unsigned binNumber) const |
|
template<typename Tin , typename Tout > |
void | filter (unsigned degree, const Tin *in, unsigned dataLen, Tout *out) const |
|
template<typename Tin , typename Tout > |
void | convolve (unsigned degree, const Tin *in, unsigned dataLen, Tout *out) const |
|
Matrix< double > | getFilterMatrix (unsigned degree) const |
|
gs::ClassId | classId () const |
|
bool | write (std::ostream &os) const |
|
|
static const char * | classname () |
|
static unsigned | version () |
|
static LocalMultiFilter1D * | read (const gs::ClassId &id, std::istream &in) |
|
◆ LocalMultiFilter1D()
npstat::LocalMultiFilter1D::LocalMultiFilter1D |
( |
unsigned |
maxDegree, |
|
|
const OrthoPolyFilter1DBuilder & |
filterBuilder, |
|
|
unsigned |
dataLen |
|
) |
| |
Main constructor. The arguments are as follows:
maxDegree – Maximum degree of the polynomials.
filterBuilder – An instance of a class which actually builds the filters when requested. This builder is used only inside the constructor.
dataLen – The length of the data arrays which will be used with this filter (this info is needed in order to take into account the boundary effects).
◆ convolve()
template<typename Tin , typename Tout >
void npstat::LocalMultiFilter1D::convolve |
( |
unsigned |
degree, |
|
|
const Tin * |
in, |
|
|
unsigned |
dataLen, |
|
|
Tout * |
out |
|
) |
| const |
A diffent filtering method in which the shapes of the kernels are determined by the positions of the "sources" (i.e., sample points) instead of the positions at which the density (or response) is estimated.
◆ filter()
template<typename Tin , typename Tout >
void npstat::LocalMultiFilter1D::filter |
( |
unsigned |
degree, |
|
|
const Tin * |
in, |
|
|
unsigned |
dataLen, |
|
|
Tout * |
out |
|
) |
| const |
This method performs the filtering. "dataLen", which is the length of both "in" and "out" arrays, must be the same as the one in the constructor.
◆ getFilter()
const PolyFilter1D& npstat::LocalMultiFilter1D::getFilter |
( |
unsigned |
degree, |
|
|
unsigned |
binNumber |
|
) |
| const |
Get the filter coefficients for the given bin
◆ getFilterMatrix()
Matrix<double> npstat::LocalMultiFilter1D::getFilterMatrix |
( |
unsigned |
degree | ) |
const |
Generate the complete (non-sparse) representation of the filter. It will be a generalized stochastic matrix (each row sums to 1).
◆ maxDegree()
unsigned npstat::LocalMultiFilter1D::maxDegree |
( |
| ) |
const |
|
inline |
Inspect object properties
The documentation for this class was generated from the following file: