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 m = self.w.get_model()
26 super(WeightRestraint, self).
__init__(m, 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 m = nuisance.get_model()
49 super(JeffreysPrior, self).
__init__(m, 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
Base class for PMI restraints, which wrap IMP.Restraint(s).
Inferential scoring building on methods developed as part of the Inferential Structure Determination ...