public interface MultivariateDistribution extends Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
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.
|
double |
pdf(Vec x)
Returns the probability of a given vector from this distribution.
|
List<Vec> |
sample(int count,
Random rand)
Performs sampling on the current 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)
Sets the parameters of the distribution to attempt to fit the given list of vectors.
|
<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)
Sets the parameters of the distribution to attempt to fit the given list of data points.
|
boolean |
setUsingDataList(List<DataPoint> dataPoints,
ExecutorService threadpool)
Sets the parameters of the distribution to attempt to fit the given list of data points.
|
double logPdf(double... x)
Double.NEGATIVE_INFINITY
. Instead, -Double.MAX_VALUE
is returned.x
- the array for the vector the get the log probability ofArithmeticException
- if the vector is not the correct length, or the distribution has not yet been setdouble logPdf(Vec x)
Double.NEGATIVE_INFINITY
. Instead, -Double.MAX_VALUE
is returned.x
- the vector the get the log probability ofArithmeticException
- if the vector is not the correct length, or the distribution has not yet been setdouble pdf(double... x)
x
- the array of the vector the get the log probability ofArithmeticException
- if the vector is not the correct length, or the distribution has not yet been setdouble pdf(Vec x)
x
- the vector the get the log probability ofArithmeticException
- if the vector is not the correct length, or the distribution has not yet been set<V extends Vec> boolean setUsingData(List<V> dataSet)
V
- the vector typedataSet
- the list of data points<V extends Vec> boolean setUsingData(List<V> dataSet, ExecutorService threadpool)
V
- the vector typedataSet
- the list of data pointsthreadpool
- the source of threads for computationboolean setUsingDataList(List<DataPoint> dataPoints)
weights
of the data points will be used.dataPoints
- the list of data points to useboolean setUsingDataList(List<DataPoint> dataPoints, ExecutorService threadpool)
weights
of the data points will be used.dataPoints
- the list of data points to usethreadpool
- the source of threads for computationboolean setUsingData(DataSet dataSet)
weights
of the data points will be used.dataSet
- the data set to useboolean setUsingData(DataSet dataSet, ExecutorService threadpool)
weights
of the data points will be used.dataSet
- the data set to usethreadpool
- the source of threads for computationMultivariateDistribution clone()
Copyright © 2017. All rights reserved.