ScoreScaling: Score Scaling Functions

ScoreScalingR Documentation

Score Scaling Functions

Description

Scoring functions

Usage

score.rescale(x, xlim = NULL, method = "linear", ...)

Arguments

x

A numeric vector of data.

xlim

The scoring range. If null, derives range from data.

method

Only 'linear' is supported.

...

Arguments for min, max, pmin, pmax.

p

A percentage buffer to add to the maximum value.

Value

Returns scores.

See Also

min, max, pmin, pmax

Examples


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))

OHI-Science/ohicore documentation built on Dec. 10, 2023, 5:45 a.m.