public static class NormalInverseGammaDistribution.PDF extends NormalInverseGammaDistribution implements ProbabilityDensityFunction<Vector>, VectorInputEvaluator<Vector,java.lang.Double>
NormalInverseGammaDistribution.PDFDEFAULT_LOCATION, DEFAULT_PRECISION, DEFAULT_SCALE, DEFAULT_SHAPE| Constructor and Description |
|---|
PDF()
Creates a new instance of NormalInverseGammaDistribution
|
PDF(double location,
double precision,
double shape,
double scale)
Creates a new instance of NormalInverseGammaDistribution
|
PDF(NormalInverseGammaDistribution other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
evaluate(Vector input)
Evaluates the function on the given input and returns the output.
|
int |
getInputDimensionality()
Gets the expected dimensionality of the input vector to the evaluator,
if it is known.
|
NormalInverseGammaDistribution.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, getLocation, getMean, getPrecision, getScale, getShape, sampleInto, setLocation, setPrecision, setScale, setShape, toStringsample, sampleequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMeanclone, convertFromVector, convertToVectorsample, sample, sampleIntopublic PDF()
public PDF(double location,
double precision,
double shape,
double scale)
location - Location of the Gaussian kernel.precision - Precision of the Gaussian kernel, must be greater than zero.shape - Shape parameter of the Inverse Gamma kernel, must be greater than zero.scale - Scale parameter of the Inverse Gamma kernel, must be greater than zero.public PDF(NormalInverseGammaDistribution other)
other - NormalInverseGammaDistribution to copypublic NormalInverseGammaDistribution.PDF getProbabilityFunction()
ComputableDistributiongetProbabilityFunction in interface ComputableDistribution<Vector>getProbabilityFunction in interface ProbabilityDensityFunction<Vector>getProbabilityFunction in class NormalInverseGammaDistributionpublic double logEvaluate(Vector input)
ProbabilityFunctionlogEvaluate in interface ProbabilityFunction<Vector>input - The input to be evaluatedpublic java.lang.Double evaluate(Vector input)
Evaluatorpublic int getInputDimensionality()
VectorInputEvaluatorgetInputDimensionality in interface VectorInputEvaluator<Vector,java.lang.Double>