RandomSampler

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(probability: Double): RandomSampler

Creates a new RandomSampler with the provided probability. If the probability is greater than 1D it will be adjusted to 1D and if it is lower than 0 it will be adjusted to 0.

Creates a new RandomSampler with the provided probability. If the probability is greater than 1D it will be adjusted to 1D and if it is lower than 0 it will be adjusted to 0.

def create(probability: Double): RandomSampler

Creates a new RandomSampler with the provided probability. If the probability is greater than 1D it will be adjusted to 1D and if it is lower than 0 it will be adjusted to 0.

Creates a new RandomSampler with the provided probability. If the probability is greater than 1D it will be adjusted to 1D and if it is lower than 0 it will be adjusted to 0.