#ifndef DIM__Tools__Weight_H #define DIM__Tools__Weight_H namespace DIM { struct MC_Weight { public: double m_f, m_g, m_h; inline MC_Weight(const double &f, const double &g,const double &h): m_f(f), m_g(g), m_h(h) {} inline double MC() const { return m_f/m_g; } inline double Accept() const { return m_g/m_h; } inline double Reject() const { return m_g/m_h*(m_h-m_f)/(m_g-m_f); } };// end of struct MC_Weight inline std::ostream &operator<<(std::ostream &s,const MC_Weight &w) { return s<<"W(f="<