PHP Класс Vimeo\ABLincoln\Operators\Random\WeightedChoice

Required Inputs: - 'choices': array of elements to draw from - 'weights': array of draw probabilities Optional Inputs: None
Наследование: extends Vimeo\ABLincoln\Operators\RandomOperator
Показать файл Открыть проект

Защищенные методы

Метод Описание
_simpleExecute ( ) : mixed Choose an element with weighted probability from the parameter array

Описание методов

_simpleExecute() защищенный Метод

Choose an element with weighted probability from the parameter array
protected _simpleExecute ( ) : mixed
Результат mixed the element chosen from the given array