cosmos-sdk/types/simulation/transition_matrix.go

13 lines
482 B
Go

package simulation
import "math/rand"
// TransitionMatrix is _almost_ a left stochastic matrix. It is technically
// not one due to not normalizing the column values. In the future, if we want
// to find the steady state distribution, it will be quite easy to normalize
// these values to get a stochastic matrix. Floats aren't currently used as
// the default due to non-determinism across architectures
type TransitionMatrix interface {
NextState(r *rand.Rand, i int) int
}