public static class DirichletDistribution.PDF extends DirichletDistribution implements ProbabilityDensityFunction<Vector>, VectorInputEvaluator<Vector,java.lang.Double>
DirichletDistribution.PDFparameters| 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, setParameterssampleequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMeanclone, convertFromVector, convertToVectorsample, sample, sampleIntopublic 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)
ProbabilityFunctionlogEvaluate in interface ProbabilityFunction<Vector>input - The input to be evaluatedpublic int getInputDimensionality()
VectorInputEvaluatorgetInputDimensionality in interface VectorInputEvaluator<Vector,java.lang.Double>public DirichletDistribution.PDF getProbabilityFunction()
ComputableDistributiongetProbabilityFunction in interface ComputableDistribution<Vector>getProbabilityFunction in interface ProbabilityDensityFunction<Vector>getProbabilityFunction in class DirichletDistribution