11 #include <IMP/isd/isd_config.h>
19 IMPISD_BEGIN_NAMESPACE
31 static bool particle_is_instance(
Particle *p) {
32 return Nuisance::particle_is_instance(p) &&
Nuisance(p).get_lower()>=0;
35 Float get_scale()
const {
39 void set_scale(
Float d) { set_nuisance(d); }
43 add_to_nuisance_derivative(d, accum);
46 Float get_scale_derivative()
const
48 return get_nuisance_derivative();
51 static FloatKey get_scale_key() {
return get_nuisance_key(); }
53 bool get_scale_is_optimized()
const
55 return get_nuisance_is_optimized();
58 void set_scale_is_optimized(
bool val)
60 set_nuisance_is_optimized(val);