Enum BasicAtomEncoder

  • All Implemented Interfaces:
    Serializable, Comparable<BasicAtomEncoder>, AtomEncoder

    public enum BasicAtomEncoder
    extends Enum<BasicAtomEncoder>
    implements AtomEncoder
    Enumeration of atom encoders for seeding atomic hash codes. Generally these encoders return the direct value or a prime number if that value is null. These encoders are considered basic as the values generated are all in the same range. Better encoding can be achieved by assigning discrete values a section of the prime number table. However, In practice using a pseudorandom number generator to distribute the encoded values provides a good distribution.
    Author:
    John May
    See Also:
    ConjugatedAtomEncoder, Prime numbers archive
    Source code:
    main
    Belongs to CDK module:
    hash