Least-square-error amplitude measurement of pulse signals in presence of noise