How can I calculate vector relative errors in percent?
14 views (last 30 days)
I have to calculated for each vector sample mean ms and variance vs and for
each calculated ms and vs calculate their relative errors in percent. How can I calculate their relative errors in percent?
It would be great if somebody give some examples.
Image Analyst on 4 Dec 2022
You need to have a reference signal. Note: variance of a signal is not the error of a signal unless the true signal is a constant, which would be a true variance of zero. For example a true noiseless sine wave would have a variance but that is not an error -- it's the true signal.
You can compute the percentage error from your reference signal like this
pctMeans = 100 * abs(refSignal - testSignal) ./ refSignal;