com.rubecula.darwin.domain.world
Class NumericFrequencyMap

java.lang.Object
  extended by com.rubecula.darwin.domain.world.FrequencyMap<java.lang.Number>
      extended by com.rubecula.darwin.domain.world.NumericFrequencyMap
All Implemented Interfaces:
HasMean

public class NumericFrequencyMap
extends FrequencyMap<java.lang.Number>
implements HasMean

This is a FrequencyMap where the keys each have an intrinsic value, yielded by invoking Number.doubleValue().

Author:
Robin Hillyard

Constructor Summary
NumericFrequencyMap(java.lang.String name)
           
 
Method Summary
 double mean()
           
 
Methods inherited from class com.rubecula.darwin.domain.world.FrequencyMap
add, add, clear, containsKey, get, getMap, getName, getTotal, isEmpty, keySet, log, output, output, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericFrequencyMap

public NumericFrequencyMap(java.lang.String name)
Parameters:
name -
Method Detail

mean

public double mean()
Specified by:
mean in interface HasMean
Returns:
the weighted mean of the values in the map.


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.