Skip to content

JavaPermutationTools, v4.3.0

Compare
Choose a tag to compare
@cicirello cicirello released this 17 Oct 16:31
· 375 commits to master since this release
9e9043c

[4.3.0] - 2022-10-17

Added

  • EditDistanceDouble: extracted from EditDistance (for sequences) all of the distancef methods for
    double-valued distances. The original EditDistance now subclasses this one to retain existing functionality.
  • Extracted the following classes from SequenceSampler that implement different algorithms for efficiently
    randomly sampling array elements without replacement:
    • SequencePoolSampler: the pool sampling algorithm of Ernvall and Nevalainen (1982),
    • SequenceReservoirSampler: the reservoir sampling algorithm of Vitter (1985),
    • SequenceInsertionSampler: the insertion sampling algorithm of Cicirello (2022), and
    • SequenceCompositeSampler: the composite of the above three of Cicirello (2022).

Changed

  • Refactored the following classes to reduce cyclomatic complexity, or for other maintainability reasons:
    • SequenceSampler
    • ExactMatchDistance (for sequences)
    • KendallTauSequenceDistance
    • EditDistance (for sequences)

Deprecated

  • The SequenceSampler.sampleReservoir methods, which are now replaced by the SequenceReservoirSampler class.
  • The SequenceSampler.samplePool methods, which are now replaced by the SequencePoolSampler class.
  • The SequenceSampler.sampleInsertion methods, which are now replaced by the SequenceInsertionSampler class.

Dependencies

  • Bump rho-mu from 2.4.1 to 2.5.0
  • Bump core from 2.2.2 to 2.4.0