9#ifndef IMPEM_PCA_FIT_RESTRAINT_H
10#define IMPEM_PCA_FIT_RESTRAINT_H
12#include <IMP/em/em_config.h>
46 float max_pca_size_diff,
float max_angle_diff,
47 float max_centroid_diff,
60 void store_particles(ParticlesTemp ps);
70 algebra::PrincipalComponentAnalysis dens_pca_;
71 float max_angle_diff_, max_pca_size_diff_;
72 float max_centroid_diff_;
Perform coarse fitting between two density objects.
Class for handling density maps.
A decorator for particles with mass.
Storage of a model, its restraints, constraints and particles.
Refine a particle into a list of particles.
Abstract base class for all restraints.
Decorator for a sphere-like particle.
Decorator for helping deal with a hierarchy of molecules.
Class for adding derivatives from restraints to the model.
Class to handle individual particles of a Model object.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
An axis-aligned bounding box.
static FloatKey get_mass_key()
Class for handling density maps.
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
PCAFitRestraint(ParticlesTemp ps, DensityMap *em_map, float threshold, float max_pca_size_diff, float max_angle_diff, float max_centroid_diff, FloatKey weight_key=atom::Mass::get_mass_key())
Constructor.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
#define IMP_LIST(protection, Ucname, lcname, Data, PluralData)
A macro to provide a uniform interface for storing lists of objects.
Principal component analysis of a set of points.
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.