Package com.vividsolutions.jump.util
Class StatisticIndices
- java.lang.Object
-
- com.vividsolutions.jump.util.StatisticIndices
-
public class StatisticIndices extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOEF_VARIATIONstatic StringCOUNTstatic StringKURTOSISstatic StringMAXstatic StringMEANstatic StringMEDIANstatic StringMINstatic StringNUM_CLASSESstatic StringPERCENTILE_25static StringPERCENTILE_75static StringRMSstatic StringSKEWNESSstatic StringSTANDARD_DEVstatic StringSUMstatic StringVARIANCE
-
Constructor Summary
Constructors Constructor Description StatisticIndices()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateDescriptiveStatistics(double[] values)doubleget25Percentile()Returns the 25 percentile of the arraydoubleget75Percentile()Returns 75 percentile of the arrayintgetClasses()Return the number of added values * less one to avoid to count class value = 0doublegetCoeffOfVar()Returns the coefficient of variation of the arrayintgetCount()Return the number of added values *Map<Double,Integer>getCounts()static List<String>getIndices()Create a lis with all the indices availabledoublegetKurtosis()Return the kurtosis of the arraydoublegetMax()Returns the maximum value of the arraydoublegetMean()Returns the mean value of the arraydoublegetMedian()Returns the median value of the arraydoublegetMin()Returns the minimum value of the arraydoublegetRMS()Returns the Root Mean Squared of the arraydoublegetSkewness()Returns the skewness of the arraydoublegetStdDev()Returns the standard deviation of the arraydoublegetSum()Returns the sum of all values of the arraydoublegetVariance()Returns the variance of the array
-
-
-
Field Detail
-
MAX
public static String MAX
-
MIN
public static String MIN
-
MEAN
public static String MEAN
-
STANDARD_DEV
public static String STANDARD_DEV
-
MEDIAN
public static String MEDIAN
-
COUNT
public static String COUNT
-
SUM
public static String SUM
-
COEF_VARIATION
public static String COEF_VARIATION
-
RMS
public static String RMS
-
PERCENTILE_25
public static String PERCENTILE_25
-
PERCENTILE_75
public static String PERCENTILE_75
-
SKEWNESS
public static String SKEWNESS
-
KURTOSIS
public static String KURTOSIS
-
VARIANCE
public static String VARIANCE
-
NUM_CLASSES
public static String NUM_CLASSES
-
-
Method Detail
-
getIndices
public static List<String> getIndices()
Create a lis with all the indices available- Returns:
- a list of indices
-
calculateDescriptiveStatistics
public void calculateDescriptiveStatistics(double[] values)
-
getCoeffOfVar
public double getCoeffOfVar()
Returns the coefficient of variation of the array- Returns:
- variance/mean as double
-
getCount
public int getCount()
Return the number of added values *- Returns:
- the number of added values
-
getMax
public double getMax()
Returns the maximum value of the array- Returns:
- max value as double
-
getMean
public double getMean()
Returns the mean value of the array- Returns:
- mean value as double
-
getMin
public double getMin()
Returns the minimum value of the array- Returns:
- min value as double
-
getMedian
public double getMedian()
Returns the median value of the array- Returns:
- median value as double
-
getRMS
public double getRMS()
Returns the Root Mean Squared of the array- Returns:
- Root Mean Squared as double
-
getStdDev
public double getStdDev()
Returns the standard deviation of the array- Returns:
- standard deviation as double
-
getSum
public double getSum()
Returns the sum of all values of the array- Returns:
- the sum of all values
-
getVariance
public double getVariance()
Returns the variance of the array- Returns:
- the variance
-
get25Percentile
public double get25Percentile()
Returns the 25 percentile of the array- Returns:
- 25 percentile as double
-
get75Percentile
public double get75Percentile()
Returns 75 percentile of the array- Returns:
- 75 percentile as double
-
getSkewness
public double getSkewness()
Returns the skewness of the array- Returns:
- the skewness as double
-
getKurtosis
public double getKurtosis()
Return the kurtosis of the array- Returns:
- kurtosis as double
-
getClasses
public int getClasses()
Return the number of added values * less one to avoid to count class value = 0- Returns:
- the number of classes
-
-