Interface RandomDataGenerator<T>

All Superinterfaces:
Pseudorandom, Serializable, scala.Serializable
All Known Implementing Classes:
ExponentialGenerator, GammaGenerator, LogNormalGenerator, PoissonGenerator, StandardNormalGenerator, UniformGenerator, WeibullGenerator

public interface RandomDataGenerator<T> extends Pseudorandom, scala.Serializable
Trait for random data generators that generate i.i.d. data.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a copy of the RandomDataGenerator with a new instance of the rng object used in the class when applicable for non-locking concurrent usage.
    Returns an i.i.d. sample as a generic type from an underlying distribution.

    Methods inherited from interface org.apache.spark.util.random.Pseudorandom

    setSeed
  • Method Details

    • copy

      Returns a copy of the RandomDataGenerator with a new instance of the rng object used in the class when applicable for non-locking concurrent usage.
      Returns:
      (undocumented)
    • nextValue

      T nextValue()
      Returns an i.i.d. sample as a generic type from an underlying distribution.
      Returns:
      (undocumented)