org.intranet.statistics
Class FloatColumn

java.lang.Object
  extended byorg.intranet.statistics.FloatColumn
All Implemented Interfaces:
Column

public class FloatColumn
extends java.lang.Object
implements Column


Field Summary
private  float average
           
private  java.lang.String heading
           
private  float max
           
private  int maxIndex
           
private  float min
           
private  int minIndex
           
private  double total
           
private  float[] values
           
 
Constructor Summary
FloatColumn(java.lang.String hdr, float[] vals)
           
 
Method Summary
private  void calculate()
           
 java.lang.Number getAverage()
           
 java.lang.String getHeading()
           
 java.lang.Number getMax()
           
 int getMaxIndex()
           
 java.lang.Number getMin()
           
 int getMinIndex()
           
 java.lang.Number getTotal()
           
 java.lang.Number getValue(int x)
           
 int getValueCount()
           
 boolean isMax(int index)
           
 boolean isMin(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

private float[] values

heading

private java.lang.String heading

total

private double total

average

private float average

min

private float min

max

private float max

minIndex

private int minIndex

maxIndex

private int maxIndex
Constructor Detail

FloatColumn

public FloatColumn(java.lang.String hdr,
                   float[] vals)
Method Detail

getHeading

public java.lang.String getHeading()
Specified by:
getHeading in interface Column

getTotal

public java.lang.Number getTotal()
Specified by:
getTotal in interface Column

getAverage

public java.lang.Number getAverage()
Specified by:
getAverage in interface Column

getMin

public java.lang.Number getMin()
Specified by:
getMin in interface Column

getMax

public java.lang.Number getMax()
Specified by:
getMax in interface Column

getValueCount

public int getValueCount()
Specified by:
getValueCount in interface Column

getValue

public java.lang.Number getValue(int x)
Specified by:
getValue in interface Column

getMinIndex

public int getMinIndex()
Specified by:
getMinIndex in interface Column

getMaxIndex

public int getMaxIndex()
Specified by:
getMaxIndex in interface Column

isMin

public boolean isMin(int index)
Specified by:
isMin in interface Column

isMax

public boolean isMax(int index)
Specified by:
isMax in interface Column

calculate

private void calculate()