11 #include <IMP/isd/isd_config.h>
19 IMPISD_BEGIN_NAMESPACE
34 return Nuisance::get_is_setup(m, pi) &&
Nuisance(m, pi).get_lower()>=0;
37 Float get_scale()
const {
41 void set_scale(
Float d) { set_nuisance(d); }
45 add_to_nuisance_derivative(d, accum);
48 Float get_scale_derivative()
const
50 return get_nuisance_derivative();
53 static FloatKey get_scale_key() {
return get_nuisance_key(); }
55 bool get_scale_is_optimized()
const
57 return get_nuisance_is_optimized();
60 void set_scale_is_optimized(
bool val)
62 set_nuisance_is_optimized(val);
Import IMP/kernel/Decorator.h in the namespace.
Import IMP/kernel/SingletonContainer.h in the namespace.
Particle * get_particle() const
IMP::kernel::DerivativeAccumulator DerivativeAccumulator
#define IMP_DECORATOR_METHODS(Name, Parent)
A decorator for nuisance parameters particles.
Add scale parameter to particle.
Import IMP/kernel/PairContainer.h in the namespace.
#define IMP_DECORATOR_SETUP_0(Name)
Add nuisance parameter to particle.
Import IMP/kernel/decorator_macros.h in the namespace.
double Float
Basic floating-point value (could be float, double...)
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
Key< 0, true > FloatKey
The type used to identify float attributes in the Particles.
Class for storing model, its restraints, constraints, and particles.