Package jline.api
Class TRACE
java.lang.Object
jline.api.TRACE
APIs for statistical analysis of trace data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrix
mtrace_mean
(double[] trace, int ntypes, int[] type) Computes the mean of a trace, divided by types.static double
trace_mean
(double[] trace) Computes the overall mean of the trace data.static double
trace_var
(double[] trace) Computes the variance of the trace data.
-
Constructor Details
-
TRACE
public TRACE()
-
-
Method Details
-
mtrace_mean
Computes the mean of a trace, divided by types.- Parameters:
trace
- the array containing the trace datantypes
- the number of different typestype
- an array indicating the type of each element in the trace- Returns:
- a matrix containing the mean values for each type
-
trace_mean
public static double trace_mean(double[] trace) Computes the overall mean of the trace data.- Parameters:
trace
- the array containing the trace data- Returns:
- the mean value of the trace data
-
trace_var
public static double trace_var(double[] trace) Computes the variance of the trace data.- Parameters:
trace
- the array containing the trace data- Returns:
- the variance of the trace data
-