tests/testthat/_snaps/WMethod.md

Function returns correct values

Code
  set.seed(1234567)
  WMethod(fuzzyValuesA)
Output
             [,1]      [,2]     [,3]     [,4]
  [1,]  0.0000000 1.0000000 1.500000 3.500000
  [2,]  0.7500000 1.0000000 1.431473 1.761997
  [3,] -0.2500000 0.0000000 0.500000 0.700000
  [4,] -0.6162451 0.3837549 1.383755 1.960577
Code
  set.seed(1234567)
  WMethod(fuzzyValuesA, b = 5)
Output
             [,1]      [,2]      [,3]     [,4]
  [1,]  0.0000000 1.0000000 2.0000000 2.672286
  [2,]  0.6157935 1.0000000 1.5000000 1.908686
  [3,] -0.2500000 0.0000000 1.0000000 1.389069
  [4,] -0.4109486 0.3837549 1.0044811 1.219189
  [5,] -0.4558102 0.5441898 0.8024863 2.802486
Code
  set.seed(1234567)
  WMethod(fuzzyValuesIncA, increases = TRUE)
Output
       [,1]      [,2]     [,3]      [,4]
  [1,] 1.00 1.0000000 1.500000 2.0000000
  [2,] 0.25 1.0000000 1.431473 0.3305239
  [3,] 0.25 0.0000000 0.500000 0.2000000
  [4,] 1.00 0.3837549 1.383755 0.5768221
Code
  set.seed(1234567)
  WMethod(fuzzyValuesIncA, b = 5, increases = TRUE)
Output
            [,1]      [,2]      [,3]      [,4]
  [1,] 1.0000000 1.0000000 2.0000000 0.6722861
  [2,] 0.3842065 1.0000000 1.5000000 0.4086860
  [3,] 0.2500000 0.0000000 1.0000000 0.3890686
  [4,] 0.7947034 0.3837549 1.0044811 0.2147076
  [5,] 1.0000000 0.5441898 0.8024863 2.0000000


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.