IMP logo
IMP Reference Guide  2.6.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-2016 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 : public IMP::Object {
20  public:
21  ChiScore() : IMP::Object("ChiScore%1%") {}
22 
23  double compute_score(const Profile* exp_profile, const Profile* model_profile,
24  bool use_offset = false) const;
25 
26  double compute_scale_factor(const Profile* exp_profile,
27  const Profile* model_profile,
28  double offset = 0.0) const;
29 
30  double compute_offset(const Profile* exp_profile,
31  const Profile* model_profile) const;
32 
34 };
35 
36 IMPSAXS_END_NAMESPACE
37 
38 #endif /* IMPSAXS_CHI_SCORE_H */
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Common base class for heavy weight IMP objects.
Definition: Object.h:106
A class for profile storing and computation.