IMP logo
IMP Reference Guide  2.20.0
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-2022 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  // returns Chi_square score
24  double compute_score(const Profile* exp_profile, const Profile* model_profile,
25  bool use_offset = false) const;
26 
27  double compute_scale_factor(const Profile* exp_profile,
28  const Profile* model_profile,
29  double offset = 0.0) const;
30 
31  double compute_offset(const Profile* exp_profile,
32  const Profile* model_profile) const;
33 
35 };
36 
37 IMPSAXS_END_NAMESPACE
38 
39 #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:111
A class for profile storing and computation.