ref #39 smoothing is refactored
KDE smoothing algorithmisch mal geschrieben, jetzt noch testen
This commit is contained in:
@@ -80,10 +80,10 @@ namespace SMC {
|
||||
return particles;
|
||||
}
|
||||
|
||||
/** access to all non resample particles */
|
||||
const std::vector<Particle<State>>& getNonResamplingParticles() {
|
||||
return particlesNoResampling;
|
||||
}
|
||||
/** access to all non resample particles */
|
||||
const std::vector<Particle<State>>& getNonResamplingParticles() {
|
||||
return particlesNoResampling;
|
||||
}
|
||||
|
||||
/** initialize/re-start the particle filter */
|
||||
void init() {
|
||||
@@ -91,11 +91,11 @@ namespace SMC {
|
||||
initializer->initialize(particles);
|
||||
}
|
||||
|
||||
void setAngle(const double angle){
|
||||
for(SMC::Particle<State>& p : particles){
|
||||
p.state.walkState.heading = angle;
|
||||
}
|
||||
}
|
||||
void setAngle(const double angle){
|
||||
for(SMC::Particle<State>& p : particles){
|
||||
p.state.walkState.heading = angle;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** set the resampling method to use */
|
||||
@@ -148,7 +148,7 @@ namespace SMC {
|
||||
Assert::isNotNull(estimation, "estimation MUST not be null! call setEstimation() first!");
|
||||
|
||||
// perform the transition step
|
||||
transition->transition(particles, control);
|
||||
transition->transition(particles, control);
|
||||
|
||||
// perform the evaluation step and calculate the sum of all particle weights
|
||||
const double weightSum = evaluation->evaluation(particles, observation);
|
||||
|
||||
Reference in New Issue
Block a user