Package eu.bandm.music.entities
Class MCover.Parameters_approximate
java.lang.Object
eu.bandm.music.entities.MCover.Parameters_approximate
- Enclosing class:
- MCover
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
Modifier and TypeFieldDescriptionboolean
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
-
Method Summary
-
Field Details
-
distance_lower
Maximally allowed distance below the approximation; it holds that (found_approx - orig<=distance_lower). -
distance_upper
Maximally allowed distance above the approximation; it holds that (orig - found_approx<=distance_upper). -
divisor
public int divisorDivisor for generating new approximations. -
allow_coincidence
public boolean allow_coincidenceWhether 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
-
check
public void check()Check consistency of parameters.- Throws:
IllegalArgumentException
-