Developer Guide and Reference

  • 2021.6
  • 04/11/2022
  • Public Content
Contents

Bernoulli Distribution

Generates Bernoulli distributed random numbers.

Details

Bernoulli random number generator fills the LaTex Math image. numeric table with Bernoulli distributed values with the LaTex Math image. probability of success on a single trial, where LaTex Math image., LaTex Math image..
A variate is called Bernoulli distributed if after a trial it is equal to LaTex Math image. with the probability of success LaTex Math image. and to LaTex Math image. with the probability LaTex Math image.. The probability distribution is given by:
LaTex Math image.
LaTex Math image.
The cumulative distribution function is as follows:
LaTex Math image.

Batch Processing

Algorithm Parameters
Bernoulli distribution algorithm has the following parameters in addition to the common parameters specified in Distributions:
Algorithm Parameters for Bernoulli Distribution (Batch Processing)
Parameter
Default Value
Description
algorithmFPType
float
The floating-point type that the algorithm uses for intermediate computations. Can be
float
or
double
.
method
defaultDense
Performance-oriented computation method, the only method supported by the algorithm.
p
Not applicable
Success probability of a trial, required parameter.

Examples

Python*
Batch Processing:

Performance Considerations

To get the best overall performance when using the Bernoulli distribution random number generator, provide the 32-bit signed integer homogeneous numeric table constructed with enabled equal features.
Product and Performance Information
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex​.
Notice revision #20201201

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.