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

Add nuisance parameter to particle. More...

#include <IMP/isd/Nuisance.h>

Inheritance diagram for IMP::isd::Nuisance:

Detailed Description

Add nuisance parameter to particle.

The value of the nuisance parameter may express data or theory uncertainty. It can be initialized with or without specifying its value. Default is 1. On construction, the Nuisance is unbounded. It can be bounded with set_upper and set_lower. Setting it to values outside of bounds results in setting it to the bound value.

Definition at line 27 of file Nuisance.h.

Public Member Functions

 Nuisance (::IMP::Model *m, ::IMP::ParticleIndex id)
 Nuisance (const IMP::ParticleAdaptor &d)
void add_to_nuisance_derivative (Float d, DerivativeAccumulator &accum)
bool get_has_lower () const
bool get_has_lower_float () const
bool get_has_lower_particle () const
bool get_has_upper () const
bool get_has_upper_float () const
bool get_has_upper_particle () const
Float get_lower () const
Float get_nuisance () const
Float get_nuisance_derivative () const
bool get_nuisance_is_optimized () const
Float get_upper () const
void remove_lower ()
void remove_upper ()
void set_lower (Float d)
void set_lower (Particle *d)
void set_nuisance (Float d)
void set_nuisance_is_optimized (bool val)
void set_upper (Float d)
void set_upper (Particle *d)
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 bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
static FloatKey get_lower_key ()
static ParticleIndexKey get_lower_particle_key ()
static FloatKey get_nuisance_key ()
static FloatKey get_upper_key ()
static ParticleIndexKey get_upper_particle_key ()
static Nuisance setup_particle (IMP::ParticleAdaptor pa)
static Nuisance setup_particle (IMP::ParticleAdaptor pa, double nuisance)
static Nuisance setup_particle (Model *m, ParticleIndex pi)
static Nuisance setup_particle (Model *m, ParticleIndex pi, double nuisance)

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Nuisance() [1/3]

IMP::isd::Nuisance::Nuisance ( )

Definition at line 32 of file Nuisance.h.

◆ Nuisance() [2/3]

IMP::isd::Nuisance::Nuisance ( ::IMP::Model * m,
::IMP::ParticleIndex id )

Definition at line 32 of file Nuisance.h.

◆ Nuisance() [3/3]

IMP::isd::Nuisance::Nuisance ( const IMP::ParticleAdaptor & d)
explicit

Definition at line 32 of file Nuisance.h.

Member Function Documentation

◆ add_to_nuisance_derivative()

void IMP::isd::Nuisance::add_to_nuisance_derivative ( Float d,
DerivativeAccumulator & accum )

Definition at line 76 of file Nuisance.h.

◆ get_has_lower()

bool IMP::isd::Nuisance::get_has_lower ( ) const

set upper and lower bound of nuisance by specifying either a float or another nuisance. Both can be set at the same time in which case the upper bound is the minimum of the two values. This constraint is enforced with the help of a ScoreState that will be created on-the-fly.

Here is the call graph for this function:

◆ get_is_setup() [1/2]

bool IMP::isd::Nuisance::get_is_setup ( const IMP::ParticleAdaptor & p)
static

Definition at line 32 of file Nuisance.h.

◆ get_is_setup() [2/2]

bool IMP::isd::Nuisance::get_is_setup ( Model * m,
ParticleIndex pi )
static

Definition at line 36 of file Nuisance.h.

◆ get_nuisance()

Float IMP::isd::Nuisance::get_nuisance ( ) const

Definition at line 41 of file Nuisance.h.

◆ get_nuisance_derivative()

Float IMP::isd::Nuisance::get_nuisance_derivative ( ) const

Definition at line 72 of file Nuisance.h.

◆ get_nuisance_is_optimized()

bool IMP::isd::Nuisance::get_nuisance_is_optimized ( ) const

Definition at line 80 of file Nuisance.h.

◆ set_nuisance_is_optimized()

void IMP::isd::Nuisance::set_nuisance_is_optimized ( bool val)

Definition at line 84 of file Nuisance.h.

◆ setup_particle() [1/4]

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

Definition at line 33 of file Nuisance.h.

◆ setup_particle() [2/4]

Nuisance IMP::isd::Nuisance::setup_particle ( IMP::ParticleAdaptor pa,
double nuisance )
static
Returns
a Nuisance object that decorates the particle specified by pa
See also
setup_particle(m, pi, nuisance)

Definition at line 34 of file Nuisance.h.

◆ setup_particle() [3/4]

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

Definition at line 33 of file Nuisance.h.

◆ setup_particle() [4/4]

Nuisance IMP::isd::Nuisance::setup_particle ( Model * m,
ParticleIndex pi,
double nuisance )
static
Returns
a Nuisance object that decorates particle pi

Definition at line 34 of file Nuisance.h.


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