Esempio n. 1
0
func (this *FDMTransition) String() (res string) {
	for s := range discrete.AllStates64(this.bg.NumStates) {
		//for s = 0; s < this.bg.NumStates; s++ {
		res += fmt.Sprintf("\ns%d:", s)
		for a := range discrete.AllActions64(uint64(len(this.sas)) / this.bg.NumStates) {
			//for a = 0; a < uint64(len(this.sas))/this.bg.NumStates; a++ {
			k := s.Hashcode() + a.Hashcode()*this.bg.NumStates
			res += this.sas[k].String()
		}
	}
	return
}
Esempio n. 2
0
func (this *SysMDP) S64() <-chan discrete.State {
	return discrete.AllStates64(this.NumStates())
}
Esempio n. 3
0
func (this *Posterior) Sweep() {
	for s := range discrete.AllStates64(this.bg.NumStates) {
		//for uint64(0); s < this.bg.NumStates; s++ {
		this.ResampleState(s)
	}
}
Esempio n. 4
0
func (this *MDP) S64() <-chan discrete.State {
	return discrete.AllStates64(this.maxStates)
}