IMP  2.0.0
The Integrative Modeling Platform
ChiScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/saxs/ChiScore.h \brief Basic chi score implementation
3  *
4  * Copyright 2007-2013 IMP Inventors. All rights reserved.
5  *
6  */
7 
8 #ifndef IMPSAXS_CHI_SCORE_H
9 #define IMPSAXS_CHI_SCORE_H
10 
11 #include <IMP/saxs/saxs_config.h>
12 #include "Profile.h"
13 
14 IMPSAXS_BEGIN_NAMESPACE
15 
16 class IMPSAXSEXPORT ChiScore {
17  public:
18  Float compute_score(const Profile& exp_profile,
19  const Profile& model_profile,
20  bool use_offset = false) const;
21 
22  Float compute_score(const Profile& exp_profile,
23  const Profile& model_profile,
24  Float min_q, Float max_q) const;
25 
26  Float compute_scale_factor(const Profile& exp_profile,
27  const Profile& model_profile,
28  Float offset = 0.0) const;
29 
30  Float compute_offset(const Profile& exp_profile,
31  const Profile& model_profile) const;
32 };
33 
34 IMPSAXS_END_NAMESPACE
35 
36 #endif /* IMPSAXS_CHI_SCORE_H */