IMP  2.3.1
The Integrative Modeling Platform
model_statistics.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/model_statistics.h
3  * \brief Log the restraint scores and things.
4  *
5  * Copyright 2007-2014 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPCORE_MODEL_STATISTICS_H
9 #define IMPCORE_MODEL_STATISTICS_H
10 
11 #include <IMP/core/core_config.h>
12 #include <IMP/kernel/Model.h>
14 #include <IMP/io.h>
15 
16 IMPCORE_BEGIN_NAMESPACE
17 
18 /** Periodically call write the scores of the passed restraints
19  to a file. The file starts with a line whose first character
20  is a # with the names of the restraints separated by commas
21  and then has one line per periodic update with comma
22  separated scores for each restraint.
23 */
25  : public kernel::OptimizerState {
27  base::TextOutput out_;
28 
29  public:
31  base::TextOutput out);
32 
33  protected:
34  virtual void do_update(unsigned int call_num) IMP_OVERRIDE;
36 };
37 
38 IMPCORE_END_NAMESPACE
39 
40 #endif /* IMPCORE_MODEL_STATISTICS_H */
virtual void do_update(unsigned int)
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Shared optimizer state that is invoked upon commitment of new coordinates.
Import IMP/kernel/io.h in the namespace.
Shared optimizer state.
Storage of a model, its restraints, constraints and particles.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.