Package jline.lib.butools.trace
Class MarginalMomentsFromTraceKt
-
- All Implemented Interfaces:
public final class MarginalMomentsFromTraceKt
-
-
Method Summary
Modifier and Type Method Description final static DoubleArraymarginalMomentsFromTrace(DoubleArray trace, Integer K)Returns the marginal moments of a trace. final static DoubleArraymarginalMomentsFromWeightedTrace(DoubleArray trace, DoubleArray weights, Integer K)Returns the marginal moments of a weighted trace. -
-
Method Detail
-
marginalMomentsFromTrace
final static DoubleArray marginalMomentsFromTrace(DoubleArray trace, Integer K)
Returns the marginal moments of a trace.
- Parameters:
trace- The trace dataK- The number of moments to compute (default 5)- Returns:
The (raw) moments of the trace
-
marginalMomentsFromWeightedTrace
final static DoubleArray marginalMomentsFromWeightedTrace(DoubleArray trace, DoubleArray weights, Integer K)
Returns the marginal moments of a weighted trace.
- Parameters:
trace- The trace dataweights- The weights for each sampleK- The number of moments to compute (default 5)- Returns:
The (raw) moments of the weighted trace
-
-
-
-