Multivariate Epanechnikov kernel. More...
Public Member Functions | |
| double | bandwidth_sq () const |
| Gets the squared bandwidth. | |
| double | bandwidth_sq () const |
| Gets the squared bandwidth. | |
| double | CalcNormConstant (index_t dims) const |
| Divide by this constant when you're done. | |
| double | CalcNormConstant (index_t dims) const |
| Divide by this constant when you're done. | |
| double | EvalUnnorm (double dist) const |
| Evaluates an unnormalized density, given the distance between the kernel's mean and a query point. | |
| double | EvalUnnorm (double dist) const |
| Evaluates an unnormalized density, given the distance between the kernel's mean and a query point. | |
| double | EvalUnnormOnSq (double sqdist) const |
| Evaluates an unnormalized density, given the square of the distance. | |
| double | EvalUnnormOnSq (double sqdist) const |
| Evaluates an unnormalized density, given the square of the distance. | |
| void | Init (double bandwidth_in) |
| Initializes to a specific bandwidth. | |
| void | Init (double bandwidth_in, index_t dims) |
| void | Init (double bandwidth_in) |
| Initializes to a specific bandwidth. | |
| void | Init (double bandwidth_in, index_t dims) |
| double | inv_bandwidth_sq () const |
| Gets the reciproccal of the squared bandwidth. | |
| double | inv_bandwidth_sq () const |
| Gets the reciproccal of the squared bandwidth. | |
| double | MaxUnnormValue () |
| Gets the maximum unnormalized value. | |
| double | MaxUnnormValue () |
| Gets the maximum unnormalized value. | |
| DRange | RangeUnnormOnSq (const DRange &range) const |
| Unnormalized range on a range of squared distances. | |
| DRange | RangeUnnormOnSq (const DRange &range) const |
| Unnormalized range on a range of squared distances. | |
Static Public Attributes | |
| static const bool | HAS_CUTOFF = true |
Multivariate Epanechnikov kernel.
To use, first get an unnormalized density, and divide by the normalizeation factor.
Definition at line 224 of file kernel.h.
| double EpanKernel::bandwidth_sq | ( | ) | const [inline] |
| double EpanKernel::bandwidth_sq | ( | ) | const [inline] |
| double EpanKernel::CalcNormConstant | ( | index_t | dims | ) | const [inline] |
Divide by this constant when you're done.
Definition at line 286 of file kernel.h.
References math::SphereVolume().
| double EpanKernel::CalcNormConstant | ( | index_t | dims | ) | const [inline] |
Divide by this constant when you're done.
Definition at line 286 of file kernel.h.
References math::SphereVolume().
| double EpanKernel::EvalUnnorm | ( | double | dist | ) | const [inline] |
Evaluates an unnormalized density, given the distance between the kernel's mean and a query point.
Definition at line 254 of file kernel.h.
References EvalUnnormOnSq().
| double EpanKernel::EvalUnnorm | ( | double | dist | ) | const [inline] |
Evaluates an unnormalized density, given the distance between the kernel's mean and a query point.
Definition at line 254 of file kernel.h.
References EvalUnnormOnSq().
| double EpanKernel::EvalUnnormOnSq | ( | double | sqdist | ) | const [inline] |
| double EpanKernel::EvalUnnormOnSq | ( | double | sqdist | ) | const [inline] |
Evaluates an unnormalized density, given the square of the distance.
Definition at line 262 of file kernel.h.
Referenced by EvalUnnorm(), and RangeUnnormOnSq().
| void EpanKernel::Init | ( | double | bandwidth_in | ) | [inline] |
| void EpanKernel::Init | ( | double | bandwidth_in | ) | [inline] |
| double EpanKernel::inv_bandwidth_sq | ( | ) | const [inline] |
| double EpanKernel::inv_bandwidth_sq | ( | ) | const [inline] |
| double EpanKernel::MaxUnnormValue | ( | ) | [inline] |
| double EpanKernel::MaxUnnormValue | ( | ) | [inline] |
Unnormalized range on a range of squared distances.
! TODO explain
Definition at line 272 of file kernel.h.
References EvalUnnormOnSq(), DRange::hi, and DRange::lo.
Unnormalized range on a range of squared distances.
! TODO explain
Definition at line 272 of file kernel.h.
References EvalUnnormOnSq(), DRange::hi, and DRange::lo.
1.6.3