jsat.distributions.empirical.kernelfunc
Class EpanechnikovKF
- java.lang.Object
-
- jsat.distributions.empirical.kernelfunc.EpanechnikovKF
-
- All Implemented Interfaces:
- java.io.Serializable, KernelFunction
public class EpanechnikovKF extends java.lang.Object implements KernelFunction
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecutOff()As the value of |u| for the kernel function approaches infinity, the value of k(u) approaches zero.static EpanechnikovKFgetInstance()Returns the singleton instance of this classdoubleintK(double u)Computes the value of the finite integral from -Infinity up to the value u, of the function given byKernelFunction.k(double)doublek(double u)Returns the weight to be applied to a sample for the normalized distance of two data points.doublek2()Returns the variance of the kernel functiondoublekPrime(double u)Returns the value of the derivative at a point, k'(u)java.lang.StringtoString()Returns the name of this kernel function
-
-
-
Method Detail
-
getInstance
public static EpanechnikovKF getInstance()
Returns the singleton instance of this class- Returns:
- the instance of this class
-
k
public double k(double u)
Description copied from interface:KernelFunctionReturns the weight to be applied to a sample for the normalized distance of two data points.- Specified by:
kin interfaceKernelFunction- Parameters:
u- the distance of the data points- Returns:
- the value in [0, 1) of the amount of weight to give to the sample based on its distance
-
intK
public double intK(double u)
Description copied from interface:KernelFunctionComputes the value of the finite integral from -Infinity up to the value u, of the function given byKernelFunction.k(double)- Specified by:
intKin interfaceKernelFunction- Parameters:
u- the distance of the data points- Returns:
- the value of the integration
-
k2
public double k2()
Description copied from interface:KernelFunctionReturns the variance of the kernel function- Specified by:
k2in interfaceKernelFunction- Returns:
- the variance of the kernel function
-
cutOff
public double cutOff()
Description copied from interface:KernelFunctionAs the value of |u| for the kernel function approaches infinity, the value of k(u) approaches zero. This function returns the minimal absolute value of u for which k(u) returns 0- Specified by:
cutOffin interfaceKernelFunction- Returns:
- the first value for which k(u) = 0
-
kPrime
public double kPrime(double u)
Description copied from interface:KernelFunctionReturns the value of the derivative at a point, k'(u)- Specified by:
kPrimein interfaceKernelFunction- Parameters:
u- the distance of the data points- Returns:
- the value of the derivative at u
-
toString
public java.lang.String toString()
Description copied from interface:KernelFunctionReturns the name of this kernel function- Specified by:
toStringin interfaceKernelFunction- Overrides:
toStringin classjava.lang.Object- Returns:
- the name of this kernel function
-
-
DataMelt 3.0 © DataMelt by jWork.ORG