Beluga named requirements: SensorModel
Requirements for a sensor model to be used in a Beluga ParticleFilter.
Requirements
A type T satisfies the SensorModel requirements if the following is satisfied:
T::state_typeis a valid type, representing a particle state.T::weight_typeis an arithmetic type, representing a particle weight.T::measurement_typeis a valid type, representing a sensor measurement.
Given:
A possibly const instance
cpofT.A movable instance
mofT::measurement_type.
Then:
cp(m)returns a callable satisfying Beluga named requirements: StateWeightingFunction for states ofT::state_typeand weights ofT::weight_typetypes.
Beluga named requirements: StateWeightingFunction
Requirements on a callable used for reweighting particle states in a Beluga ParticleFilter.
Requirements
A type F satisfies the StateWeightingFunction requirements for some state type S and weight type W if:
Given:
A possibly const instance
fnofF.A possible const instance
sofS.
Then:
fn(s)returns a weightwofW.