PHP Class Vimeo\ABLincoln\Operators\Random\WeightedChoice

Required Inputs: - 'choices': array of elements to draw from - 'weights': array of draw probabilities Optional Inputs: None
Inheritance: extends Vimeo\ABLincoln\Operators\RandomOperator
Datei anzeigen Open project: vimeo/ablincoln

Protected Methods

Method Description
_simpleExecute ( ) : mixed Choose an element with weighted probability from the parameter array

Method Details

_simpleExecute() protected method

Choose an element with weighted probability from the parameter array
protected _simpleExecute ( ) : mixed
return mixed the element chosen from the given array