public class BiweightKF extends Object implements KernelFunction
Modifier and Type | Method and Description |
---|---|
double |
cutOff()
As the value of |u| for the kernel function approaches infinity, the
value of k(u) approaches zero.
|
static BiweightKF |
getInstance()
Returns the singleton instance of this class
|
double |
intK(double u)
Computes the value of the finite integral from -Infinity up to the value u, of the function given by
KernelFunction.k(double) |
double |
k(double u)
Returns the weight to be applied to a sample for the normalized distance of two data points.
|
double |
k2()
Returns the variance of the kernel function
|
double |
kPrime(double u)
Returns the value of the derivative at a point, k'(u)
|
String |
toString()
Returns the name of this kernel function
|
public static BiweightKF getInstance()
public double k(double u)
KernelFunction
k
in interface KernelFunction
u
- the distance of the data pointspublic double intK(double u)
KernelFunction
KernelFunction.k(double)
intK
in interface KernelFunction
u
- the distance of the data pointspublic double k2()
KernelFunction
k2
in interface KernelFunction
public double cutOff()
KernelFunction
cutOff
in interface KernelFunction
public double kPrime(double u)
KernelFunction
kPrime
in interface KernelFunction
u
- the distance of the data pointspublic String toString()
KernelFunction
toString
in interface KernelFunction
toString
in class Object
Copyright © 2017. All rights reserved.