Class StatisticIndices

java.lang.Object
com.vividsolutions.jump.util.StatisticIndices

public class StatisticIndices extends Object
  • Field Details

    • 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
  • Constructor Details

    • StatisticIndices

      public StatisticIndices()
  • Method Details

    • 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
    • getCounts

      public Map<Double,Integer> getCounts()
      Returns:
      the map of each class/number of elements