public class RunningAverage extends RunningTotal
| Constructor and Description |
|---|
RunningAverage(int size,
int precision) |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string representing the current running average.
|
String |
toString(int temporaryPrecision)
Returns a string representing the current running average, but will use
the new precision rather than the one in the constructor.
|
add, getAverage, getSize, getTotalpublic String toString()
toString in class RunningTotalpublic String toString(int temporaryPrecision)
Copyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.