Class WeightedSet

  • All Implemented Interfaces:
    Serializable, Iterable, Collection, Set

    public class WeightedSet
    extends AbstractSet
    implements Serializable

    Inspred by the BioJava Distribution objects the WeightedSet is a map from a Key to a Weight. Unlike Distributions the Keys do not have to be Symbols. In the GA package the WeightedMap is useful for sampling Organisms according to their fitness.

    When Symbols are added or their weights are set then the weights are internally normalized to 1

    Since:
    1.5
    Version:
    1.0
    Author:
    Mark Schreiber
    See Also:
    Serialized Form