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(WeightRestraint, self).
__init__(model, label=label,
31 self.rs.add_restraint(
41 """Wrapper for ``IMP.isd.JeffreysRestraint``"""
43 def __init__(self, nuisance, label=None, weight=1.):
44 """Create Jeffreys prior.
45 @param nuisance Nuisance parameter
46 @param label A unique label to be used in outputs
47 @param weight The weight to apply to all internal restraints
49 model = nuisance.get_model()
50 super(JeffreysPrior, self).
__init__(model, label=label, weight=weight)
52 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 ...