EpanKernel Class Reference

Multivariate Epanechnikov kernel. More...

List of all members.

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

Detailed Description

Multivariate Epanechnikov kernel.

To use, first get an unnormalized density, and divide by the normalizeation factor.

Definition at line 224 of file kernel.h.


Member Function Documentation

double EpanKernel::bandwidth_sq (  )  const [inline]

Gets the squared bandwidth.

Definition at line 294 of file kernel.h.

double EpanKernel::bandwidth_sq (  )  const [inline]

Gets the squared bandwidth.

Definition at line 294 of file kernel.h.

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]

Evaluates an unnormalized density, given the square of the distance.

Definition at line 262 of file kernel.h.

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]

Initializes to a specific bandwidth.

Definition at line 245 of file kernel.h.

void EpanKernel::Init ( double  bandwidth_in  )  [inline]

Initializes to a specific bandwidth.

Definition at line 245 of file kernel.h.

double EpanKernel::inv_bandwidth_sq (  )  const [inline]

Gets the reciproccal of the squared bandwidth.

Definition at line 301 of file kernel.h.

double EpanKernel::inv_bandwidth_sq (  )  const [inline]

Gets the reciproccal of the squared bandwidth.

Definition at line 301 of file kernel.h.

double EpanKernel::MaxUnnormValue (  )  [inline]

Gets the maximum unnormalized value.

Definition at line 279 of file kernel.h.

double EpanKernel::MaxUnnormValue (  )  [inline]

Gets the maximum unnormalized value.

Definition at line 279 of file kernel.h.

DRange EpanKernel::RangeUnnormOnSq ( const DRange range  )  const [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.

DRange EpanKernel::RangeUnnormOnSq ( const DRange range  )  const [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.


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 12:04:40 2011 for FASTlib by  doxygen 1.6.3