public abstract class MultivariateDistributionSkeleton extends Object implements MultivariateDistribution
setUsingData(jsat.DataSet, java.util.concurrent.ExecutorService)
method,
which calls setUsingData(java.util.List, java.util.concurrent.ExecutorService)
Constructor and Description |
---|
MultivariateDistributionSkeleton() |
Modifier and Type | Method and Description |
---|---|
abstract MultivariateDistribution |
clone() |
double |
logPdf(double... x)
Computes the log of the probability density function.
|
double |
logPdf(Vec x)
Computes the log of the probability density function.
|
double |
pdf(double... x)
Returns the probability of a given vector from this distribution.
|
boolean |
setUsingData(DataSet dataSet)
Sets the parameters of the distribution to attempt to fit the given list of data points.
|
boolean |
setUsingData(DataSet dataSet,
ExecutorService threadpool)
Sets the parameters of the distribution to attempt to fit the given list of data points.
|
<V extends Vec> |
setUsingData(List<V> dataSet,
ExecutorService threadpool)
Sets the parameters of the distribution to attempt to fit the given list of vectors.
|
boolean |
setUsingDataList(List<DataPoint> dataPoints,
ExecutorService threadpool)
Sets the parameters of the distribution to attempt to fit the given list of data points.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pdf, sample, setUsingData, setUsingDataList
public double logPdf(double... x)
MultivariateDistribution
Double.NEGATIVE_INFINITY
. Instead, -Double.MAX_VALUE
is returned.logPdf
in interface MultivariateDistribution
x
- the array for the vector the get the log probability ofpublic double logPdf(Vec x)
MultivariateDistribution
Double.NEGATIVE_INFINITY
. Instead, -Double.MAX_VALUE
is returned.logPdf
in interface MultivariateDistribution
x
- the vector the get the log probability ofpublic double pdf(double... x)
MultivariateDistribution
pdf
in interface MultivariateDistribution
x
- the array of the vector the get the log probability ofpublic boolean setUsingData(DataSet dataSet)
MultivariateDistribution
weights
of the data points will be used.setUsingData
in interface MultivariateDistribution
dataSet
- the data set to usepublic boolean setUsingData(DataSet dataSet, ExecutorService threadpool)
MultivariateDistribution
weights
of the data points will be used.setUsingData
in interface MultivariateDistribution
dataSet
- the data set to usethreadpool
- the source of threads for computationpublic <V extends Vec> boolean setUsingData(List<V> dataSet, ExecutorService threadpool)
MultivariateDistribution
setUsingData
in interface MultivariateDistribution
V
- the vector typedataSet
- the list of data pointsthreadpool
- the source of threads for computationpublic boolean setUsingDataList(List<DataPoint> dataPoints, ExecutorService threadpool)
MultivariateDistribution
weights
of the data points will be used.setUsingDataList
in interface MultivariateDistribution
dataPoints
- the list of data points to usethreadpool
- the source of threads for computationpublic abstract MultivariateDistribution clone()
clone
in interface MultivariateDistribution
clone
in class Object
Copyright © 2017. All rights reserved.