Class VariateComposite<T>

  • Type Parameters:
    T - the type of the random variate values.
    All Implemented Interfaces:
    Variate<T>

    public final class VariateComposite<T>
    extends java.lang.Object
    implements Variate<T>
    This class represents a composite T-type random variate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T value()
      Returns a value (instance) of the random variate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VariateComposite

        public VariateComposite​(Variate<T>[] variates,
                                int[] biases)
        Constructs a composite random variate.
        Parameters:
        variates - the random variates to be composed.
        biases - the biases of the random variates.
        Throws:
        java.lang.IllegalArgumentException - if variates == null or biases == null; if the variates and biases arrays have different sizes or they are empty or the biases array contains negative numbers.
      • VariateComposite

        public VariateComposite​(java.util.List<Variate<T>> variates,
                                java.util.List<java.lang.Integer> biases)
        Constructs a composite random variate.
        Parameters:
        variates - the random variates to be composed.
        biases - the biases of the random variates.
        Throws:
        java.lang.IllegalArgumentException - if variates == null or biases == null; if the variates and biases arrays have different sizes or they are empty or the biases array contains negative numbers.
      • VariateComposite

        public VariateComposite​(Variate<T>[] variates)
        Constructs a composite random variate.
        Parameters:
        variates - the random variates to be composed.
        Throws:
        java.lang.IllegalArgumentException - if variates == null; if variates is empty.
      • VariateComposite

        public VariateComposite​(java.util.Collection<Variate<T>> variates)
        Constructs a composite random variate.
        Parameters:
        variates - the random variates to be composed.
        Throws:
        java.lang.IllegalArgumentException - if variates == null; if variates is empty.
    • Method Detail

      • value

        public T value()
        Description copied from interface: Variate
        Returns a value (instance) of the random variate.
        Specified by:
        value in interface Variate<T>
        Returns:
        a random variate value.