25 lines
423 B
C++
25 lines
423 B
C++
#ifndef ARTIFICIALDISTRIBUTION_H
|
|
#define ARTIFICIALDISTRIBUTION_H
|
|
|
|
#include <vector>
|
|
#include "../Particle.h"
|
|
|
|
namespace SMC {
|
|
|
|
/**
|
|
* interface for artificial distributions
|
|
*/
|
|
template <typename State>
|
|
class ArtificialDistribution {
|
|
|
|
public:
|
|
|
|
/** calculate the probability/density*/
|
|
virtual double calculate(Particle<State> const& particle) = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // ARTIFICIALDISTRIBUTION_H
|