com.rubecula.darwin.domain.world
Class QuantifiableFrequencyMap

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

public class QuantifiableFrequencyMap
extends FrequencyMap<Quantifiable>
implements HasMean

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

Author:
Robin Hillyard

Constructor Summary
QuantifiableFrequencyMap(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

QuantifiableFrequencyMap

public QuantifiableFrequencyMap(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.
See Also:
HasMean.mean()


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