Exemplo 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
}
Exemplo n.º 2
0
func (this *SysMDP) A64() <-chan discrete.Action {
	return discrete.AllActions64(this.NumActions())
}
Exemplo n.º 3
0
func (this *MDP) A64() <-chan discrete.Action {
	return discrete.AllActions64(this.maxActions)
}