qualCenteredRef: Quality metric for 'centeredness' of a distribution around...

View source: R/fcn_qualities.R

qualCenteredRefR Documentation

Quality metric for 'centeredness' of a distribution around zero with a user-supplied range threshold.

Description

Ranges between 0 (worst score) and 1 (best score). The best score is achieved when the median of 'x' is close to the center of the interval [-tol, tol]. If median of 'x' is close to the border (on either side), the score decreases linearly to zero. Can be used for uncalibrated mass errors, as a measure of how well they are centered around 0.

Usage

qualCenteredRef(x, tol)

Arguments

x

Vector of values (hopefully in interval [-tol, tol])

tol

Border of interval (must be positive)

Details

NA's are removed for all computations.

Value

Value between [0, 1]


PTXQC documentation built on May 29, 2024, 9:26 a.m.