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