[R] Fuzzy_partition with fuzzy_trapezoid
arthur.stilben at gmail.com
Tue Aug 2 18:54:39 CEST 2016
Thanks, Sarah, for response. But you showed me an example with
fuzzy_variable. I'd like to use fuzzy_partition. I also tried:
> teste = fuzzy_partition(varnames = c('a', 'b'), FUN = fuzzy_trapezoid, corners = c(1,2,3,4), height = c(1,1) )
But the trapezoids 'a' and 'b' were overlap. Is there a way to
construct two separeted trapezoids with fuzzy_partitions?
2016-08-02 12:51 GMT-03:00 Sarah Goslee <sarah.goslee em gmail.com>:
> As already discussed, yes, but you can't specify corners and height
> twice in a single call.
> Please do read the help for the functions you're interested in, and
> perhaps go back to refresh yourself on some basic R.
>> sets_options("universe", seq(from = 0, to = 10, by = 0.1))
>> test1 = fuzzy_variable( a = fuzzy_trapezoid( corners = c( 0, 1, 2, 3 )))
>> sets_options("universe", seq( from = 0, to = 5, by = 0.1 ))
>> test2 = fuzzy_variable( b = fuzzy_trapezoid( corners = c( 4, 5, 6, 7 )))
> On Tue, Aug 2, 2016 at 11:14 AM, Arthur Stilben
> <arthur.stilben em gmail.com> wrote:
>> I already made this question, but I was not subscribed and not
>> received any reply. I tried this:
>>> teste = fuzzy_partition(varnames = c('a', 'b'), FUN = fuzzy_trapezoid, corners = c(1,2,3,4), height = c(1,1), corners = c(5,6,7,8), height = c(1,1) )
>> But I got this error:
>> Error in FUN(i, ...) :
>> formal argument "corners" represents multiples specified arguments
>> Is it possible to combine fuzzy_partition with fuzzy_trapezoid?
Arthur Rodrigues Stilben
Geoinformática - LENEP
More information about the R-help