Returns the expected mean and variance of the random variate X, where X describes the selected distribution type. You must manually select the polymorphic instance to use.


icon

Inputs/Outputs

  • cdbl.png p

    p is the probability of success of each Bernoulli trial and must be in the interval [0,1].

  • idbl.png mean

    mean is the expected mean of a variate with the given parameters.

  • idbl.png variance

    variance is the expected variance of a variate with the given parameters.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • In the Bernoulli instance of the VI, X represents a Bernoulli-distributed variate with one of two possible outcomes: success (x = 1) or failure (x = 0). The Bernoulli probability parameter p is the probability of success of a single trial or experiment.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Probability and Statistics\Display Discrete Probability Distributions.vi