public class Statistics
extends java.lang.Object
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
static double[] |
comparePivDataSets(PivData referenceData,
PivData testData,
boolean useBorder)
Calculates the root mean square error (standard deviation) based on
differences with reference data (not the average of the data itself).
|
static double |
getAverage(double[] val)
Gets the arithmetic average of an array of double values.
|
static float |
getAverage(float[] val)
Gets the arithmetic average of an array of float values.
|
static float |
getAverage(float[][] val)
Gets the arithmetic average of a double array of float values.
|
static double |
getLinearRegressionGradient(double[] x,
double[] y)
Gets the gradient b of the linear regression through the given points x,
y.
|
static double |
getMax(double[] val)
Gets the maximum value of an array of double values.
|
static double |
getMedian(double[] val)
Gets the median of an array of double values.
|
static double |
getMin(double[] val)
Gets the minimum value of an array of double values.
|
static double[] |
getResidualsOfMedian(double[] val)
Gets the residuals r of the median x_m of an array of double values x_i (
r_i = |x_i - x_m| ).
|
static double |
getStandardDeviation(double[] val)
Gets the standard deviation of an array of double values.
|
public static double getMin(double[] val)
val
- The datapublic static double getMax(double[] val)
val
- The datapublic static double getMedian(double[] val)
val
- The datapublic static double[] getResidualsOfMedian(double[] val)
val
- The data x_i.public static double getAverage(double[] val)
val
- The datapublic static float getAverage(float[] val)
val
- The datapublic static float getAverage(float[][] val)
val
- The datapublic static double getStandardDeviation(double[] val)
val
- The datapublic static double getLinearRegressionGradient(double[] x, double[] y)
x
- The independent values.y
- The measured values.public static double[] comparePivDataSets(PivData referenceData, PivData testData, boolean useBorder)
referenceData
- the reference datatestData
- the test datauseBorder
- ignores border values if false