himamo v0.1.0 Himamo.Model.A

Defines state transition distribution.

State transition distribution, commonly denoted by A, defines the probability of the model transitioning to state S_j, given its current state is S_i.

  • i,j ∈ [0, N) where N is the total number of states.

Examples

# Distribution with 3 states
iex> a = Himamo.Model.A.new(3)
...> a = Himamo.Model.A.put(a, {1, 2}, 0.1)
...> Himamo.Model.A.get(a, {1, 2})
0.1

Summary

Functions

Returns probability of transition to state S_j when model is in state S_i

Creates a representation of state transitions between n×n states

Updates probability of transition to state S_j when model is in state S_i

Types

Functions

get(a, arg)

Returns probability of transition to state S_j when model is in state S_i.

new(n)

Specs

new(pos_integer) :: t

Creates a representation of state transitions between n×n states.

put(a, arg, val)

Updates probability of transition to state S_j when model is in state S_i.