Package jdistlib.inference
Class EvaluationCounter
java.lang.Object
jdistlib.inference.EvaluationCounter
- All Implemented Interfaces:
DifferentiableLogDensity,LogDensity
Thread-confined log-density wrapper reporting value and gradient work.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoublelogDensity(double[] state) doublelogDensityAndGradient(double[] state, double[] gradient) Evaluates the log density and replacesgradientwith its gradient.longvoidreset()
-
Constructor Details
-
EvaluationCounter
-
-
Method Details
-
logDensity
public double logDensity(double[] state) - Specified by:
logDensityin interfaceDifferentiableLogDensity- Specified by:
logDensityin interfaceLogDensity
-
logDensityAndGradient
public double logDensityAndGradient(double[] state, double[] gradient) Description copied from interface:DifferentiableLogDensityEvaluates the log density and replacesgradientwith its gradient.- Specified by:
logDensityAndGradientin interfaceDifferentiableLogDensity
-
logDensityEvaluations
public long logDensityEvaluations() -
gradientEvaluations
public long gradientEvaluations() -
reset
public void reset()
-