IMP  2.0.1
The Integrative Modeling Platform
ChiScoreLog.h
Go to the documentation of this file.
1 /**
2  * \file IMP/saxs/ChiScoreLog.h \brief scoring with log intensity
3  *
4  * Copyright 2007-2013 IMP Inventors. All rights reserved.
5  *
6  */
7 
8 #ifndef IMPSAXS_CHI_SCORE_LOG_H
9 #define IMPSAXS_CHI_SCORE_LOG_H
10 
12 
13 #include <IMP/saxs/saxs_config.h>
14 #include "Profile.h"
15 
16 IMPSAXS_BEGIN_NAMESPACE
17 
18 class IMPSAXSEXPORT ChiScoreLog {
19  public:
20  Float compute_score(const Profile& exp_profile,
21  const Profile& model_profile,
22  bool use_offset = false) const;
23 
24  Float compute_score(const Profile& exp_profile,
25  const Profile& model_profile,
26  Float min_q, Float max_q) const;
27 
28  Float compute_scale_factor(const Profile& exp_profile,
29  const Profile& model_profile,
30  Float offset = 0.0) const;
31 
32  Float compute_offset(const Profile& exp_profile,
33  const Profile& model_profile) const {
34  // not implemented as no straightforward solution to the equations
35  IMP_UNUSED(exp_profile);
36  IMP_UNUSED(model_profile);
37  return 0.0;
38  }
39 
40 };
41 
42 IMPSAXS_END_NAMESPACE
43 
44 #endif /* IMPSAXS_CHI_SCORE_LOG_H */