Creates a simulated codeSet with the given parameters

createSimulatedCodeSet(
length,
baserate,
kappaMin,
kappaMax,
precisionMin,
precisionMax,
...,
tries = 50
)

Arguments

length the length of the simulated codeSet to be created the baserate of the simulated codeSet the minimum kappa of the simulated codeSet the maximum kappa of the simulated codeSet the minimum precision of the simulated codeSet the maximum precision of the simulated codeSet Parameters passed to createRandomSet (e.g. type = "set" or type = "ct") the maximum number of tries to generate a valid set, smaller set lengths may require an increased number of tries

Value

A codeSet that fulfills the given parameters

Details

codeSets are generated by first picking a random kappa within its range and a random precision within its range. If the random kappa, random precision, and baserate are not mathematically possible, then the precision is resampled from a range of mathematically possible values within its range. A unique simulated codeSet is then constructed given these parameters.