00001
00002
00003 #ifndef BinnedLikelihoodFunction_h
00004 #define BinnedLikelihoodFunction_h
00005
00006 #include "LikelihoodFunction.h"
00007
00008 #include "Serializable.h"
00009
00010
00011 namespace BIE {
00012
00013
00017 class BinnedLikelihoodFunction : public LikelihoodFunction
00018 {
00019 public:
00020
00021
00022 BinnedLikelihoodFunction() {}
00023
00024 double LikeProb(std::vector<double> &z, SampleDistribution* sd,
00025 double norm, Tile *t, State *s, int indx);
00026
00027
00028 private:
00029 friend class boost::serialization::access;
00030 template<class Archive>
00031 void serialize(Archive & ar, const unsigned int version) {
00032 this->pre_serialize(ar, version);
00033 try {
00034 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(LikelihoodFunction);
00035 BIE_CATCH_BOOST_SERIALIZATION_EXCEPTION;
00036 }
00037 this->post_serialize(ar, version);
00038 }
00039
00040 };
00041
00042 }
00043
00044 BIE_CLASS_TYPE_INFO(BIE::BinnedLikelihoodFunction)
00045 BIE_CLASS_EXPORT_KEY(BIE::BinnedLikelihoodFunction)
00046 #endif