Owning Palette: Probability VIs
Requires: Full Development System
Generates random values from a variate X, where X describes the selected distribution type. You must manually select the polymorphic instance to use.
When using the Bernoulli instance, 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.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
p is the probability of success (probability that x = 1) and must be in the interval [0,1]. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
Bernoulli random numbers contains randomized data distributed according to the Bernoulli distribution. | |
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. |
Note X represents a binomial-distributed variate: the number of successes in n independent Bernoulli trials. The Bernoulli probability parameter p is the probability of success of each trial or experiment. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
n is the number of independent Bernoulli trials. | |
p is the probability of success (probability that x = 1) and must be in the interval [0,1]. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
binomial random data contains randomized data distributed according to the binomial distribution. | |
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. |
Note X represents a geometric-distributed variate: given a sequence of n independent Bernoulli trials, X is the number of trials (or failures) before the first success. The Bernoulli probability parameter p is the probability of success of each trial or experiment. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
p is the probability of success (probability that x = 1) and must be in the interval [0,1]. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
geometric random data contains randomized data distributed according to the geometric distribution. | |
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. |
Note X represents a hypergeometric-distributed variate: the number of successes when n items are drawn from an M-sized population of which k elements are successes. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
M is the number of elements in the population. | |
k is the number of successes in the population. | |
n is the number of items drawn without replacement. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
hypergeometric random data contains randomized data distributed according to the hypergeometric distribution. | |
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. |
Note X represents a negative binomial-distributed variate: the number of failures before the xth success in a sequence of Bernoulli trials. The Bernoulli probability parameter p is the probability of success of each trial or experiment. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
x is the number of successes and must be in the interval [0,inf]. | |
p is the probability of success (probability that x = 1) and must be in the interval [0,1]. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
neg binomial random contains randomized data distributed according to the negative binomial distribution. | |
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. |
Note X represents a Poisson-distributed variate that takes on discrete, non-negative values (X = 0, 1, 2, 3, …) and often represents the number of events occurring within a specific time interval. The parameter lambda represents the average number of occurrences expected to occur within the specific time interval. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
lambda is the average number of events expected to occur within a specific time interval. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
poisson random data contains randomized data distributed according to the Poisson distribution. | |
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. |
Note X represents a random permutation of an integer sequence. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
N sets the size of the random permutation by shuffling the sequence start..start+N–1. | |
start sets the starting value of the random permutation by shuffling the sequence start..start+N–1. With start = 1 (default), LabVIEW generates a random permutation of the sequence 1, 2, …, N. |
|
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
random permutation contains randomized data generated by shuffling the sequence start..start+N–1. | |
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. |
Note X represents a discrete uniform-distributed variate where every value in the range of integers in the interval [1,n] is equally likely to occur. |
reset, if TRUE, resets the seed to the seed control value. The default is FALSE. | |
samples specifies the number of samples the output array contains. samples must be greater than or equal to 0. The default is 128. | |
n is the maximum value of the uniform variate. | |
seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1. | |
uniform (discrete) random data contains randomized data distributed according to the uniform distribution. | |
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. |