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)
whereN
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
Specs
get(t, transition) :: Himamo.Model.probability
Returns probability of transition to state S_j
when model is in state
S_i
.
Specs
new(pos_integer) :: t
Creates a representation of state transitions between n×n
states.
Specs
put(t, transition, Himamo.Model.probability) :: t
Updates probability of transition to state S_j
when model is in state
S_i
.