|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpiv2.Statistics
public class Statistics
Some convenient methods for calculating statistical data. All methods are declared static, so that it is not necessary to create a specific instance of this class.
| Constructor Summary | |
|---|---|
Statistics()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics()
| Method Detail |
|---|
public static double getMin(double[] val)
val - The data
public static double getMax(double[] val)
val - The data
public static double getMedian(double[] val)
val - The data
public static double[] getResidualsOfMedian(double[] val)
val - The data x_i.
public static double getAverage(double[] val)
val - The data
public static float getAverage(float[] val)
val - The data
public static float getAverage(float[][] val)
val - The data
public static double getStandardDeviation(double[] val)
val - The data
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||