Class MCover.Parameters_approximate

java.lang.Object
eu.bandm.music.entities.MCover.Parameters_approximate
Enclosing class:
MCover

public static class MCover.Parameters_approximate extends Object
The parameters when MCover works in "binary approximation mode", which divides only by two(2) until the approximation is better than the given thresholds.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Whether distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary.
    Maximally allowed distance below the approximation; it holds that (found_approx - orig<=distance_lower).
    Maximally allowed distance above the approximation; it holds that (orig - found_approx<=distance_upper).
    int
    Divisor for generating new approximations.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Check consistency of parameters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • distance_lower

      public Rational distance_lower
      Maximally allowed distance below the approximation; it holds that (found_approx - orig<=distance_lower).
    • distance_upper

      public Rational distance_upper
      Maximally allowed distance above the approximation; it holds that (orig - found_approx<=distance_upper).
    • divisor

      public int divisor
      Divisor for generating new approximations.
    • allow_coincidence

      public boolean allow_coincidence
      Whether distances of zero(=0/1) are allowed, or divisions must be repeated as long as necessary. FIXME ????
  • Constructor Details

    • Parameters_approximate

      public Parameters_approximate()
  • Method Details