Class Rician

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class Rician
    extends RandomSource

    Produce a random sequence with a Rician distribution. A Rician random variable is defined as follows: Let Z = sqrt(X2 + Y2), where X and Y are statistically independent Gaussian random variables with means given by parameters xMean and yMean respectively, and common variance given by parameter standardDeviation.

    The default values of xMean and yMean are both set to be zero, in which the distribution is also called a Rayleigh distribution. Hence, the actor is by default a Rayleigh random generator.

    On each iteration, a new random number is produced. The output port is of type DoubleToken. The values that are generated are independent and identically distributed with the means and the standard deviation given by parameters. In addition, the seed can be specified as a parameter to control the sequence that is generated.

    Since:
    Ptolemy II 3.0
    Version:
    $Id$
    Author:
    Ye Zhou
    See Also:
    Bernoulli, DiscreteRandomSource, Triangular, Uniform
    Pt.AcceptedRating:
    Green (bilung)
    Pt.ProposedRating:
    Green (eal)
    • Field Detail

      • xMean

        public Parameter xMean
        The mean of the random number along the X-axis. This parameter contains a DoubleToken, initially with value 0.0.
      • yMean

        public Parameter yMean
        The mean of the random number along the Y-axis. This parameter contains a DoubleToken, initially with value 0.0.
      • standardDeviation

        public Parameter standardDeviation
        The standard deviation of the random number. This parameter contains a DoubleToken, initially with value 1.0.