public static class DirichletDistribution.PDF extends DirichletDistribution implements ProbabilityDensityFunction<Vector>, VectorInputEvaluator<Vector,java.lang.Double>
DirichletDistribution.PDF
parameters
Constructor and Description |
---|
PDF()
Default constructor.
|
PDF(DirichletDistribution other)
Copy Constructor.
|
PDF(Vector parameters)
Creates a new instance of PDF
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(Vector input)
Evaluates the Dirichlet PDF about the given input.
|
int |
getInputDimensionality()
Gets the expected dimensionality of the input vector to the evaluator,
if it is known.
|
DirichletDistribution.PDF |
getProbabilityFunction()
Gets the distribution function associated with this Distribution,
either the PDF or PMF.
|
double |
logEvaluate(Vector input)
Evaluate the natural logarithm of the distribution function.
|
clone, convertFromVector, convertToVector, getMean, getParameters, sample, sampleInto, setParameters
sample
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMean
clone, convertFromVector, convertToVector
sample, sample, sampleInto
public PDF()
public PDF(Vector parameters)
parameters
- Parameters of the Dirichlet distribution, must be at least 2-dimensional
and each element must be positive.public PDF(DirichletDistribution other)
other
- DirichletDistribution to copy.public java.lang.Double evaluate(Vector input)
public double logEvaluate(Vector input)
ProbabilityFunction
logEvaluate
in interface ProbabilityFunction<Vector>
input
- The input to be evaluatedpublic int getInputDimensionality()
VectorInputEvaluator
getInputDimensionality
in interface VectorInputEvaluator<Vector,java.lang.Double>
public DirichletDistribution.PDF getProbabilityFunction()
ComputableDistribution
getProbabilityFunction
in interface ComputableDistribution<Vector>
getProbabilityFunction
in interface ProbabilityDensityFunction<Vector>
getProbabilityFunction
in class DirichletDistribution