public static class NormalInverseGammaDistribution.PDF extends NormalInverseGammaDistribution implements ProbabilityDensityFunction<Vector>, VectorInputEvaluator<Vector,java.lang.Double>
NormalInverseGammaDistribution.PDF
DEFAULT_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, toString
sample, sample
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMean
clone, convertFromVector, convertToVector
sample, sample, sampleInto
public 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()
ComputableDistribution
getProbabilityFunction
in interface ComputableDistribution<Vector>
getProbabilityFunction
in interface ProbabilityDensityFunction<Vector>
getProbabilityFunction
in class NormalInverseGammaDistribution
public double logEvaluate(Vector input)
ProbabilityFunction
logEvaluate
in interface ProbabilityFunction<Vector>
input
- The input to be evaluatedpublic java.lang.Double evaluate(Vector input)
Evaluator
public int getInputDimensionality()
VectorInputEvaluator
getInputDimensionality
in interface VectorInputEvaluator<Vector,java.lang.Double>