Class StatisticIndices
java.lang.Object
com.vividsolutions.jump.util.StatisticIndices
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateDescriptiveStatistics(double[] values) doubleReturns the 25 percentile of the arraydoubleReturns 75 percentile of the arrayintReturn the number of added values * less one to avoid to count class value = 0doubleReturns the coefficient of variation of the arrayintgetCount()Return the number of added values *Create a lis with all the indices availabledoubleReturn the kurtosis of the arraydoublegetMax()Returns the maximum value of the arraydoublegetMean()Returns the mean value of the arraydoubleReturns the median value of the arraydoublegetMin()Returns the minimum value of the arraydoublegetRMS()Returns the Root Mean Squared of the arraydoubleReturns the skewness of the arraydoubleReturns the standard deviation of the arraydoublegetSum()Returns the sum of all values of the arraydoubleReturns the variance of the array
-
Field Details
-
MAX
-
MIN
-
MEAN
-
STANDARD_DEV
-
MEDIAN
-
COUNT
-
SUM
-
COEF_VARIATION
-
RMS
-
PERCENTILE_25
-
PERCENTILE_75
-
SKEWNESS
-
KURTOSIS
-
VARIANCE
-
NUM_CLASSES
-
-
Constructor Details
-
StatisticIndices
public StatisticIndices()
-
-
Method Details
-
getIndices
-
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
-
getCounts
-