jsat.distributions.multivariate
Class MultivariateKDE
- java.lang.Object
-
- jsat.distributions.multivariate.MultivariateDistributionSkeleton
-
- jsat.distributions.multivariate.MultivariateKDE
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, MultivariateDistribution
- Direct Known Subclasses:
- MetricKDE, ProductKDE
public abstract class MultivariateKDE extends MultivariateDistributionSkeleton
There are several methods of generalizing theKernelDensityEstimatorto the multivariate case. This class provides a contract for implementations that provide a generalization of the KDE.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MultivariateKDE()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract MultivariateKDEclone()abstract KernelFunctiongetKernelFunction()abstract java.util.List<? extends VecPaired<VecPaired<Vec,java.lang.Integer>,java.lang.Double>>getNearby(Vec x)Returns the list of vectors that have a non zero contribution to the density of the query point x.abstract java.util.List<? extends VecPaired<VecPaired<Vec,java.lang.Integer>,java.lang.Double>>getNearbyRaw(Vec x)Returns the list of vectors that have a non zero contribution to the density of the query point x.abstract voidscaleBandwidth(double scale)A caller may want to increase or decrease the bandwidth after training has been completed to get smoother model, or decrease it to observe behavior.-
Methods inherited from class jsat.distributions.multivariate.MultivariateDistributionSkeleton
logPdf
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.distributions.multivariate.MultivariateDistribution
logPdf, pdf, pdf, sample, setUsingData, setUsingData, setUsingData, setUsingData, setUsingDataList
-
-
-
-
Method Detail
-
getNearby
public abstract java.util.List<? extends VecPaired<VecPaired<Vec,java.lang.Integer>,java.lang.Double>> getNearby(Vec x)
Returns the list of vectors that have a non zero contribution to the density of the query point x. Each vector is paired with its integer index from the original constructing list vectors, and a double indicating its weight given the kernel function in use.- Parameters:
x- the query point- Returns:
- the list of near by vectors and their weights
-
getNearbyRaw
public abstract java.util.List<? extends VecPaired<VecPaired<Vec,java.lang.Integer>,java.lang.Double>> getNearbyRaw(Vec x)
Returns the list of vectors that have a non zero contribution to the density of the query point x. Each vector is paired with its integer index from the original constructing list vectors, and a double indicating its distance from the query point divided by the bandwidth of the point.- Parameters:
x- the query point- Returns:
- the list of near by vectors and their weights
-
getKernelFunction
public abstract KernelFunction getKernelFunction()
- Returns:
- the kernel function used
-
scaleBandwidth
public abstract void scaleBandwidth(double scale)
A caller may want to increase or decrease the bandwidth after training has been completed to get smoother model, or decrease it to observe behavior. This method will scaled the bandwidth of each data point by the given factor- Parameters:
scale- the value to scale the bandwidth used
-
clone
public abstract MultivariateKDE clone()
- Specified by:
clonein interfaceMultivariateDistribution- Specified by:
clonein classMultivariateDistributionSkeleton
-
-
DataMelt 3.0 © DataMelt by jWork.ORG