SLIKMC  1.0
 All Classes Functions Variables Pages
BFactor.h
1 /*
2  * BFactor.h
3  *
4  * Created on: Jun 13, 2012
5  * Author: Yajia
6  */
7 
8 #ifndef BFACTOR_H_
9 #define BFACTOR_H_
10 #include "PProtein.h"
11 #include <vector.h>
12 using namespace Math3D;
13 using namespace std;
14 
18 class BFactor {
19 public:
23  BFactor(PProtein* protein);
24 
32  double evalAtomPositions( PProtein* chain, const int s, const int e);
33 
38  void output( char* filename);
39 private:
40  vector< string> residue_name;
41  vector< vector<string> > atom_name;
42  vector< vector<Vector3> > atom_pos;
43  vector< vector<double> > atom_bfactors;
44  vector< vector<double> > atom_variance;
45 
53  double getProbDensity_log( const Vector3& mean, const double variance, const Vector3& position) const;
54 
62  double getProbDensity_log( const double mean, const double variance, const double x);
63 };
64 
65 #endif /* BFACTOR_H_ */