tempo_eval.pe1

tempo_eval.pe1(reference_tempo, estimated_tempo, factor=1.0)[source]

Percentage error for two tempi values allowing for a given factor. If a reference tempo of 0 is given, this function returns NaN. If an estimate of None is given, this function returns NaN.

See also pe2.

Parameters
  • reference_tempo (float) – a reference tempo, should not be 0

  • estimated_tempo (Optional[float]) – an estimated tempo

  • factor (float) – multiplication factor

Returns

the percentage error

Return type

float