Skip to content

Commit

Permalink
fix stage(w, ss) call
Browse files Browse the repository at this point in the history
  • Loading branch information
Omastto1 committed Apr 19, 2021
1 parent bad7680 commit d4d123f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fixhorizon.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ end
Create a product of Infinite Horizon MDP's observations given destination state and action (and original state) with original state's stage.
"""
POMDPs.observation(w::FixedHorizonPOMDPWrapper, ss::Tuple{<:Any,Int}, a, ssp::Tuple{<:Any, Int}) = InStageDistribution(observation(w.m, first(ss), a, first(ssp)), stage(w, ss))
POMDPs.observation(w::FixedHorizonPOMDPWrapper, a, ssp::Tuple{<:Any, Int}) = InStageDistribution(observation(w.m, a, first(ssp)), stage(ssp)-1)
POMDPs.observation(w::FixedHorizonPOMDPWrapper, a, ssp::Tuple{<:Any, Int}) = InStageDistribution(observation(w.m, a, first(ssp)), stage(w, ssp)-1)

"""
POMDPs.initialstate(w::FHWrapper)
Expand Down

0 comments on commit d4d123f

Please sign in to comment.