tests/testthat/_snaps/EWMethod.md

Function returns correct values

Code
  set.seed(1234567)
  EWMethod(fuzzyValuesA)
Output
              [,1]      [,2]      [,3]     [,4]
  [1,]  0.22453010 0.5254699 1.1011022 1.148898
  [2,]  0.08686915 0.9131309 1.6812172 2.518783
  [3,]  0.11638011 1.6336199 1.7197900 1.980210
  [4,] -1.43883190 0.4388319 0.4388319 1.561168
Code
  set.seed(1234567)
  EWMethod(fuzzyValuesA, b = 5)
Output
              [,1]       [,2]       [,3]     [,4]
  [1,]  0.04216798  0.7078320  1.0678725 1.182127
  [2,] -0.41291554  1.4129155  1.5543229 2.645677
  [3,]  0.84273524  0.9072648  1.7486370 1.951363
  [4,] -0.55653462 -0.4434654 -0.4434654 2.443465
  [5,]  0.08391788  0.9160821  1.7106470 2.489353
Code
  set.seed(1234567)
  EWMethod(fuzzyValuesIncA, increases = TRUE)
Output
            [,1]      [,2]      [,3]       [,4]
  [1,] 0.3009398 0.5254699 1.1011022 0.04779563
  [2,] 0.8262617 0.9131309 1.6812172 0.83756556
  [3,] 1.5172398 1.6336199 1.7197900 0.26042000
  [4,] 1.8776638 0.4388319 0.4388319 1.12233619
Code
  set.seed(1234567)
  EWMethod(fuzzyValuesIncA, b = 5, increases = TRUE)
Output
             [,1]       [,2]       [,3]     [,4]
  [1,] 0.66566404  0.7078320  1.0678725 0.114255
  [2,] 1.82583107  1.4129155  1.5543229 1.091354
  [3,] 0.06452953  0.9072648  1.7486370 0.202726
  [4,] 0.11306923 -0.4434654 -0.4434654 2.886931
  [5,] 0.83216423  0.9160821  1.7106470 0.778706


Try the FuzzyResampling package in your browser

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

FuzzyResampling documentation built on Oct. 4, 2024, 5:11 p.m.