tests/testthat/_snaps/GeneratorFuzzyNumbers.md

Function returns correct values

Code
  set.seed(1234567)
  GeneratorFuzzyNumbers(10, "rnorm", list(mean = 0, sd = 1), "rexp", list(rate = 2),
  "runif", list(min = 0, max = 0.6), "runif", list(min = 0, max = 1))
Output
               [,1]        [,2]        [,3]       [,4]
   [1,] -0.03058876  0.05304108  0.49621349  1.2917660
   [2,]  0.84511825  0.90502343  2.18041703  2.8508429
   [3,] -0.04233168  0.26601420  1.05683474  1.9900161
   [4,] -2.87816506 -2.45836215 -0.51571191 -0.2521547
   [5,] -0.63718168 -0.44339201  0.02172262  0.4877597
   [6,] -0.32724931  0.01816627  0.72468609  0.9050975
   [7,] -2.49555213 -1.98421233 -0.77075630 -0.3766185
   [8,]  0.67510145  0.88438133  1.48420452  1.5028536
   [9,] -2.20790978 -1.87757684 -0.34342726  0.2440131
  [10,] -0.84876040 -0.68370457 -0.06581210  0.2582104
Code
  set.seed(1234567)
  GeneratorFuzzyNumbers(n = 10, "rnorm", list(mean = 0, sd = 1), "rexp", list(
    rate = 2), "runif", list(min = 0, max = 0.6), "runif", list(min = 0, max = 1),
  increases = TRUE)
Output
              [,1]        [,2]        [,3]       [,4]
   [1,] 0.08362984  0.05304108  0.49621349 0.79555254
   [2,] 0.05990518  0.90502343  2.18041703 0.67042584
   [3,] 0.30834588  0.26601420  1.05683474 0.93318141
   [4,] 0.41980291 -2.45836215 -0.51571191 0.26355722
   [5,] 0.19378967 -0.44339201  0.02172262 0.46603711
   [6,] 0.34541559  0.01816627  0.72468609 0.18041140
   [7,] 0.51133980 -1.98421233 -0.77075630 0.39413783
   [8,] 0.20927987  0.88438133  1.48420452 0.01864906
   [9,] 0.33033295 -1.87757684 -0.34342726 0.58744038
  [10,] 0.16505583 -0.68370457 -0.06581210 0.32402246


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.