00001 #ifndef _BETA_DIAGCONSTMETRIC_
00002
00003 #include "constMetric.h"
00004
00010
00011 class diagConstMetric: public constMetric
00012 {
00013
00014 public:
00015
00016 explicit diagConstMetric(int dim);
00017 virtual ~diagConstMetric() {};
00018
00020
00022
00023 double T();
00024
00025 void evolveQ(const double epsilon);
00026
00027 void bounceP(const VectorXd& normal);
00028
00030 VectorXd& massInv() { return mMassInv; }
00031
00033
00035
00036 void sampleP(Random& random);
00037
00038 protected:
00039
00041 VectorXd mMassInv;
00042
00043 };
00044
00045 #define _BETA_DIAGCONSTMETRIC_
00046 #endif