1 """@namespace IMP.pmi.restraints.parameters
2 Restraints for parameters.
13 """Wrapper for an ``IMP.isd.WeightRestraint``"""
15 def __init__(self, w, lower, upper, kappa, label=None, weight=1.):
16 """Create restraint on weight parameter.
17 @param w ``IMP.isd.Weight`` particle
18 @param lower Lower bound on weight restraint
19 @param upper Upper bound on weight restraint
20 @param kappa Strength of restraint
21 @param label A unique label to be used in outputs
22 @param weight The weight to apply to all internal restraints
25 model = self.w.get_model()
26 super().
__init__(model, label=label, weight=weight)
30 self.rs.add_restraint(
40 """Wrapper for ``IMP.isd.JeffreysRestraint``"""
42 def __init__(self, nuisance, label=None, weight=1.):
43 """Create Jeffreys prior.
44 @param nuisance Nuisance parameter
45 @param label A unique label to be used in outputs
46 @param weight The weight to apply to all internal restraints
48 model = nuisance.get_model()
49 super().
__init__(model, label=label, weight=weight)
51 self.rs.add_restraint(jp)
def __init__
Create Jeffreys prior.
Wrapper for an IMP.isd.WeightRestraint
Classes to handle different kinds of restraints.
def __init__
Create restraint on weight parameter.
Wrapper for IMP.isd.JeffreysRestraint
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...