Purple Code

com.purpletech.math
Class Average

java.lang.Object
  |
  +--com.purpletech.math.Average

public class Average
extends java.lang.Object

Maintains a running average


Constructor Summary
Average(int len)
           
 
Method Summary
 void add(int val)
           
 double getAverage()
           
 float getAverageFloat()
           
 long getSum()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Average

public Average(int len)
Method Detail

add

public void add(int val)

getSum

public long getSum()

getAverage

public double getAverage()

getAverageFloat

public float getAverageFloat()

main

public static void main(java.lang.String[] args)

Documentation generated March 5 2003