Package jline.lib.butools.trace
Class LagCorrelationsFromTrace
java.lang.Object
jline.lib.butools.trace.LagCorrelationsFromTrace
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]lagCorrelationsFromTrace(double[] trace) static double[]lagCorrelationsFromTrace(double[] trace, int K) Returns the lag-k autocorrelation of a trace.static MatrixlagkJointMomentsFromTrace(double[] trace, int K) static MatrixlagkJointMomentsFromTrace(double[] trace, int K, int L) Returns the lag-L joint moments of a trace.
-
Method Details
-
lagCorrelationsFromTrace
public static double[] lagCorrelationsFromTrace(double[] trace, int K) Returns the lag-k autocorrelation of a trace.- Parameters:
trace- The trace dataK- The number of lags to compute- Returns:
- The lag-k autocorrelation function of the trace up to lag K
-
lagCorrelationsFromTrace
public static double[] lagCorrelationsFromTrace(double[] trace) -
lagkJointMomentsFromTrace
Returns the lag-L joint moments of a trace. It is computed as Nm_{i,j} = (1/(N-L)) * sum_{k=0}^{N-L-1} x_k^i * x_{k+L}^j.- Parameters:
trace- The trace dataK- The joint moments are computed up to order KL- The lag at which the joint moments are computed- Returns:
- Matrix of shape (K+1, K+1) containing the lag-L joint moments
-
lagkJointMomentsFromTrace
-