Description Arguments Examples
The R6 class FuzzyRescale
transforms data into 0-1 or
0-100 scale based on Fuzzy membership functions.
x |
An |
select |
expression, indicating columns to select from a data frame or matrix |
na.rm |
a logical value indicating whether |
digits |
integer indicating the number of decimal places to be used. |
max |
a scalar indicating the maximum endpoint of rescaled variable. The might be 1, 100, etc. |
center |
it determines the central value of a fuzzy set. It should be
any of the values "mean",
"median" or any numeric input. It will have
a membership degree of 1, in |
sigma |
it determines the width of a fuzzy set obtained from either
|
param_one |
This is the first parameter for |
param_two |
This is the second parameter for |
1 2 3 4 5 6 7 | x <- c(
0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5, 4.4,
4.6, 5.4, 5.4, 5.7, 5.8, 5.9, 6.0, 6.6, 7.1, 7.9
)
x_fuzzy <- FuzzyRescale$new(x)
R6::is.R6(x_fuzzy)
x_fuzzy$gaussmf()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.