Package jline.lib.butools.fitting
Class LikelihoodFromTraceKt
-
- All Implemented Interfaces:
public final class LikelihoodFromTraceKt
-
-
Method Summary
Modifier and Type Method Description final static DoublelikelihoodFromTracePH(DoubleArray trace, Matrix alpha, Matrix A, Double prec)Evaluates the log-likelihood of a trace with the given PH distribution or MAP. final static DoublelikelihoodFromTraceMAP(DoubleArray trace, Matrix D0, Matrix D1, Double prec)Evaluates the log-likelihood of a trace with the given MAP. -
-
Method Detail
-
likelihoodFromTracePH
final static Double likelihoodFromTracePH(DoubleArray trace, Matrix alpha, Matrix A, Double prec)
Evaluates the log-likelihood of a trace with the given PH distribution or MAP. The result is divided by the length of the trace.
- Parameters:
trace- The samples of the tracealpha- The initial probability vector of the PH distributionA- The transient generator of the PH distributionprec- Numerical precision used by the randomization (default 1e-14)- Returns:
The log likelihood divided by the size of the trace
-
likelihoodFromTraceMAP
final static Double likelihoodFromTraceMAP(DoubleArray trace, Matrix D0, Matrix D1, Double prec)
Evaluates the log-likelihood of a trace with the given MAP. The result is divided by the length of the trace.
- Parameters:
trace- The samples of the traceD0- The D0 matrix of the MAPD1- The D1 matrix of the MAPprec- Numerical precision used by the randomization (default 1e-14)- Returns:
The log likelihood divided by the size of the trace
-
-
-
-