Description Usage Arguments Value See Also Examples
Scoring functions
1 | score.rescale(x, xlim = NULL, method = "linear", ...)
|
x |
A numeric vector of data. |
xlim |
The scoring range. If null, derives range from data. |
p |
A percentage buffer to add to the maximum value. |
method |
Only 'linear' is supported. |
... |
Arguments for min, max, pmin, pmax. |
Returns scores.
min, max, pmin, pmax
1 2 3 4 5 | score.max(c(0.5, 1, 2))
score.max(c(0.5, 1, 2), p=0.25)
score.rescale(c(0.5, 1, 2))
score.clamp(c(-0.5, 1, 2))
score.clamp(c(-0.5, 1, 2), xlim=c(-1, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.