IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
ChecksScoreState.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/ChecksScoreState.h \brief Turn checks on and off.
3
*
4
* Copyright 2007-2013 IMP Inventors. All rights reserved.
5
*/
6
7
#ifndef IMPCORE_CHECKS_SCORE_STATE_H
8
#define IMPCORE_CHECKS_SCORE_STATE_H
9
10
#include <IMP/core/core_config.h>
11
#include <
IMP/macros.h
>
12
#include <
IMP/kernel/Particle.h
>
13
#include <
IMP/ScoreState.h
>
14
15
IMPCORE_BEGIN_NAMESPACE
16
17
/** Turn checks on with a given probability each evaluate call.
18
*/
19
class
IMPCOREEXPORT
ChecksScoreState
:
public
ScoreState
{
20
double
probability_;
21
unsigned
int
num_checked_;
22
23
public
:
24
25
ChecksScoreState
(
kernel::Model
*m,
double
probability);
26
27
IMPCORE_DEPRECATED_METHOD_DECL(2.1)
28
ChecksScoreState
(
double
probability);
29
30
unsigned
int
get_number_of_checked()
const
{
return
num_checked_; }
31
32
virtual
void
do_before_evaluate() IMP_OVERRIDE;
33
virtual
void
do_after_evaluate(
DerivativeAccumulator
*da) IMP_OVERRIDE;
34
virtual
kernel::ModelObjectsTemp
do_get_outputs
()
const
IMP_OVERRIDE;
35
virtual
kernel::ModelObjectsTemp
do_get_inputs
()
const
IMP_OVERRIDE;
36
IMP_OBJECT_METHODS
(
ChecksScoreState
);
37
};
38
39
IMPCORE_END_NAMESPACE
40
41
#endif
/* IMPCORE_CHECKS_SCORE_STATE_H */
IMP::kernel::DerivativeAccumulator
Class for adding derivatives from restraints to the model.
Definition:
kernel/DerivativeAccumulator.h:25
IMP::core::ChecksScoreState
Definition:
ChecksScoreState.h:19
macros.h
Import IMP/kernel/macros.h in the namespace.
IMP::kernel::ScoreState
ScoreStates maintian invariants in the Model.
Definition:
kernel/ScoreState.h:51
IMP::base::Vector
Definition:
base/Vector.h:37
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
base/object_macros.h:25
ScoreState.h
Import IMP/kernel/ScoreState.h in the namespace.
Particle.h
Classes to handle individual model particles.
IMP::kernel::ModelObject::do_get_inputs
virtual ModelObjectsTemp do_get_inputs() const =0
IMP::kernel::ModelObject::do_get_outputs
virtual ModelObjectsTemp do_get_outputs() const =0
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72