Under Const
hit_generator_from_multinomial(
z.truth = c(0.1, 0.2, 0.3, 0.4, 0.5),
mu.truth = 1,
v.truth = 2
)
Vector of dimension = C represents the thresholds of bi-normal assumption.
array of dimension (M,Q). Mean of the signal distribution of bi-normal assumption.
array of dimension (M,Q). Standard Deviation of represents the signal distribution of bi-normal assumption.
A vector of non-negative integers
The algorithm of rmultinom()
explained in ?rmultinom
is quite same as mine code.
So, I do not need to write this code. OK.