package com.tempodb;


/**
 *  Folding function for {@link Aggregation}'s and {@link Rollup}'s.
 *  @since 1.0.0
 */
public enum Fold {
  /**
   *  Sum of DataPoints
   *  @since 1.0.0
   */
  SUM,

  /**
   *  Arithmetic mean of DataPoints (average)
   *  @since 1.0.0
   */
  MEAN,

  /**
   *  Maximum of DataPoints
   *  @since 1.0.0
   */
  MAX,

  /**
   *  Minimum of DataPoints
   *  @since 1.0.0
   */
  MIN,

  /**
   *  Count of DataPoints
   *  @since 1.0.0
   */
  COUNT,

  /**
   *  Standard deviation of DataPoints
   *  @since 1.0.0
   */
  STDDEV
}

@@ -192,16 +192,91 @@
   SUM,%0A%0A
+  /**%0A   *  Multiplication of DataPoints%0A   *  @since 1.0.0%0A   */%0A  MULT,%0A%0A
   /**%0A  
@@ -570,73 +570,332 @@
  *  
-Standard deviation of DataPoints%0A   *  @since 1.0.0%0A   */%0A  STDDEV
+Variance of DataPoints%0A   *  @since 1.0.0%0A   */%0A  VARIANCE,%0A%0A  /**%0A   *  Standard deviation of DataPoints%0A   *  @since 1.0.0%0A   */%0A  STDDEV,%0A%0A  /**%0A   *  Range of DataPoints (max - min)%0A   *  @since 1.0.0%0A   */%0A  RANGE,%0A%0A  /**%0A   *  First DataPoint in interval (takes the left most DataPoint)%0A   *  @since 1.0.0%0A   */%0A  FIRST
 %0A%7D%0A

Add folding functions for first and variance