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;
39 void set_scale(
Float d) { set_nuisance(d); }
41 void add_to_scale_derivative(
Float d, DerivativeAccumulator &accum) {
42 add_to_nuisance_derivative(d, accum);
45 Float get_scale_derivative()
const {
return get_nuisance_derivative(); }
47 static FloatKey get_scale_key() {
return get_nuisance_key(); }
49 bool get_scale_is_optimized()
const {
return get_nuisance_is_optimized(); }
51 void set_scale_is_optimized(
bool val) { set_nuisance_is_optimized(val); }
The base class for decorators.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
A container for Singletons.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
A decorator for nuisance parameters particles.
Add scale parameter to particle.
Class for storing model, its restraints, constraints, and particles.
Add nuisance parameter to particle.
Helper macros for implementing Decorators.
#define IMP_DECORATOR_SETUP_0(Name)
Particle * get_particle() const
Returns the particle decorated by this decorator.
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.