Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Vimeo
ABLincoln
Operators
Random
WeightedChoice
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