This function calculates the m/z match score based on the m/z error and the MS1 match tolerance in parts per million (ppm). The score is calculated using a Gaussian-like function.
calculate_mz_match_score(mz.error, ms1.match.ppm = 25)
A numeric vector representing the m/z match score for each m/z error. The score is calculated using the formula: \(exp(-0.5 * (mz.error / ms1.match.ppm)^2)\).
The m/z match score is computed using a Gaussian-like function where the error is normalized by the MS1 match tolerance (`ms1.match.ppm`). Lower m/z errors result in higher match scores.