org.zkoss.pivot
Class Calculators

java.lang.Object
  extended by org.zkoss.pivot.Calculators

public class Calculators
extends java.lang.Object

Built-in Calculators

Author:
simonpai

Field Summary
static Calculator AVERAGE
          Calculates the arithmetic average of data.
static Calculator COUNT
          Returns the count of data.
static Calculator MAX
          Calculates the maximum of data.
static Calculator MIN
          Calculates the minimum of data.
static Calculator SUM
          Returns the arithmetic sum of data.
 
Constructor Summary
Calculators()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUM

public static final Calculator SUM
Returns the arithmetic sum of data. Non numeric values are omitted. Returns 0 if no numeric values are present in data array.


COUNT

public static final Calculator COUNT
Returns the count of data.


MAX

public static final Calculator MAX
Calculates the maximum of data. Non numeric values are omitted. Returns null if no numeric values are present in data array.


MIN

public static final Calculator MIN
Calculates the minimum of data. Non numeric values are omitted. Returns null if no numeric values are present in data array.


AVERAGE

public static final Calculator AVERAGE
Calculates the arithmetic average of data. Non numeric values are omitted. Returns null if no numeric values are present in data array.

Constructor Detail

Calculators

public Calculators()


Copyright © 2012. All Rights Reserved.