IMP  2.4.0
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-2015 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 /**
19  chi scoring on log intensities
20 */
21 class IMPSAXSEXPORT ChiScoreLog {
22  public:
23  Float compute_score(const Profile* exp_profile, const Profile* model_profile,
24  bool use_offset = false) const;
25 
26  Float compute_score(const Profile* exp_profile, const Profile* model_profile,
27  Float min_q, Float max_q) const;
28 
29  Float compute_scale_factor(const Profile* exp_profile,
30  const Profile* model_profile,
31  Float offset = 0.0) const;
32 
33  Float compute_offset(const Profile* exp_profile,
34  const Profile* model_profile) const {
35  // not implemented as no straightforward solution to the equations
36  IMP_UNUSED(exp_profile);
37  IMP_UNUSED(model_profile);
38  return 0.0;
39  }
40 };
41 
42 IMPSAXS_END_NAMESPACE
43 
44 #endif /* IMPSAXS_CHI_SCORE_LOG_H */
Various general useful macros for IMP.
#define IMP_UNUSED(variable)
double Float
Basic floating-point value (could be float, double...)
Definition: types.h:20
A class for profile storing and computation.