IMP
2.0.0
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
blame.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/blame.h \brief Various important functionality
3
* for implementing decorators.
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef IMPCORE_BLAME_H
10
#define IMPCORE_BLAME_H
11
12
#include <IMP/core/core_config.h>
13
#include <
IMP/display/declare_Geometry.h
>
14
#include <
IMP/constants.h
>
15
#include <
IMP/base_types.h
>
16
17
IMPCORE_BEGIN_NAMESPACE
18
19
/** Assign blame to the passed particles by dividing up the scores of the
20
passed restraints over the particles they add on. The restraints will
21
be decomposed first in order to make sure that the assignment is as
22
fine grained as possible.
23
24
The main cost is evaluating the restraints.
25
*/
26
IMPCOREEXPORT
27
void
assign_blame
(
const
RestraintsTemp
&rs,
const
ParticlesTemp &ps,
28
FloatKey
attribute);
29
30
/** Create a set of geometry objects colored by the blame as described in
31
the docs of the assign_blame() function.
32
33
All particles must be XYZR particles.
34
35
If max is NO_MAX, then the max is found automatically.
36
*/
37
IMPCOREEXPORT
38
display::Geometries
create_blame_geometries
(
const
RestraintsTemp
&rs,
39
const
ParticlesTemp &ps,
40
double
max=
NO_MAX
,
41
std::string name= std::string());
42
43
IMPCORE_END_NAMESPACE
44
45
#endif
/* IMPCORE_BLAME_H */