Class WeibullGenerator

Object
org.apache.spark.mllib.random.WeibullGenerator
All Implemented Interfaces:
Serializable, RandomDataGenerator<Object>, Pseudorandom, scala.Serializable

public class WeibullGenerator extends Object implements RandomDataGenerator<Object>
Generates i.i.d. samples from the Weibull distribution with the given shape and scale parameter.

param: alpha shape parameter for the Weibull distribution. param: beta scale parameter for the Weibull distribution.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    WeibullGenerator(double alpha, double beta)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    double
     
    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.
    double
    Returns an i.i.d. sample as a generic type from an underlying distribution.
    void
    setSeed(long seed)
    Set random seed.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WeibullGenerator

      public WeibullGenerator(double alpha, double beta)
  • Method Details

    • alpha

      public double alpha()
    • beta

      public double beta()
    • copy

      public WeibullGenerator copy()
      Description copied from interface: RandomDataGenerator
      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.
      Specified by:
      copy in interface RandomDataGenerator<Object>
      Returns:
      (undocumented)
    • nextValue

      public double nextValue()
      Description copied from interface: RandomDataGenerator
      Returns an i.i.d. sample as a generic type from an underlying distribution.
      Specified by:
      nextValue in interface RandomDataGenerator<Object>
      Returns:
      (undocumented)
    • setSeed

      public void setSeed(long seed)
      Description copied from interface: Pseudorandom
      Set random seed.
      Specified by:
      setSeed in interface Pseudorandom