Description Usage Arguments Value
View source: R/resampling_utils.R
Calculate C.perc from ratio
1 | ratio2cperc(ratio, y.relev, rel.thr, type)
|
ratio |
Value that defines the target ratio between the number of extreme values and the number of normal values. If more than one bump exists: re-sampling will be done proportionally to each bump, so that the ratio between the sum of all extreme values and all normal values in the final data set is the target ratio. |
y.relev |
A vector containing the relevance values of target |
rel.thr |
A relevance threshold |
type |
"under", "over", or "gauss" |
A list with C.perc, the re-sampling percentage that will result in the target ratio and orig_ratio indicating the original ratio between extreme and normal values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.