himamo v0.1.0 Himamo.Model.Pi

Defines initial state distribution.

Initial state distribution, commonly denoted by π, defines the probability that the model will start in state S_i.

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

Examples

iex> pi = Himamo.Model.Pi.new([0.3, 0.2, 0.5])
...> Himamo.Model.Pi.get(pi, 1)
0.2

Summary

Functions

Returns probability of model starting in state S_i

Creates a representation of the initial state probabilities

Types

t :: %Himamo.Model.Pi{n: term, probs: tuple}

Functions

get(pi, i)

Returns probability of model starting in state S_i.

new(probs)

Creates a representation of the initial state probabilities.