IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform

#include <IMP/core/Gaussian.h>

Inheritance diagram for IMP::core::Gaussian:

Detailed Description

A decorator for a particle storing a Gaussian.

Definition at line 85 of file core/Gaussian.h.

Public Member Functions

 Gaussian (::IMP::Model *m, ::IMP::ParticleIndex id)
 Gaussian (const IMP::ParticleAdaptor &d)
algebra::Gaussian3D get_gaussian () const
 create Gaussian3D from these attributes
Eigen::Matrix3d get_global_covariance ()
 retrieve global covariance
Eigen::Matrix3d get_local_covariance () const
 retrieve local covariance (as diagonal matrix)
algebra::Vector3D get_variances () const
 retrieve local variances as Vector3D
void set_gaussian (const algebra::Gaussian3D &g)
 Get the covariance attributes from a Gaussian3D object.
void set_global_covariance (Eigen::Matrix3d covar)
 set the global-frame covariance. does NOT update local frame!
void set_local_covariance (const Eigen::Vector3d covar)
 set the local-frame covariance.
void set_variances (const algebra::Vector3D v)
 equivalent to set_local_covariance, used for backwards compatibility
void show (std::ostream &out=std::cout) const
void update_global_covariance ()
 update the global covariance
Public Member Functions inherited from IMP::core::RigidBody
 RigidBody (::IMP::Model *m, ::IMP::ParticleIndex id)
 RigidBody (const IMP::ParticleAdaptor &d)
 RigidBody (const RigidBody &)=default
void add_member (ParticleIndexAdaptor p)
void add_non_rigid_member (ParticleIndexAdaptor p)
void add_to_rotational_derivatives (const algebra::Vector4D &qderiv, DerivativeAccumulator &da)
void add_to_torque (const algebra::Vector3D &torque_local, DerivativeAccumulator &da)
const ParticleIndexes & get_body_member_particle_indexes () const
algebra::Vector3D get_coordinates () const
bool get_coordinates_are_optimized () const
ParticleIndexes get_member_indexes () const
const ParticleIndexes & get_member_particle_indexes () const
IMP::algebra::ReferenceFrame3D get_reference_frame () const
RigidMembers get_rigid_members () const
IMP::algebra::Rotation3D get_rotation () const
algebra::VectorD< 4 > get_rotational_derivatives () const
 Get the derivatives of the quaternion.
algebra::Vector3D get_torque () const
void normalize_rotation ()
 Normalize the quaternion.
RigidBody & operator= (const RigidBody &)=default
void pull_back_body_member_adjoints (ParticleIndex pi, const algebra::Transformation3D &TA, algebra::Transformation3D &TB, algebra::Transformation3DAdjoint &DTC, algebra::Transformation3DAdjoint &DTA, algebra::Transformation3DAdjoint &DTB, algebra::Vector3D &betatorque, DerivativeAccumulator &da)
void pull_back_body_member_adjoints (ParticleIndex pi, DerivativeAccumulator &da)
 Pull back global adjoints from member that is also a rigid body.
void pull_back_member_adjoints (ParticleIndex pi, const algebra::Transformation3D &T, algebra::Vector3D &x, algebra::Vector3D &Dy, algebra::Vector3D &Dx, algebra::Transformation3DAdjoint &DT, algebra::Vector3D &xtorque, DerivativeAccumulator &da)
void pull_back_member_adjoints (ParticleIndex pi, DerivativeAccumulator &da)
 Pull back global adjoints from member that is a point.
void pull_back_members_adjoints (DerivativeAccumulator &da)
 Pull back global adjoints from members.
void remove_member (ParticleIndexAdaptor p)
 Remove the member from this rigid body.
void set_coordinates_are_optimized (bool tf)
void set_is_rigid_member (ParticleIndex pi, bool tf)
void set_reference_frame (const IMP::algebra::ReferenceFrame3D &tr)
 Set the current reference frame.
void set_reference_frame_from_members (const ParticleIndexes &members)
void set_reference_frame_lazy (const IMP::algebra::ReferenceFrame3D &tr)
 Change the reference, delay updating the members until evaluate.
