Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jasig.portal.utils
Class MovingAverage

    java.lang.Object
      org.jasig.portal.utils.MovingAverage

    public class MovingAverage

extends java.lang.Object

Since:
  uPortal 2.5
Version:
  $Revision: 1.3 $ $Date: 2005/04/18 14:44:01 $
Author:
  George Lindholm George.Lindholm@ubc.ca

Nested Class Summary
`static class` | `MovingAverage.Sample`

Field Summary
`private int` | `ent`
`private long` | `highMax`
`private long[]` | `samples`
`private long` | `sum`
`private long` | `totalSamples`

Constructor Summary
`MovingAverage(int sampleSize)`

Method Summary
`MovingAverage.Sample` | `add(long sample)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### samples

    private long[] samples

### ent

    private int ent

### sum

    private long sum

### totalSamples

    private long totalSamples

### highMax

    private long highMax

Constructor Detail

### MovingAverage

    public MovingAverage(int sampleSize)

Method Detail

### add

    public MovingAverage.Sample add(long sample)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD