Create numbers
Usage
ch_double(n = 1, mean = 0, sd = 1)
ch_integer(n = 1, min = 1, max = 1000)
ch_unif(n = 1, min = 0, max = 9999)
ch_norm(n = 1, mean = 0, sd = 1)
ch_lnorm(n = 1, mean = 0, sd = 1)
ch_beta(n = 1, shape1, shape2, ncp = 0)
Arguments
- n
(integer) number of things to get, any non-negative integer
- mean
mean value
- sd
standard deviation
- min
minimum value
- max
maximum value
- shape1, shape2
non-negative parameters of the Beta distribution
- ncp
non-centrality parameter
Examples
ch_double()
#> [1] 1.242001
ch_double(10)
#> [1] 0.7157482 1.0934396 -1.6230383 0.3424443 -1.1521031 -0.2397608
#> [7] -1.2538448 -0.7691853 -1.7421215 1.7916014
ch_double(100)
#> [1] -0.29031412 -0.95449540 -0.77198092 0.71343201 -0.02386824 -0.45101708
#> [7] 0.29332933 0.28568328 0.83052586 -0.03700567 0.91506014 0.31648186
#> [13] 0.20669469 -0.31001095 -0.69932792 -2.29080464 1.02298430 1.38364951
#> [19] 0.20659581 0.63987398 -0.05819527 -0.11623681 0.13523388 -0.35328961
#> [25] -0.58767074 0.66610983 -0.29178015 -0.99816692 -0.15473384 -1.60051731
#> [31] 1.52995384 -0.23150133 0.73925048 -0.27317290 0.37860474 -0.78798105
#> [37] -0.45549286 2.41816425 1.85789210 -0.80807117 0.43973281 -1.25201164
#> [43] 0.18077341 -1.15304780 0.43397422 0.42622775 -0.73922516 0.92079586
#> [49] -1.42622266 -1.05242869 2.75615247 -1.15998325 -1.38467554 2.10435785
#> [55] -0.68738145 0.59285580 -1.27148318 0.60412398 -0.55870388 -0.53722173
#> [61] 0.29972303 1.00335071 0.25795944 0.47238399 0.57710552 1.29087294
#> [67] 0.20841049 -1.30008494 -0.30293184 -1.60543606 -0.70764543 -0.86552551
#> [73] 1.53388456 1.55117551 0.69478791 0.69821815 -0.59793816 0.57886159
#> [79] -0.03157126 -0.34719227 0.28318063 -2.04590034 1.31895192 1.39470398
#> [85] 1.94292681 0.08053135 1.89126064 -0.21918284 -0.46669596 -0.03583293
#> [91] 0.12203749 -0.95152755 -0.68994429 -2.27083622 -1.11263644 0.56041848
#> [97] 0.68062626 -1.15176016 -1.01225246 -0.55859248
ch_integer()
#> [1] 285
ch_integer(10)
#> [1] 437 405 331 859 555 164 877 392 772 178
ch_integer(100)
#> [1] 657 972 772 1 107 80 439 202 576 548 320 93 70 946 237 226 734 40
#> [19] 195 602 444 918 619 451 76 847 471 294 257 732 762 492 237 602 859 287
#> [37] 106 642 944 640 352 217 367 79 772 799 673 744 178 213 885 760 164 335
#> [55] 429 777 779 910 427 88 680 356 308 583 936 509 365 46 964 730 118 311
#> [73] 944 827 750 539 564 7 131 984 715 270 739 793 870 11 449 238 790 608
#> [91] 605 705 202 324 41 606 826 497 538 807
ch_unif()
#> [1] 4409.604
ch_norm()
#> [1] 0.01067799
ch_lnorm()
#> [1] 0.6588634
ch_beta(shape1 = 1, shape2 = 1)
#> [1] 0.209745