void show (std::ostream &out=std::cout) const
void update_members ()
Public Member Functions inherited from IMP::core::XYZ
 XYZ (::IMP::Model *m, ::IMP::ParticleIndex id)
 XYZ (const IMP::ParticleAdaptor &d)
void add_to_derivative (int i, Float v, DerivativeAccumulator &d)
void add_to_derivatives (const algebra::Vector3D &v, DerivativeAccumulator &d)
 Add the vector v to the derivative vector of the x,y,z coordinates.
Float get_coordinate (int i) const
 Get the ith coordinate.
const algebra::Vector3D & get_coordinates () const
 Convert it to a vector.
bool get_coordinates_are_optimized () const
 Get whether the coordinates are optimized.
Float get_derivative (int i) const
algebra::Vector3D get_derivatives () const
 Get the vector of derivatives accumulated by add_to_derivatives().
algebra::Vector3D get_vector_to (const XYZ &b) const
 Get the vector from this particle to another.
Float get_x () const
Float get_y () const
Float get_z () const
void set_coordinate (unsigned int i, Float v)
 set the ith coordinate
void set_coordinates (const algebra::Vector3D &v)
 set all coordinates from a vector
void set_coordinates_are_optimized (bool tf) const
 Set whether the coordinates are optimized.
void set_x (Float t)
void set_y (Float t)
void set_z (Float t)
void show (std::ostream &out=std::cout) const
Public Member Functions inherited from IMP::Decorator
bool get_is_valid () const
 Returns true if constructed with a non-default constructor.
Model * get_model () const
 Returns the Model containing the particle.
Particle * get_particle () const
 Returns the particle decorated by this decorator.
ParticleIndex get_particle_index () const
 Returns the particle index decorated by this decorator.
 operator Particle * () const
 operator ParticleIndex () const
Particle * operator-> () const

Static Public Member Functions

static ObjectKey get_global_covariance_key ()
static bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
static ObjectKey get_local_covariance_key ()
static Gaussian setup_particle (IMP::ParticleAdaptor pa)
static Gaussian setup_particle (IMP::ParticleAdaptor pa, algebra::Gaussian3D g)
static Gaussian setup_particle (Model *m, ParticleIndex pi)
static Gaussian setup_particle (Model *m, ParticleIndex pi, algebra::Gaussian3D g)
Static Public Member Functions inherited from IMP::core::RigidBody
static bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
 Return true if the particle is a rigid body.
static Vector4DDerivKey get_rotation_key ()
 Get key for rotation quaternion.
static RigidBody setup_particle (IMP::ParticleAdaptor pa, algebra::ReferenceFrame3D rf)
static RigidBody setup_particle (IMP::ParticleAdaptor pa, ParticleIndexesAdaptor ps)
static RigidBody setup_particle (Model *m, ParticleIndex pi, algebra::ReferenceFrame3D rf)
static RigidBody setup_particle (Model *m, ParticleIndex pi, ParticleIndexesAdaptor ps)
static void teardown_particle (RigidBody rb)
 Make the rigid body no longer rigid.
Static Public Member Functions inherited from IMP::core::XYZ
static FloatKey get_coordinate_key (unsigned int i)
static bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
static const FloatKeys & get_xyz_keys ()
 Get a vector containing the keys for x,y,z.
static XYZ setup_particle (IMP::ParticleAdaptor pa)
static XYZ setup_particle (IMP::ParticleAdaptor pa, algebra::Vector3D v)
static XYZ setup_particle (Model *m, ParticleIndex pi)
static XYZ setup_particle (Model *m, ParticleIndex pi, algebra::Vector3D v)

Additional Inherited Members

Protected Member Functions inherited from IMP::Decorator
 Decorator (Model *m, ParticleIndex pi)
 Decorator (ParticleAdaptor p)

Constructor & Destructor Documentation

◆ Gaussian() [1/3]

IMP::core::Gaussian::Gaussian ( )

Definition at line 92 of file core/Gaussian.h.

◆ Gaussian() [2/3]

IMP::core::Gaussian::Gaussian ( ::IMP::Model * m,
::IMP::ParticleIndex id )

