package random
Utilities for random number generation.
Type Members
-
class
BernoulliCellSampler[T] extends RandomSampler[T, T]
:: DeveloperApi :: A sampler based on Bernoulli trials for partitioning a data sequence.
:: DeveloperApi :: A sampler based on Bernoulli trials for partitioning a data sequence.
- T
item type
- Annotations
- @DeveloperApi()
-
class
BernoulliSampler[T] extends RandomSampler[T, T]
:: DeveloperApi :: A sampler based on Bernoulli trials.
:: DeveloperApi :: A sampler based on Bernoulli trials.
- T
item type
- Annotations
- @DeveloperApi()
-
class
PoissonSampler[T] extends RandomSampler[T, T]
:: DeveloperApi :: A sampler for sampling with replacement, based on values drawn from Poisson distribution.
:: DeveloperApi :: A sampler for sampling with replacement, based on values drawn from Poisson distribution.
- T
item type
- Annotations
- @DeveloperApi()
-
trait
Pseudorandom extends AnyRef
:: DeveloperApi :: A class with pseudorandom behavior.
:: DeveloperApi :: A class with pseudorandom behavior.
- Annotations
- @DeveloperApi()
-
trait
RandomSampler[T, U] extends Pseudorandom with Cloneable with Serializable
:: DeveloperApi :: A pseudorandom sampler.
:: DeveloperApi :: A pseudorandom sampler. It is possible to change the sampled item type. For example, we might want to add weights for stratified sampling or importance sampling. Should only use transformations that are tied to the sampler and cannot be applied after sampling.
- T
item type
- U
sampled item type
- Annotations
- @DeveloperApi()