Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
typos, removed old extraneous comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg committed Feb 24, 2017
1 parent 41edd44 commit 3cc0530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/rollout.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""
estimate_value(estimator, problem::POMDPs.POMDP, start_state, h::BeliefNode, depth::Int)
estimate_value(estimator, problem::POMDPs.POMDP, start_state, h::BeliefNode, steps::Int)
Return an initial unbiased estimate of the value at belief node h.
By default this runs a rollout simulation
"""
function estimate_value end
estimate_value(f::Function, pomdp::POMDPs.POMDP, start_state, h::BeliefNode, d::Int) = f(pomdp, start_state, h, steps)
estimate_value(n::Number, pomdp::POMDPs.POMDP, start_state, h::BeliefNode, d::Int) = convert(Float64, n)
estimate_value(f::Function, pomdp::POMDPs.POMDP, start_state, h::BeliefNode, steps::Int) = f(pomdp, start_state, h, steps)
estimate_value(n::Number, pomdp::POMDPs.POMDP, start_state, h::BeliefNode, steps::Int) = convert(Float64, n)

type PORolloutEstimator
solver::Union{POMDPs.Solver,POMDPs.Policy,Function}
Expand Down
2 changes: 1 addition & 1 deletion src/tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ abstract BeliefNode{B,A,O}
# Note: links to parents were taken out because they hadn't been used in anything we've done so far
# Note: probably don't need the labels, but they don't seem like they would really kill performance

type ActNode{A, O, BNodeType <: BeliefNode} # Need A, O, everything in belief
type ActNode{A, O, BNodeType <: BeliefNode}
label::A # for keeping track of which action this corresponds to
N::Int
V::Float64
Expand Down

0 comments on commit 3cc0530

Please sign in to comment.