Definition at line 92 of file core/Gaussian.h.

◆ Gaussian() [3/3]

IMP::core::Gaussian::Gaussian ( const IMP::ParticleAdaptor & d)
explicit

Definition at line 92 of file core/Gaussian.h.

Member Function Documentation

◆ get_gaussian()

algebra::Gaussian3D IMP::core::Gaussian::get_gaussian ( ) const

create Gaussian3D from these attributes

Definition at line 138 of file core/Gaussian.h.

Here is the call graph for this function:

◆ get_global_covariance()

Eigen::Matrix3d IMP::core::Gaussian::get_global_covariance ( )

retrieve global covariance

This is R diag(variances) R^T for the current orientation R of the Gaussian. It is cached, and recomputed whenever the orientation has changed since (e.g. because a parent rigid body moved).

Definition at line 124 of file core/Gaussian.h.

Here is the call graph for this function:

◆ get_is_setup() [1/2]

bool IMP::core::Gaussian::get_is_setup ( const IMP::ParticleAdaptor & p)
static

Definition at line 92 of file core/Gaussian.h.

◆ get_is_setup() [2/2]

bool IMP::core::Gaussian::get_is_setup ( Model * m,
ParticleIndex pi )
static

Definition at line 98 of file core/Gaussian.h.

◆ get_local_covariance()

Eigen::Matrix3d IMP::core::Gaussian::get_local_covariance ( ) const

retrieve local covariance (as diagonal matrix)

Definition at line 104 of file core/Gaussian.h.

Here is the call graph for this function:

◆ get_variances()

algebra::Vector3D IMP::core::Gaussian::get_variances ( ) const

retrieve local variances as Vector3D

Definition at line 114 of file core/Gaussian.h.

Here is the call graph for this function:

◆ set_gaussian()

void IMP::core::Gaussian::set_gaussian ( const algebra::Gaussian3D & g)

Get the covariance attributes from a Gaussian3D object.

◆ set_global_covariance()

void IMP::core::Gaussian::set_global_covariance ( Eigen::Matrix3d covar)

set the global-frame covariance. does NOT update local frame!

The value is used until the orientation of the Gaussian changes.

Definition at line 163 of file core/Gaussian.h.

Here is the call graph for this function:

◆ set_local_covariance()

void IMP::core::Gaussian::set_local_covariance ( const Eigen::Vector3d covar)

set the local-frame covariance.

Definition at line 146 of file core/Gaussian.h.

Here is the call graph for this function:

◆ set_variances()

void IMP::core::Gaussian::set_variances ( const algebra::Vector3D v)

equivalent to set_local_covariance, used for backwards compatibility

Definition at line 157 of file core/Gaussian.h.

Here is the call graph for this function:

◆ setup_particle() [1/4]

Gaussian IMP::core::Gaussian::setup_particle ( IMP::ParticleAdaptor pa)
static
Returns
a Gaussian object that decorates the particle specified by pa
See also
setup_particle(m, p)

Definition at line 93 of file core/Gaussian.h.

◆ setup_particle() [2/4]

Gaussian IMP::core::Gaussian::setup_particle ( IMP::ParticleAdaptor pa,
algebra::Gaussian3D g )
static
Returns
a Gaussian object that decorates the particle specified by pa
See also
setup_particle(m, pi, g)

Definition at line 94 of file core/Gaussian.h.

◆ setup_particle() [3/4]

Gaussian IMP::core::Gaussian::setup_particle ( Model * m,
ParticleIndex pi )
static
Returns
a Gaussian object that decorates particle pi

Definition at line 93 of file core/Gaussian.h.

◆ setup_particle() [4/4]

Gaussian IMP::core::Gaussian::setup_particle ( Model * m,
ParticleIndex pi,
algebra::Gaussian3D g )
static
Returns
a Gaussian object that decorates particle pi

Definition at line 94 of file core/Gaussian.h.

◆ update_global_covariance()

void IMP::core::Gaussian::update_global_covariance ( )

update the global covariance

Here is the call graph for this function:

The documentation for this class was generated from the following file: