Matrices / Reference
alerta.matrix.is_stochastic
TradingView-compatible spelling: matrix.is_stochastic, runs without warnings
Returns true when all rows sum to 1 and elements are non-negative.
alerta.matrix.is_stochastic(id) → boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Matrix ID. |
Returns
boolExample
alerta.matrix.is_stochastic
m = matrix.new(2, 2, 0.5)plot(matrix.is_stochastic(m) ? 1 : 0, { title: "stoch", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.