n_dist2max | R Documentation |
A measure of the distance to the maximum value, where the maximum value is the highest-scoring value. The formula used is:
n_dist2max(x)
x |
A numeric vector |
1 - (x_{max} - x)/(x_{max} - x_{min})
This means that the closer a value is to the maximum, the higher its score will be. Scores will be in the range of 0 to 1.
Numeric vector
x <- runif(20)
n_dist2max(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.