Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Vimeo
ABLincoln
Operators
Random
BernoulliTrial
PHP Class Vimeo\ABLincoln\Operators\Random\BernoulliTrial
Required Inputs: - 'p': probability of drawing 1 Optional Inputs: None
Inheritance:
extends
Vimeo\ABLincoln\Operators\RandomOperator
Show file
Open project: vimeo/ablincoln
Protected Methods
Method
Description
_simpleExecute
( ) :
integer
Calculate either 1 or 0 with a given probability
Method Details
_simpleExecute()
protected
method
Calculate either 1 or 0 with a given probability
protected
_simpleExecute
( ) :
integer
return
integer
1 with probability p, 0 otherwise