public interface SmoothUnivariateDistribution extends ClosedFormUnivariateDistribution<java.lang.Double>, ClosedFormComputableDistribution<java.lang.Double>
Modifier and Type | Method and Description |
---|---|
SmoothCumulativeDistributionFunction |
getCDF()
Gets the CDF of a scalar distribution.
|
java.lang.Double |
getMean()
Gets the arithmetic mean, or "first central moment" or "expectation",
of the distribution.
|
UnivariateProbabilityDensityFunction |
getProbabilityFunction()
Gets the distribution function associated with this Distribution,
either the PDF or PMF.
|
double |
sampleAsDouble(java.util.Random random)
Samples a value from this distribution as a double.
|
double[] |
sampleAsDoubles(java.util.Random random,
int count)
Samples values from this distribution as an array of doubles.
|
void |
sampleInto(java.util.Random random,
double[] output,
int start,
int length)
Samples values from this distribution as an array of doubles.
|
getMaxSupport, getMeanAsDouble, getMinSupport, getVariance
sample, sample, sampleInto
clone, convertFromVector, convertToVector
UnivariateProbabilityDensityFunction getProbabilityFunction()
ComputableDistribution
getProbabilityFunction
in interface ComputableDistribution<java.lang.Double>
SmoothCumulativeDistributionFunction getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Double>
getCDF
in interface UnivariateDistribution<java.lang.Double>
java.lang.Double getMean()
DistributionWithMean
getMean
in interface DistributionWithMean<java.lang.Double>
double sampleAsDouble(java.util.Random random)
random
- Random number generator to use.double[] sampleAsDoubles(java.util.Random random, int count)
random
- Random number generator to use.count
- The number of values to sample. Cannot be negativevoid sampleInto(java.util.Random random, double[] output, int start, int length)
random
- Random number generator to use.output
- The array to write the result into. Cannot be null.start
- The offset in the array to start writing at. Cannot be negative.length
- The number of values to sample. Cannot be negative.