markov
Markov sequences and Markov processes.
MarkovSeq
¤
Bases: NamedTuple
Markov sequence.
Source code in probdiffeq/solvers/markov.py
9 10 11 12 13 |
|
marginals(markov_seq: MarkovSeq, *, reverse)
¤
Extract the (time-)marginals from a Markov sequence.
Source code in probdiffeq/solvers/markov.py
88 89 90 91 92 93 94 95 96 97 98 |
|
rescale_cholesky(markov_seq: MarkovSeq, factor) -> MarkovSeq
¤
Rescale the Cholesky factor of the covariance of a Markov sequence.
Source code in probdiffeq/solvers/markov.py
66 67 68 69 70 |
|
sample(key, markov_seq: MarkovSeq, *, shape, reverse)
¤
Sample from a Markov sequence.
Source code in probdiffeq/solvers/markov.py
16 17 18 19 20 21 22 23 24 25 |
|
select_terminal(markov_seq: MarkovSeq) -> MarkovSeq
¤
Discard all intermediate filtering solutions from a Markov sequence.
This function is useful to convert a smoothing-solution into a Markov sequence that is compatible with sampling or marginalisation.
Source code in probdiffeq/solvers/markov.py
78 79 80 81 82 83 84 85 |
|