github.com/Finschia/finschia-sdk@v0.48.1/types/simulation/transition_matrix.go (about) 1 package simulation 2 3 import "math/rand" 4 5 // TransitionMatrix is _almost_ a left stochastic matrix. It is technically 6 // not one due to not normalizing the column values. In the future, if we want 7 // to find the steady state distribution, it will be quite easy to normalize 8 // these values to get a stochastic matrix. Floats aren't currently used as 9 // the default due to non-determinism across architectures 10 type TransitionMatrix interface { 11 NextState(r *rand.Rand, i int) int 12 }