Closed virgesmith closed 7 years ago
sample function errors because all probabilities are zero. (weights - weights_int) integerise should simply return the input weights in this case. Enclosing this call in an if statement fixes problem.
Fixed in https://github.com/philmikejones/rakeR/pull/45
sample function errors because all probabilities are zero. (weights - weights_int) integerise should simply return the input weights in this case. Enclosing this call in an if statement fixes problem.