jsat.distributions.multivariate
Class MultivariateDistributionSkeleton
- java.lang.Object
-
- jsat.distributions.multivariate.MultivariateDistributionSkeleton
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, MultivariateDistribution
- Direct Known Subclasses:
- Dirichlet, MultivariateKDE, NormalM, SymmetricDirichlet
public abstract class MultivariateDistributionSkeleton extends java.lang.Object implements MultivariateDistribution
Common class for implementing a multivariate distribution. A number of methods are pre implemented, building off of the implementation of the remaining methods.
Note: the default implementation for the multithreaded methods calls the non threaded version of the method. The exception to this is the#setUsingData(jsat.DataSet, java.util.concurrent.ExecutorService)method, which calls#setUsingData(java.util.List, java.util.concurrent.ExecutorService)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MultivariateDistributionSkeleton()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract MultivariateDistributionclone()doublelogPdf(Vec x)Computes the log of the probability density function.-
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
-
logPdf
public double logPdf(Vec x)
Description copied from interface:MultivariateDistributionComputes the log of the probability density function. If the probability of the input is zero, the log of zero would beDouble.NEGATIVE_INFINITY. Instead, -Double.MAX_VALUEis returned.- Specified by:
logPdfin interfaceMultivariateDistribution- Parameters:
x- the vector the get the log probability of- Returns:
- the log of the probability.
-
clone
public abstract MultivariateDistribution clone()
- Specified by:
clonein interfaceMultivariateDistribution- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG