calc_peak_error()

Description: Calculates the peak error for the B-mode data compared to the reference data.

Usage

error = calc_peak_error(ref, comp, fsref, fscomp, debug); 

Arguments

Output Parameters

Notes

This function will ONLY works well if GCD(fsref,fscomp) = MIN(fsref,fscomp)