Standard multivariate Gaussian kernel. More...
Public Member Functions | |
double | bandwidth_sq () const |
double | bandwidth_sq () const |
double | CalcMultiplicativeNormConstant (index_t dims) const |
Multiply densities by this value. | |
double | CalcMultiplicativeNormConstant (index_t dims) const |
Multiply densities by this value. | |
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, index_t dims) |
Initializes to a specific bandwidth. | |
void | Init (double bandwidth_in, index_t dims) |
Initializes to a specific bandwidth. | |
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 = false |
Standard multivariate Gaussian kernel.
Definition at line 128 of file kernel.h.
double GaussianStarKernel::CalcMultiplicativeNormConstant | ( | index_t | dims | ) | const [inline] |
Multiply densities by this value.
Definition at line 213 of file kernel.h.
References CalcNormConstant().
double GaussianStarKernel::CalcMultiplicativeNormConstant | ( | index_t | dims | ) | const [inline] |
Multiply densities by this value.
Definition at line 213 of file kernel.h.
References CalcNormConstant().
double GaussianStarKernel::CalcNormConstant | ( | index_t | dims | ) | const [inline] |
Divide by this constant when you're done.
Definition at line 206 of file kernel.h.
References math::PI_2.
double GaussianStarKernel::CalcNormConstant | ( | index_t | dims | ) | const [inline] |
Divide by this constant when you're done.
Definition at line 206 of file kernel.h.
References math::PI_2.
Referenced by CalcMultiplicativeNormConstant().
double GaussianStarKernel::EvalUnnorm | ( | double | dist | ) | const [inline] |
Evaluates an unnormalized density, given the distance between the kernel's mean and a query point.
Definition at line 169 of file kernel.h.
References EvalUnnormOnSq().
double GaussianStarKernel::EvalUnnorm | ( | double | dist | ) | const [inline] |
Evaluates an unnormalized density, given the distance between the kernel's mean and a query point.
Definition at line 169 of file kernel.h.
References EvalUnnormOnSq().
double GaussianStarKernel::EvalUnnormOnSq | ( | double | sqdist | ) | const [inline] |
double GaussianStarKernel::EvalUnnormOnSq | ( | double | sqdist | ) | const [inline] |
Evaluates an unnormalized density, given the square of the distance.
Definition at line 177 of file kernel.h.
Referenced by EvalUnnorm(), Init(), and RangeUnnormOnSq().
void GaussianStarKernel::Init | ( | double | bandwidth_in, | |
index_t | dims | |||
) | [inline] |
Initializes to a specific bandwidth.
bandwidth_in | the standard deviation sigma |
Definition at line 157 of file kernel.h.
References EvalUnnormOnSq(), and math::LN_2.
void GaussianStarKernel::Init | ( | double | bandwidth_in, | |
index_t | dims | |||
) | [inline] |
Initializes to a specific bandwidth.
bandwidth_in | the standard deviation sigma |
Definition at line 157 of file kernel.h.
References EvalUnnormOnSq(), and math::LN_2.
Unnormalized range on a range of squared distances.
! TODO explain
Definition at line 185 of file kernel.h.
References EvalUnnormOnSq(), DRange::hi, and DRange::lo.
Unnormalized range on a range of squared distances.
! TODO explain
Definition at line 185 of file kernel.h.
References EvalUnnormOnSq(), DRange::hi, and DRange::lo.