Class DiscreteSampler

All Implemented Interfaces:
Serializable

public class DiscreteSampler extends DiscreteDistribution
A class for discrete distributions specified from the probability mass function
See Also:
  • Constructor Details

    • DiscreteSampler

      public DiscreteSampler(Matrix p)
    • DiscreteSampler

      public DiscreteSampler(Matrix p, Matrix x)
      Constructs a discrete distribution from a finite probability vector p at the points specified in vector x
      Parameters:
      p - - the probability of an item
      x - - the value of an item
  • Method Details