tempo_eval.equal1

tempo_eval.equal1(reference_tempo, estimated_tempo, tolerance=0.04, factor=1.0)[source]

Determines whether two tempi are considered equal, given an allowed tolerance and factor.

When averaged, results correspond to Accuracy 1.

See also equal2.

Parameters
  • reference_tempo (float) – references tempo

  • estimated_tempo (Optional[float]) – estimated tempo

  • tolerance (float) – tolerance, default is 0.04, i.e., 4%

  • factor (float) – allowed deviation factor

Returns

True or False

Return type

bool

See also

Fabien Gouyon, Anssi P. Klapuri, Simon Dixon, Miguel Alonso, George Tzanetakis, Christian Uhle, and Pedro Cano. An experimental comparison of audio tempo induction algorithms. IEEE Transactions on Audio, Speech, and Language Processing, 14(5):1832– 1844, 2006.