|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mytrendtimer.trendtimer.Statistic
public class Statistic
Some static methods to calculate various statistical indicators on a float array.
| Constructor Summary | |
|---|---|
Statistic()
|
|
| Method Summary | |
|---|---|
static float |
calcArithMean(float[] data,
MyTrendTimer mttObjArg)
Calculates the arithmetic mean of an array of numbers. |
static float |
calcFirst(float[] data,
MyTrendTimer mttObjArg)
Return the first number of the array of numbers. |
static float |
calcLast(float[] data,
MyTrendTimer mttObjArg)
Return the last number of the array of numbers. |
static float |
calcMax(float[] data,
MyTrendTimer mttObjArg)
Calculates the maximum an array of numbers. |
static float |
calcMaxGain(float[] data,
MyTrendTimer mttObjArg)
Calculates the max gain an array of numbers. |
static float |
calcMaxLoose(float[] data,
MyTrendTimer mttObjArg)
Calculates the max loose an array of numbers. |
static float |
calcMedian(float[] data,
MyTrendTimer mttObjArg)
Calculates the pseudo median an array of numbers. |
static float |
calcMin(float[] data,
MyTrendTimer mttObjArg)
Calculates the minimum an array of numbers. |
static float |
calcSimplePerf(float[] data,
MyTrendTimer mttObjArg)
Calculates the performance between first and last in an array of numbers. |
static double |
calcStandardDev(float[] data,
MyTrendTimer mttObjArg)
Calculates standard deviation of an array of numbers. |
static float |
calcVariance(float[] data,
MyTrendTimer mttObjArg)
Calculates variance of an array of numbers. |
static float |
countNbrRecords(float[] data,
MyTrendTimer mttObjArg)
Return the count of numbers of the array of numbers. |
static void |
main(java.lang.String[] args)
Dummy main method to test the Statistic class |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statistic()
| Method Detail |
|---|
public static float calcArithMean(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the arithmetic mean of. Array must contain
two or more numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcFirst(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to find the first one. Array must contain two or more
numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcLast(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to find the last one. Array must contain two or more
numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcMax(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the max of. Array must contain two or more
numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcMaxGain(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the max gain of. Array must contain two or
more numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcMaxLoose(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the max loose of. Array must contain two or
more numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcMedian(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the median of. Array must contain two or
more numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcMin(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the min of. Array must contain two or more
numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcSimplePerf(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute performance of. Array must contain two or more
numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static double calcStandardDev(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the standard deviation of. Array must
contain two or more numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float calcVariance(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to compute the variance of. Array must contain two or
more numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static float countNbrRecords(float[] data,
MyTrendTimer mttObjArg)
throws java.lang.Exception
data - Numbers to count. Array must contain two or more
numbers.mttObjArg - The MyTrendTimer controller object to keep the warnings raised.
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - not used
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||