com.supermap.data

Class StatisticMode

  • java.lang.Object
    • com.supermap.data.StatisticMode


  • public class StatisticMode
    extends java.lang.Object
    Defines the field statistic method type constant.

    Provides commonly used statistics for single fields, including MAX, MIN, AVERAGE, STDDEVIATION, SUM, VARIANCE.

    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAX

        public static final StatisticMode MAX
        Calculates the maximum value of the field.
      • MIN

        public static final StatisticMode MIN
        Calculates the minimum value of the selected field.
      • AVERAGE

        public static final StatisticMode AVERAGE
        Calculates the average of the selected field.
      • SUM

        public static final StatisticMode SUM
        Decides the sum of the field.
      • STDDEVIATION

        public static final StatisticMode STDDEVIATION

        Calculates the standard deviation of the selected field.

        The calculation formula of standard deviation is:

        represents the variance of the field, x represents the value of the selected field, n represents the number of records of the field, i represents the integer from 1 to n, and M represents the mean value of the field.

      • VARIANCE

        public static final StatisticMode VARIANCE

        Calculates the variance of the selected field.

        The calculation formula of variance is:

        V represents the variance of the field, x represents the value of the selected field, n represents the number of the records in the field, i represents the integer from 1 to n, and M represents the mean value of the field.