org.omnaest.utils.math
Class Average<N extends Number>
java.lang.Object
org.omnaest.utils.math.Average<N>
- Type Parameters:
N -
public class Average<N extends Number>
- extends Object
Average calculates average values based on a given Collection of Numbers
- Author:
- Omnaest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Average
public Average()
Average
public Average(Collection<N> numberCollection)
- Parameters:
numberCollection -
calculate
public BigDecimal calculate()
- Calculates the
Average of the stored values
- Returns:
size
public int size()
isEmpty
public boolean isEmpty()
add
public boolean add(N e)
addAll
public boolean addAll(Collection<? extends N> c)
clear
public void clear()
Copyright © 2013. All Rights Reserved.