Stop conditions

n_tries(n)

n_metamers(n)

minimize_ratio(r)

Arguments

n

integer number of tries or metamers.

r

Ratio of minimize value to shoot for. If 0.5, the stop condition is that the iteration will stop if the value to minimize gets to one-half of the starting value.