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.
pe2
reference_tempo (float) – a reference tempo, should not be 0
float
estimated_tempo (Optional[float]) – an estimated tempo
Optional
factor (float) – multiplication factor
the percentage error