Skip to content

Instantly share code, notes, and snippets.

@dressel
dressel / discrete.jl
Created December 17, 2017 20:54
New implementation of discrete belief
# Goals: minimize calls to ordered_states (allocates memory)
# needs pomdp for state_index in pdf(b, s)
# needs list of ordered_states for rand(b)
mutable struct DiscreteBelief{P<:POMDP, S}
pomdp::P
state_list::Vector{S} # vector of ordered states
b::vector{Float64}
end