public class DistributionSearch extends Object
Constructor and Description |
---|
DistributionSearch() |
Modifier and Type | Method and Description |
---|---|
static ContinuousDistribution |
getBestDistribution(Vec v)
Searches the distributions that are known for a possible fit, and returns
what appears to be the best fit.
|
static ContinuousDistribution |
getBestDistribution(Vec v,
ContinuousDistribution... possibleDistributions)
Searches the distributions that are given for a possible fit, and returns
what appears to be the best fit.
|
static ContinuousDistribution |
getBestDistribution(Vec v,
double KDECutOff)
Searches the distributions that are known for a possible fit, and returns
what appears to be the best fit.
|
static ContinuousDistribution |
getBestDistribution(Vec v,
double KDECutOff,
ContinuousDistribution... possibleDistributions)
Searches the distributions that are given for a possible fit, and returns
what appears to be the best fit.
|
public static ContinuousDistribution getBestDistribution(Vec v)
v
- all the values from a samplepublic static ContinuousDistribution getBestDistribution(Vec v, double KDECutOff)
KernelDensityEstimator
is fit to the data.v
- all the values from a sampleKDECutOff
- the cut off value used for using the KDE. Should be in
the range (0, 1). Values less than zero means the KDE will never be used,
and greater then 1 means the KDE will always be used.public static ContinuousDistribution getBestDistribution(Vec v, ContinuousDistribution... possibleDistributions)
v
- all the values from a samplepossibleDistributions
- the array of distribution to try and fit to the datapublic static ContinuousDistribution getBestDistribution(Vec v, double KDECutOff, ContinuousDistribution... possibleDistributions)
KernelDensityEstimator
is fit to the data.v
- all the values from a sampleKDECutOff
- the cut off value used for using the KDE. Should be in
the range (0, 1). Values less than zero means the KDE will never be used,
and greater then 1 means the KDE will always be used.possibleDistributions
- the array of distribution to try and fit to the dataCopyright © 2017. All rights reserved.