IMP  2.1.1
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 /**
17  Basic implementation of Chi scoring
18 */
19 class IMPSAXSEXPORT ChiScore {
20  public:
21  Float compute_score(const Profile* exp_profile,
22  const Profile* model_profile,
23  bool use_offset = false) const;
24 
25  Float compute_score(const Profile* exp_profile,
26  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 };
36 
37 IMPSAXS_END_NAMESPACE
38 
39 #endif /* IMPSAXS_CHI_SCORE_H */
double Float
Basic floating-point value (could be float, double...)
Definition: base/types.h:20
A class for profile storing and computation.