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

baserate

the baserate of the simulated codeSet

kappaMin

the minimum kappa of the simulated codeSet

kappaMax

the maximum kappa of the simulated codeSet

precisionMin

the minimum precision of the simulated codeSet

precisionMax

the maximum precision of the simulated codeSet

...

Parameters passed to createRandomSet (e.g. type = "set" or type = "ct")

tries

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.