Learn R Programming

KOR.addrlink (version 1.0.1)

l1score: Calculate L1-Distance Based Scores

Description

Reversed normalized absolute distance from zero.

Usage

l1score(x)

Value

A numeric vector of the same length as x

Arguments

x

A numeric vector

Author

Daniel Schürmann

Details

$$1 - \frac{|x|}{\text{max}\{1, |x|\}}$$