R/defuzzify.R

Defines functions gset_defuzzify

Documented in gset_defuzzify

cset_defuzzify <-
gset_defuzzify <-
function(x, method = c("meanofmax", "smallestofmax", "largestofmax", "centroid"))
    switch(match.arg(method),
           centroid = mean(x),
           smallestofmax = min(gset_peak(x)),
           meanofmax = mean(gset_peak(x)),
           largestofmax = max(gset_peak(x))
           )

Try the sets package in your browser

Any scripts or data that you put into this service are public.

sets documentation built on March 7, 2023, 7:58 p.m.