home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
develop.63b38c487d,2024/12/21
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
include
IMP
saxs
version 20241221.develop.63b38c487d
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
34
IMP_OBJECT_METHODS
(
ChiScore
);
35
};
36
37
IMPSAXS_END_NAMESPACE
38
39
#endif
/* IMPSAXS_CHI_SCORE_H */
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
object_macros.h:25
IMP::saxs::ChiScore
Definition:
ChiScore.h:19
IMP::saxs::Profile
Definition:
Profile.h:34
IMP::Object
Common base class for heavy weight IMP objects.
Definition:
Object.h:111
Profile.h
A class for profile storing and computation.