/
fitting_tools.h
37 lines (33 loc) · 1.17 KB
/
fitting_tools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* \file IMP/multifit/fitting_tools.h
* \brief tools for handling fitting records
*
* Copyright 2007-2022 IMP Inventors. All rights reserved.
*
*/
#ifndef IMPMULTIFIT_FITTING_TOOLS_H
#define IMPMULTIFIT_FITTING_TOOLS_H
#include <IMP/algebra/Transformation3D.h>
#include <IMP/base_types.h>
#include <IMP/core/Hierarchy.h>
#include <IMP/Object.h>
#include <IMP/atom/Hierarchy.h>
#include <IMP/multifit/multifit_config.h>
#include "FittingSolutionRecord.h"
IMPMULTIFIT_BEGIN_NAMESPACE
//! prune solutions by distance to an anchor point
/**
\param[in] fit_sols initial fitting solutions
\param[in] mh the molecule the fitting solutions apply for
\param[in] ap anchor point for which the transformed mh (fit) should be
close to
\param[in] dist all fits such that the distance between ap and the fit center
is smaller than dist will be included
\return the pruned fitting solutions
*/
IMPMULTIFITEXPORT FittingSolutionRecords
get_close_to_point(const FittingSolutionRecords &fit_sols,
atom::Hierarchy mh, IMP::Particle *ap,
Float dist);
IMPMULTIFIT_END_NAMESPACE
#endif /* IMPMULTIFIT_FITTING_TOOLS_H */