14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_ISD_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_ISD_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_isd.delete_IMP_ISD_SwigPyIterator
77 r"""value(IMP_ISD_SwigPyIterator self) -> PyObject *"""
78 return _IMP_isd.IMP_ISD_SwigPyIterator_value(self)
81 r"""incr(IMP_ISD_SwigPyIterator self, size_t n=1) -> IMP_ISD_SwigPyIterator"""
82 return _IMP_isd.IMP_ISD_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_ISD_SwigPyIterator self, size_t n=1) -> IMP_ISD_SwigPyIterator"""
86 return _IMP_isd.IMP_ISD_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_isd.IMP_ISD_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> bool"""
94 return _IMP_isd.IMP_ISD_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_ISD_SwigPyIterator self) -> IMP_ISD_SwigPyIterator"""
98 return _IMP_isd.IMP_ISD_SwigPyIterator_copy(self)
101 r"""next(IMP_ISD_SwigPyIterator self) -> PyObject *"""
102 return _IMP_isd.IMP_ISD_SwigPyIterator_next(self)
105 r"""__next__(IMP_ISD_SwigPyIterator self) -> PyObject *"""
106 return _IMP_isd.IMP_ISD_SwigPyIterator___next__(self)
109 r"""previous(IMP_ISD_SwigPyIterator self) -> PyObject *"""
110 return _IMP_isd.IMP_ISD_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
114 return _IMP_isd.IMP_ISD_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> bool"""
118 return _IMP_isd.IMP_ISD_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> bool"""
122 return _IMP_isd.IMP_ISD_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
126 return _IMP_isd.IMP_ISD_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
130 return _IMP_isd.IMP_ISD_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
134 return _IMP_isd.IMP_ISD_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator
139 __sub__(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_isd.IMP_ISD_SwigPyIterator___sub__(self, *args)
146 _IMP_isd.IMP_ISD_SwigPyIterator_swigregister(IMP_ISD_SwigPyIterator)
153 IMP_DEBUG = _IMP_isd.IMP_DEBUG
155 IMP_RELEASE = _IMP_isd.IMP_RELEASE
157 IMP_SILENT = _IMP_isd.IMP_SILENT
159 IMP_PROGRESS = _IMP_isd.IMP_PROGRESS
161 IMP_TERSE = _IMP_isd.IMP_TERSE
163 IMP_VERBOSE = _IMP_isd.IMP_VERBOSE
165 IMP_MEMORY = _IMP_isd.IMP_MEMORY
167 IMP_NONE = _IMP_isd.IMP_NONE
169 IMP_USAGE = _IMP_isd.IMP_USAGE
171 IMP_INTERNAL = _IMP_isd.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_isd.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_isd.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_isd.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_isd.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_isd.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_isd.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_isd.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_isd.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_isd.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_isd.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_isd.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_isd._ostream_write(self, osa_buf)
236 _IMP_isd._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_isd.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_isd.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_isd.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_isd.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_isd.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_isd.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_isd.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_isd.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_isd.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_isd.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_isd.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_isd.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_isd.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_isd.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_isd.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_isd.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_isd.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_isd.IMP_STATISTICS_HAS_IMP_CGAL
310 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
312 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
314 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_isd.IMP_STATISTICS_HAS_BOOST_RANDOM
316 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_isd.IMP_STATISTICS_HAS_BOOST_SYSTEM
318 IMP_STATISTICS_HAS_CGAL = _IMP_isd.IMP_STATISTICS_HAS_CGAL
320 IMP_STATISTICS_HAS_NUMPY = _IMP_isd.IMP_STATISTICS_HAS_NUMPY
322 IMPSTATISTICS_SHOW_WARNINGS = _IMP_isd.IMPSTATISTICS_SHOW_WARNINGS
325 IMP_CORE_HAS_IMP_CGAL = _IMP_isd.IMP_CORE_HAS_IMP_CGAL
327 IMP_CORE_HAS_IMP_KERNEL = _IMP_isd.IMP_CORE_HAS_IMP_KERNEL
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_CORE_HAS_BOOST_FILESYSTEM
331 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
333 IMP_CORE_HAS_BOOST_RANDOM = _IMP_isd.IMP_CORE_HAS_BOOST_RANDOM
335 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_isd.IMP_CORE_HAS_BOOST_SYSTEM
337 IMP_CORE_HAS_CGAL = _IMP_isd.IMP_CORE_HAS_CGAL
339 IMP_CORE_HAS_HDF5 = _IMP_isd.IMP_CORE_HAS_HDF5
341 IMP_CORE_HAS_NUMPY = _IMP_isd.IMP_CORE_HAS_NUMPY
343 IMPCORE_SHOW_WARNINGS = _IMP_isd.IMPCORE_SHOW_WARNINGS
346 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_isd.IMP_CONTAINER_HAS_IMP_ALGEBRA
348 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_isd.IMP_CONTAINER_HAS_IMP_CGAL
350 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_isd.IMP_CONTAINER_HAS_IMP_DISPLAY
352 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_isd.IMP_CONTAINER_HAS_IMP_KERNEL
354 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
356 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
358 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
360 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_isd.IMP_CONTAINER_HAS_BOOST_RANDOM
362 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_isd.IMP_CONTAINER_HAS_BOOST_SYSTEM
364 IMP_CONTAINER_HAS_CGAL = _IMP_isd.IMP_CONTAINER_HAS_CGAL
366 IMP_CONTAINER_HAS_HDF5 = _IMP_isd.IMP_CONTAINER_HAS_HDF5
368 IMP_CONTAINER_HAS_NUMPY = _IMP_isd.IMP_CONTAINER_HAS_NUMPY
370 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_isd.IMP_CONTAINER_HAS_PYTHON_IHM
372 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_isd.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
374 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_isd.IMP_CONTAINER_HAS_ROBIN_MAP
376 IMPCONTAINER_SHOW_WARNINGS = _IMP_isd.IMPCONTAINER_SHOW_WARNINGS
379 IMP_ATOM_HAS_IMP_CGAL = _IMP_isd.IMP_ATOM_HAS_IMP_CGAL
381 IMP_ATOM_HAS_IMP_KERNEL = _IMP_isd.IMP_ATOM_HAS_IMP_KERNEL
383 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
385 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
387 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_isd.IMP_ATOM_HAS_BOOST_RANDOM
389 IMP_ATOM_HAS_BOOST_REGEX = _IMP_isd.IMP_ATOM_HAS_BOOST_REGEX
391 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_isd.IMP_ATOM_HAS_BOOST_SYSTEM
393 IMP_ATOM_HAS_CGAL = _IMP_isd.IMP_ATOM_HAS_CGAL
395 IMP_ATOM_HAS_HDF5 = _IMP_isd.IMP_ATOM_HAS_HDF5
397 IMP_ATOM_HAS_NUMPY = _IMP_isd.IMP_ATOM_HAS_NUMPY
399 IMP_ATOM_HAS_PYTHON_IHM = _IMP_isd.IMP_ATOM_HAS_PYTHON_IHM
401 IMPATOM_SHOW_WARNINGS = _IMP_isd.IMPATOM_SHOW_WARNINGS
403 IMP_ATOM_TYPE_INDEX = _IMP_isd.IMP_ATOM_TYPE_INDEX
405 IMP_RESIDUE_TYPE_INDEX = _IMP_isd.IMP_RESIDUE_TYPE_INDEX
407 IMP_HIERARCHY_TYPE_INDEX = _IMP_isd.IMP_HIERARCHY_TYPE_INDEX
409 IMP_CHAIN_TYPE_INDEX = _IMP_isd.IMP_CHAIN_TYPE_INDEX
412 IMP_EM_HAS_IMP_CGAL = _IMP_isd.IMP_EM_HAS_IMP_CGAL
414 IMP_EM_HAS_IMP_CONTAINER = _IMP_isd.IMP_EM_HAS_IMP_CONTAINER
416 IMP_EM_HAS_IMP_DISPLAY = _IMP_isd.IMP_EM_HAS_IMP_DISPLAY
418 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_EM_HAS_IMP_SCORE_FUNCTOR
420 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_EM_HAS_BOOST_FILESYSTEM
422 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
424 IMP_EM_HAS_BOOST_RANDOM = _IMP_isd.IMP_EM_HAS_BOOST_RANDOM
426 IMP_EM_HAS_BOOST_REGEX = _IMP_isd.IMP_EM_HAS_BOOST_REGEX
428 IMP_EM_HAS_BOOST_SYSTEM = _IMP_isd.IMP_EM_HAS_BOOST_SYSTEM
430 IMP_EM_HAS_CGAL = _IMP_isd.IMP_EM_HAS_CGAL
432 IMP_EM_HAS_HDF5 = _IMP_isd.IMP_EM_HAS_HDF5
434 IMP_EM_HAS_NUMPY = _IMP_isd.IMP_EM_HAS_NUMPY
436 IMP_EM_HAS_PYTHON_IHM = _IMP_isd.IMP_EM_HAS_PYTHON_IHM
438 IMPEM_SHOW_WARNINGS = _IMP_isd.IMPEM_SHOW_WARNINGS
441 IMP_SAXS_HAS_IMP_CGAL = _IMP_isd.IMP_SAXS_HAS_IMP_CGAL
443 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_isd.IMP_SAXS_HAS_IMP_CONTAINER
445 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_isd.IMP_SAXS_HAS_IMP_DISPLAY
447 IMP_SAXS_HAS_IMP_KERNEL = _IMP_isd.IMP_SAXS_HAS_IMP_KERNEL
449 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
451 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_SAXS_HAS_BOOST_FILESYSTEM
453 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
455 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_isd.IMP_SAXS_HAS_BOOST_RANDOM
457 IMP_SAXS_HAS_BOOST_REGEX = _IMP_isd.IMP_SAXS_HAS_BOOST_REGEX
459 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_isd.IMP_SAXS_HAS_BOOST_SYSTEM
461 IMP_SAXS_HAS_CGAL = _IMP_isd.IMP_SAXS_HAS_CGAL
463 IMP_SAXS_HAS_HDF5 = _IMP_isd.IMP_SAXS_HAS_HDF5
465 IMP_SAXS_HAS_NUMPY = _IMP_isd.IMP_SAXS_HAS_NUMPY
467 IMP_SAXS_HAS_PYTHON_IHM = _IMP_isd.IMP_SAXS_HAS_PYTHON_IHM
469 IMPSAXS_SHOW_WARNINGS = _IMP_isd.IMPSAXS_SHOW_WARNINGS
472 IMP_ISD_HAS_IMP_CGAL = _IMP_isd.IMP_ISD_HAS_IMP_CGAL
474 IMP_ISD_HAS_IMP_DISPLAY = _IMP_isd.IMP_ISD_HAS_IMP_DISPLAY
476 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
478 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_ISD_HAS_BOOST_FILESYSTEM
480 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
482 IMP_ISD_HAS_BOOST_RANDOM = _IMP_isd.IMP_ISD_HAS_BOOST_RANDOM
484 IMP_ISD_HAS_BOOST_REGEX = _IMP_isd.IMP_ISD_HAS_BOOST_REGEX
486 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_isd.IMP_ISD_HAS_BOOST_SYSTEM
488 IMP_ISD_HAS_CGAL = _IMP_isd.IMP_ISD_HAS_CGAL
490 IMP_ISD_HAS_HDF5 = _IMP_isd.IMP_ISD_HAS_HDF5
492 IMP_ISD_HAS_NUMPY = _IMP_isd.IMP_ISD_HAS_NUMPY
494 IMP_ISD_HAS_PYTHON_IHM = _IMP_isd.IMP_ISD_HAS_PYTHON_IHM
496 IMPISD_SHOW_WARNINGS = _IMP_isd.IMPISD_SHOW_WARNINGS
499 _object_types.append(
"ISDRestraint")
502 def _object_cast_to_ISDRestraint(o):
503 r"""_object_cast_to_ISDRestraint(Object o) -> ISDRestraint"""
504 return _IMP_isd._object_cast_to_ISDRestraint(o)
506 _object_types.append(
"CrossLinkMSRestraint")
509 def _object_cast_to_CrossLinkMSRestraint(o):
510 r"""_object_cast_to_CrossLinkMSRestraint(Object o) -> CrossLinkMSRestraint"""
511 return _IMP_isd._object_cast_to_CrossLinkMSRestraint(o)
513 _object_types.append(
"LogWrapper")
516 def _object_cast_to_LogWrapper(o):
517 r"""_object_cast_to_LogWrapper(Object o) -> LogWrapper"""
518 return _IMP_isd._object_cast_to_LogWrapper(o)
520 _object_types.append(
"UniformPrior")
523 def _object_cast_to_UniformPrior(o):
524 r"""_object_cast_to_UniformPrior(Object o) -> UniformPrior"""
525 return _IMP_isd._object_cast_to_UniformPrior(o)
527 _object_types.append(
"JeffreysRestraint")
530 def _object_cast_to_JeffreysRestraint(o):
531 r"""_object_cast_to_JeffreysRestraint(Object o) -> JeffreysRestraint"""
532 return _IMP_isd._object_cast_to_JeffreysRestraint(o)
534 _object_types.append(
"NormalSigmaPCRestraint")
537 def _object_cast_to_NormalSigmaPCRestraint(o):
538 r"""_object_cast_to_NormalSigmaPCRestraint(Object o) -> NormalSigmaPCRestraint"""
539 return _IMP_isd._object_cast_to_NormalSigmaPCRestraint(o)
541 _object_types.append(
"vonMisesKappaJeffreysRestraint")
544 def _object_cast_to_vonMisesKappaJeffreysRestraint(o):
545 r"""_object_cast_to_vonMisesKappaJeffreysRestraint(Object o) -> vonMisesKappaJeffreysRestraint"""
546 return _IMP_isd._object_cast_to_vonMisesKappaJeffreysRestraint(o)
548 _object_types.append(
"vonMisesKappaConjugateRestraint")
551 def _object_cast_to_vonMisesKappaConjugateRestraint(o):
552 r"""_object_cast_to_vonMisesKappaConjugateRestraint(Object o) -> vonMisesKappaConjugateRestraint"""
553 return _IMP_isd._object_cast_to_vonMisesKappaConjugateRestraint(o)
555 _object_types.append(
"Distribution")
558 def _object_cast_to_Distribution(o):
559 r"""_object_cast_to_Distribution(Object o) -> Distribution"""
560 return _IMP_isd._object_cast_to_Distribution(o)
562 _object_types.append(
"OneDimensionalDistribution")
565 def _object_cast_to_OneDimensionalDistribution(o):
566 r"""_object_cast_to_OneDimensionalDistribution(Object o) -> OneDimensionalDistribution"""
567 return _IMP_isd._object_cast_to_OneDimensionalDistribution(o)
569 _object_types.append(
"OneDimensionalSufficientDistribution")
572 def _object_cast_to_OneDimensionalSufficientDistribution(o):
573 r"""_object_cast_to_OneDimensionalSufficientDistribution(Object o) -> OneDimensionalSufficientDistribution"""
574 return _IMP_isd._object_cast_to_OneDimensionalSufficientDistribution(o)
576 _object_types.append(
"FNormal")
579 def _object_cast_to_FNormal(o):
580 r"""_object_cast_to_FNormal(Object o) -> FNormal"""
581 return _IMP_isd._object_cast_to_FNormal(o)
583 _object_types.append(
"FStudentT")
586 def _object_cast_to_FStudentT(o):
587 r"""_object_cast_to_FStudentT(Object o) -> FStudentT"""
588 return _IMP_isd._object_cast_to_FStudentT(o)
590 _object_types.append(
"vonMises")
593 def _object_cast_to_vonMises(o):
594 r"""_object_cast_to_vonMises(Object o) -> vonMises"""
595 return _IMP_isd._object_cast_to_vonMises(o)
597 _object_types.append(
"vonMisesSufficient")
600 def _object_cast_to_vonMisesSufficient(o):
601 r"""_object_cast_to_vonMisesSufficient(Object o) -> vonMisesSufficient"""
602 return _IMP_isd._object_cast_to_vonMisesSufficient(o)
604 _object_types.append(
"PenalizedComplexityPrior")
607 def _object_cast_to_PenalizedComplexityPrior(o):
608 r"""_object_cast_to_PenalizedComplexityPrior(Object o) -> PenalizedComplexityPrior"""
609 return _IMP_isd._object_cast_to_PenalizedComplexityPrior(o)
612 return [Nuisance(x)
for x
in l]
613 _plural_types.append(
"Nuisances")
616 _value_types.append(
"Nuisance")
620 return [Scale(x)
for x
in l]
621 _plural_types.append(
"Scales")
624 _value_types.append(
"Scale")
627 def Switchings(l=[]):
628 return [Switching(x)
for x
in l]
629 _plural_types.append(
"Switchings")
632 _value_types.append(
"Switching")
635 _object_types.append(
"NOERestraint")
638 def _object_cast_to_NOERestraint(o):
639 r"""_object_cast_to_NOERestraint(Object o) -> NOERestraint"""
640 return _IMP_isd._object_cast_to_NOERestraint(o)
643 return [Weight(x)
for x
in l]
644 _plural_types.append(
"Weights")
647 _value_types.append(
"Weight")
650 _object_types.append(
"GaussianRestraint")
653 def _object_cast_to_GaussianRestraint(o):
654 r"""_object_cast_to_GaussianRestraint(Object o) -> GaussianRestraint"""
655 return _IMP_isd._object_cast_to_GaussianRestraint(o)
657 _object_types.append(
"StudentTRestraint")
660 def _object_cast_to_StudentTRestraint(o):
661 r"""_object_cast_to_StudentTRestraint(Object o) -> StudentTRestraint"""
662 return _IMP_isd._object_cast_to_StudentTRestraint(o)
664 _object_types.append(
"LognormalRestraint")
667 def _object_cast_to_LognormalRestraint(o):
668 r"""_object_cast_to_LognormalRestraint(Object o) -> LognormalRestraint"""
669 return _IMP_isd._object_cast_to_LognormalRestraint(o)
671 _object_types.append(
"LognormalAmbiguousRestraint")
674 def _object_cast_to_LognormalAmbiguousRestraint(o):
675 r"""_object_cast_to_LognormalAmbiguousRestraint(Object o) -> LognormalAmbiguousRestraint"""
676 return _IMP_isd._object_cast_to_LognormalAmbiguousRestraint(o)
678 _object_types.append(
"AmbiguousNOERestraint")
681 def _object_cast_to_AmbiguousNOERestraint(o):
682 r"""_object_cast_to_AmbiguousNOERestraint(Object o) -> AmbiguousNOERestraint"""
683 return _IMP_isd._object_cast_to_AmbiguousNOERestraint(o)
685 _object_types.append(
"MarginalNOERestraint")
688 def _object_cast_to_MarginalNOERestraint(o):
689 r"""_object_cast_to_MarginalNOERestraint(Object o) -> MarginalNOERestraint"""
690 return _IMP_isd._object_cast_to_MarginalNOERestraint(o)
692 _object_types.append(
"MarginalHBondRestraint")
695 def _object_cast_to_MarginalHBondRestraint(o):
696 r"""_object_cast_to_MarginalHBondRestraint(Object o) -> MarginalHBondRestraint"""
697 return _IMP_isd._object_cast_to_MarginalHBondRestraint(o)
699 _object_types.append(
"TALOSRestraint")
702 def _object_cast_to_TALOSRestraint(o):
703 r"""_object_cast_to_TALOSRestraint(Object o) -> TALOSRestraint"""
704 return _IMP_isd._object_cast_to_TALOSRestraint(o)
706 _object_types.append(
"RepulsiveDistancePairScore")
709 def _object_cast_to_RepulsiveDistancePairScore(o):
710 r"""_object_cast_to_RepulsiveDistancePairScore(Object o) -> RepulsiveDistancePairScore"""
711 return _IMP_isd._object_cast_to_RepulsiveDistancePairScore(o)
713 _object_types.append(
"AmbiguousRestraint")
716 def _object_cast_to_AmbiguousRestraint(o):
717 r"""_object_cast_to_AmbiguousRestraint(Object o) -> AmbiguousRestraint"""
718 return _IMP_isd._object_cast_to_AmbiguousRestraint(o)
720 _object_types.append(
"UnivariateFunction")
723 def _object_cast_to_UnivariateFunction(o):
724 r"""_object_cast_to_UnivariateFunction(Object o) -> UnivariateFunction"""
725 return _IMP_isd._object_cast_to_UnivariateFunction(o)
727 _object_types.append(
"Linear1DFunction")
730 def _object_cast_to_Linear1DFunction(o):
731 r"""_object_cast_to_Linear1DFunction(Object o) -> Linear1DFunction"""
732 return _IMP_isd._object_cast_to_Linear1DFunction(o)
734 _object_types.append(
"GeneralizedGuinierPorodFunction")
737 def _object_cast_to_GeneralizedGuinierPorodFunction(o):
738 r"""_object_cast_to_GeneralizedGuinierPorodFunction(Object o) -> GeneralizedGuinierPorodFunction"""
739 return _IMP_isd._object_cast_to_GeneralizedGuinierPorodFunction(o)
741 _object_types.append(
"BivariateFunction")
744 def _object_cast_to_BivariateFunction(o):
745 r"""_object_cast_to_BivariateFunction(Object o) -> BivariateFunction"""
746 return _IMP_isd._object_cast_to_BivariateFunction(o)
748 _object_types.append(
"Covariance1DFunction")
751 def _object_cast_to_Covariance1DFunction(o):
752 r"""_object_cast_to_Covariance1DFunction(Object o) -> Covariance1DFunction"""
753 return _IMP_isd._object_cast_to_Covariance1DFunction(o)
755 _object_types.append(
"GaussianProcessInterpolation")
758 def _object_cast_to_GaussianProcessInterpolation(o):
759 r"""_object_cast_to_GaussianProcessInterpolation(Object o) -> GaussianProcessInterpolation"""
760 return _IMP_isd._object_cast_to_GaussianProcessInterpolation(o)
762 _object_types.append(
"GaussianProcessInterpolationRestraint")
765 def _object_cast_to_GaussianProcessInterpolationRestraint(o):
766 r"""_object_cast_to_GaussianProcessInterpolationRestraint(Object o) -> GaussianProcessInterpolationRestraint"""
767 return _IMP_isd._object_cast_to_GaussianProcessInterpolationRestraint(o)
769 _object_types.append(
"MolecularDynamics")
772 _object_types.append(
"MolecularDynamicsMover")
775 def _object_cast_to_MolecularDynamicsMover(o):
776 r"""_object_cast_to_MolecularDynamicsMover(Object o) -> MolecularDynamicsMover"""
777 return _IMP_isd._object_cast_to_MolecularDynamicsMover(o)
779 _object_types.append(
"HybridMonteCarlo")
782 def _object_cast_to_HybridMonteCarlo(o):
783 r"""_object_cast_to_HybridMonteCarlo(Object o) -> HybridMonteCarlo"""
784 return _IMP_isd._object_cast_to_HybridMonteCarlo(o)
786 _object_types.append(
"FretData")
789 def _object_cast_to_FretData(o):
790 r"""_object_cast_to_FretData(Object o) -> FretData"""
791 return _IMP_isd._object_cast_to_FretData(o)
793 _object_types.append(
"FretRestraint")
796 def _object_cast_to_FretRestraint(o):
797 r"""_object_cast_to_FretRestraint(Object o) -> FretRestraint"""
798 return _IMP_isd._object_cast_to_FretRestraint(o)
800 _object_types.append(
"CrossLinkData")
803 def _object_cast_to_CrossLinkData(o):
804 r"""_object_cast_to_CrossLinkData(Object o) -> CrossLinkData"""
805 return _IMP_isd._object_cast_to_CrossLinkData(o)
807 _object_types.append(
"CysteineCrossLinkData")
810 def _object_cast_to_CysteineCrossLinkData(o):
811 r"""_object_cast_to_CysteineCrossLinkData(Object o) -> CysteineCrossLinkData"""
812 return _IMP_isd._object_cast_to_CysteineCrossLinkData(o)
814 _object_types.append(
"CysteineCrossLinkRestraint")
817 def _object_cast_to_CysteineCrossLinkRestraint(o):
818 r"""_object_cast_to_CysteineCrossLinkRestraint(Object o) -> CysteineCrossLinkRestraint"""
819 return _IMP_isd._object_cast_to_CysteineCrossLinkRestraint(o)
821 _object_types.append(
"WeightMover")
824 def _object_cast_to_WeightMover(o):
825 r"""_object_cast_to_WeightMover(Object o) -> WeightMover"""
826 return _IMP_isd._object_cast_to_WeightMover(o)
828 _object_types.append(
"WeightRestraint")
831 def _object_cast_to_WeightRestraint(o):
832 r"""_object_cast_to_WeightRestraint(Object o) -> WeightRestraint"""
833 return _IMP_isd._object_cast_to_WeightRestraint(o)
835 _object_types.append(
"AtomicCrossLinkMSRestraint")
838 def _object_cast_to_AtomicCrossLinkMSRestraint(o):
839 r"""_object_cast_to_AtomicCrossLinkMSRestraint(Object o) -> AtomicCrossLinkMSRestraint"""
840 return _IMP_isd._object_cast_to_AtomicCrossLinkMSRestraint(o)
842 _object_types.append(
"GaussianEMRestraint")
845 def _object_cast_to_GaussianEMRestraint(o):
846 r"""_object_cast_to_GaussianEMRestraint(Object o) -> GaussianEMRestraint"""
847 return _IMP_isd._object_cast_to_GaussianEMRestraint(o)
849 _object_types.append(
"GaussianAnchorEMRestraint")
852 def _object_cast_to_GaussianAnchorEMRestraint(o):
853 r"""_object_cast_to_GaussianAnchorEMRestraint(Object o) -> GaussianAnchorEMRestraint"""
854 return _IMP_isd._object_cast_to_GaussianAnchorEMRestraint(o)
856 _object_types.append(
"GammaPrior")
859 def _object_cast_to_GammaPrior(o):
860 r"""_object_cast_to_GammaPrior(Object o) -> GammaPrior"""
861 return _IMP_isd._object_cast_to_GammaPrior(o)
863 _object_types.append(
"ResidueProteinProximityRestraint")
866 def _object_cast_to_ResidueProteinProximityRestraint(o):
867 r"""_object_cast_to_ResidueProteinProximityRestraint(Object o) -> ResidueProteinProximityRestraint"""
868 return _IMP_isd._object_cast_to_ResidueProteinProximityRestraint(o)
870 def create_model_and_particles():
875 for i
in range(0,100):
879 d.set_coordinates_are_optimized(
True)
883 r"""Proxy of C++ IMP::isd::ISDRestraint class."""
885 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
887 def __init__(self, m, name):
888 r"""__init__(ISDRestraint self, Model m, std::string name) -> ISDRestraint"""
889 if self.__class__ == ISDRestraint:
893 _IMP_isd.ISDRestraint_swiginit(self, _IMP_isd.new_ISDRestraint(_self, m, name))
895 if self.__class__ != ISDRestraint:
896 _director_objects.register(self)
901 def get_probability(self):
902 r"""get_probability(ISDRestraint self) -> double"""
903 return _IMP_isd.ISDRestraint_get_probability(self)
905 def unprotected_evaluate(self, accum):
906 r"""unprotected_evaluate(ISDRestraint self, DerivativeAccumulator accum) -> double"""
907 return _IMP_isd.ISDRestraint_unprotected_evaluate(self, accum)
910 r"""do_get_inputs(ISDRestraint self) -> IMP::ModelObjectsTemp"""
911 return _IMP_isd.ISDRestraint_do_get_inputs(self)
913 def get_type_name(self):
914 r"""get_type_name(ISDRestraint self) -> std::string"""
915 return _IMP_isd.ISDRestraint_get_type_name(self)
918 r"""get_version_info(ISDRestraint self) -> VersionInfo"""
919 return _IMP_isd.ISDRestraint_get_version_info(self)
920 __swig_destroy__ = _IMP_isd.delete_ISDRestraint
923 r"""__str__(ISDRestraint self) -> std::string"""
924 return _IMP_isd.ISDRestraint___str__(self)
927 r"""__repr__(ISDRestraint self) -> std::string"""
928 return _IMP_isd.ISDRestraint___repr__(self)
932 return _object_cast_to_ISDRestraint(o)
935 def get_type_name(self):
936 return self.__class__.__name__
937 def do_show(self, out):
940 if"IMP::isd" ==
"IMP":
941 return VersionInfo(self.__module__,
948 return _object_cast_to_ISDRestraint(o)
950 def __disown__(self):
952 _IMP_isd.disown_ISDRestraint(self)
953 return weakref.proxy(self)
956 r"""do_destroy(ISDRestraint self)"""
957 return _IMP_isd.ISDRestraint_do_destroy(self)
959 def handle_set_has_required_score_states(self, arg0):
960 r"""handle_set_has_required_score_states(ISDRestraint self, bool arg0)"""
961 return _IMP_isd.ISDRestraint_handle_set_has_required_score_states(self, arg0)
964 r"""do_get_outputs(ISDRestraint self) -> IMP::ModelObjectsTemp"""
965 return _IMP_isd.ISDRestraint_do_get_outputs(self)
967 def do_get_interactions(self):
968 r"""do_get_interactions(ISDRestraint self) -> IMP::ModelObjectsTemps"""
969 return _IMP_isd.ISDRestraint_do_get_interactions(self)
971 def do_create_decomposition(self):
972 r"""do_create_decomposition(ISDRestraint self) -> IMP::Restraints"""
973 return _IMP_isd.ISDRestraint_do_create_decomposition(self)
975 def do_create_current_decomposition(self):
976 r"""do_create_current_decomposition(ISDRestraint self) -> IMP::Restraints"""
977 return _IMP_isd.ISDRestraint_do_create_current_decomposition(self)
979 def do_add_score_and_derivatives(self, sa):
980 r"""do_add_score_and_derivatives(ISDRestraint self, ScoreAccumulator sa)"""
981 return _IMP_isd.ISDRestraint_do_add_score_and_derivatives(self, sa)
983 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
984 r"""do_add_score_and_derivatives_moved(ISDRestraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
985 return _IMP_isd.ISDRestraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
988 _IMP_isd.ISDRestraint_swigregister(ISDRestraint)
990 r"""Proxy of C++ IMP::isd::CrossLinkMSRestraint class."""
992 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
994 def __init__(self, *args):
996 __init__(CrossLinkMSRestraint self, Model m, double length, bool get_log_prob=False, std::string name="CrossLinkMSRestraint%1%") -> CrossLinkMSRestraint
997 __init__(CrossLinkMSRestraint self, Model m, _ParticleIndexAdaptor lengthi, bool get_log_prob=False, std::string name="CrossLinkMSRestraint%1%") -> CrossLinkMSRestraint
998 __init__(CrossLinkMSRestraint self, Model m, double length, double slope, bool get_log_prob=False, std::string name="CrossLinkMSRestraint%1%") -> CrossLinkMSRestraint
999 __init__(CrossLinkMSRestraint self) -> CrossLinkMSRestraint
1001 _IMP_isd.CrossLinkMSRestraint_swiginit(self, _IMP_isd.new_CrossLinkMSRestraint(*args))
1003 def set_source_protein1(self, protein1):
1004 r"""set_source_protein1(CrossLinkMSRestraint self, std::string protein1)"""
1005 return _IMP_isd.CrossLinkMSRestraint_set_source_protein1(self, protein1)
1007 def get_source_protein1(self):
1008 r"""get_source_protein1(CrossLinkMSRestraint self) -> std::string"""
1009 return _IMP_isd.CrossLinkMSRestraint_get_source_protein1(self)
1011 def set_source_protein2(self, protein2):
1012 r"""set_source_protein2(CrossLinkMSRestraint self, std::string protein2)"""
1013 return _IMP_isd.CrossLinkMSRestraint_set_source_protein2(self, protein2)
1015 def get_source_protein2(self):
1016 r"""get_source_protein2(CrossLinkMSRestraint self) -> std::string"""
1017 return _IMP_isd.CrossLinkMSRestraint_get_source_protein2(self)
1019 def set_source_residue1(self, residue1):
1020 r"""set_source_residue1(CrossLinkMSRestraint self, int residue1)"""
1021 return _IMP_isd.CrossLinkMSRestraint_set_source_residue1(self, residue1)
1023 def get_source_residue1(self):
1024 r"""get_source_residue1(CrossLinkMSRestraint self) -> int"""
1025 return _IMP_isd.CrossLinkMSRestraint_get_source_residue1(self)
1027 def set_source_residue2(self, residue2):
1028 r"""set_source_residue2(CrossLinkMSRestraint self, int residue2)"""
1029 return _IMP_isd.CrossLinkMSRestraint_set_source_residue2(self, residue2)
1031 def get_source_residue2(self):
1032 r"""get_source_residue2(CrossLinkMSRestraint self) -> int"""
1033 return _IMP_isd.CrossLinkMSRestraint_get_source_residue2(self)
1035 def add_contribution(self, pps, sigmas, psi):
1036 r"""add_contribution(CrossLinkMSRestraint self, IMP::ParticleIndexPair const & pps, IMP::ParticleIndexPair const & sigmas, ParticleIndex psi)"""
1037 return _IMP_isd.CrossLinkMSRestraint_add_contribution(self, pps, sigmas, psi)
1039 def get_probability(self):
1040 r"""get_probability(CrossLinkMSRestraint self) -> double"""
1041 return _IMP_isd.CrossLinkMSRestraint_get_probability(self)
1043 def get_length(self):
1044 r"""get_length(CrossLinkMSRestraint self) -> double"""
1045 return _IMP_isd.CrossLinkMSRestraint_get_length(self)
1047 def get_is_length_variable(self):
1048 r"""get_is_length_variable(CrossLinkMSRestraint self) -> bool"""
1049 return _IMP_isd.CrossLinkMSRestraint_get_is_length_variable(self)
1051 def get_has_slope(self):
1052 r"""get_has_slope(CrossLinkMSRestraint self) -> bool"""
1053 return _IMP_isd.CrossLinkMSRestraint_get_has_slope(self)
1055 def get_slope(self):
1056 r"""get_slope(CrossLinkMSRestraint self) -> double"""
1057 return _IMP_isd.CrossLinkMSRestraint_get_slope(self)
1059 def get_log_prob(self):
1060 r"""get_log_prob(CrossLinkMSRestraint self) -> bool"""
1061 return _IMP_isd.CrossLinkMSRestraint_get_log_prob(self)
1063 def get_contribution_sigma_indexes(self, i):
1064 r"""get_contribution_sigma_indexes(CrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
1065 return _IMP_isd.CrossLinkMSRestraint_get_contribution_sigma_indexes(self, i)
1067 def get_contribution_psi_index(self, i):
1068 r"""get_contribution_psi_index(CrossLinkMSRestraint self, int i) -> ParticleIndex"""
1069 return _IMP_isd.CrossLinkMSRestraint_get_contribution_psi_index(self, i)
1071 def get_contribution_particle_indexes(self, i):
1072 r"""get_contribution_particle_indexes(CrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
1073 return _IMP_isd.CrossLinkMSRestraint_get_contribution_particle_indexes(self, i)
1075 def get_number_of_contributions(self):
1076 r"""get_number_of_contributions(CrossLinkMSRestraint self) -> unsigned int"""
1077 return _IMP_isd.CrossLinkMSRestraint_get_number_of_contributions(self)
1080 r"""do_get_inputs(CrossLinkMSRestraint self) -> IMP::ModelObjectsTemp"""
1081 return _IMP_isd.CrossLinkMSRestraint_do_get_inputs(self)
1084 r"""get_version_info(CrossLinkMSRestraint self) -> VersionInfo"""
1085 return _IMP_isd.CrossLinkMSRestraint_get_version_info(self)
1086 __swig_destroy__ = _IMP_isd.delete_CrossLinkMSRestraint
1089 r"""__str__(CrossLinkMSRestraint self) -> std::string"""
1090 return _IMP_isd.CrossLinkMSRestraint___str__(self)
1093 r"""__repr__(CrossLinkMSRestraint self) -> std::string"""
1094 return _IMP_isd.CrossLinkMSRestraint___repr__(self)
1098 return _object_cast_to_CrossLinkMSRestraint(o)
1101 def _get_as_binary(self):
1102 r"""_get_as_binary(CrossLinkMSRestraint self) -> PyObject *"""
1103 return _IMP_isd.CrossLinkMSRestraint__get_as_binary(self)
1105 def _set_from_binary(self, p):
1106 r"""_set_from_binary(CrossLinkMSRestraint self, PyObject * p)"""
1107 return _IMP_isd.CrossLinkMSRestraint__set_from_binary(self, p)
1109 def __getstate__(self):
1110 p = self._get_as_binary()
1111 if len(self.__dict__) > 1:
1112 d = self.__dict__.copy()
1117 def __setstate__(self, p):
1118 if not hasattr(self,
'this'):
1120 if isinstance(p, tuple):
1122 self.__dict__.update(d)
1123 return self._set_from_binary(p)
1126 def _get_contributions_sigma_numpy(self):
1128 n = self.get_number_of_contributions()
1129 ret = numpy.empty((n, 2), int)
1131 ret[i] = self.get_contribution_sigma_indexes(i)
1134 def _get_contributions_psi_numpy(self):
1136 n = self.get_number_of_contributions()
1137 ret = numpy.empty(n, int)
1139 ret[i] = self.get_contribution_psi_index(i)
1142 def _get_contributions_particles_numpy(self):
1144 n = self.get_number_of_contributions()
1145 ret = numpy.empty((n, 2), int)
1147 ret[i] = self.get_contribution_particle_indexes(i)
1150 def _get_python_evaluate(self):
1151 from numba
import njit
1156 def sphere_cap(r1, r2, d):
1158 if d <= max(r1, r2) - min(r1, r2):
1159 sc = min(4.0 / 3.0 * math.pi * r1 * r1 * r1,
1160 4.0 / 3.0 * math.pi * r2 * r2 * r2)
1164 sc = ((math.pi / 12 / d * (r1 + r2 - d) * (r1 + r2 - d)) *
1165 (d * d + 2 * d * r1 - 3 * r1 * r1 + 2 * d * r2
1166 + 6 * r1 * r2 - 3 * r2 * r2))
1170 def get_probability(xyz, scale, ps, ncontrib, sigma, psi, length,
1173 for k
in range(ncontrib):
1174 dist = numpy.linalg.norm(xyz[ps[k, 0]] - xyz[ps[k, 1]])
1177 psik = scale[psi[k]]
1178 sigmai = scale[sigma[k, 0]]
1179 sigmaj = scale[sigma[k, 1]]
1181 voli = 4.0 / 3.0 * math.pi * sigmai * sigmai * sigmai
1182 volj = 4.0 / 3.0 * math.pi * sigmaj * sigmaj * sigmaj
1184 if dist < sigmai + sigmaj:
1185 xlvol = (4.0 / 3.0 * math.pi * (length / 2.)
1186 * (length / 2.) * (length / 2))
1187 fi = min(voli, xlvol)
1188 fj = min(volj, xlvol)
1190 di = dist - sigmaj - length / 2.
1191 dj = dist - sigmai - length / 2.
1192 fi = sphere_cap(sigmai, length / 2., abs(di))
1193 fj = sphere_cap(sigmaj, length / 2., abs(dj))
1195 pofr = fi * fj / voli / volj
1196 if slope
is not None:
1197 prior = math.exp(slope * dist)
1198 onemprob = onemprob * (1.0 - (psik * (1.0 - pofr)
1199 + pofr * (1 - psik)) * prior)
1201 onemprob = onemprob * (1.0 - (psik * (1.0 - pofr)
1202 + pofr * (1 - psik)))
1203 return 1.0 - onemprob
1205 if self.get_is_length_variable():
1206 raise NotImplementedError(
"Only implemented for fixed-length")
1207 m = self.get_model()
1208 xyz, radius = m.get_spheres_numpy()
1210 sigma = self._get_contributions_sigma_numpy()
1211 psi = self._get_contributions_psi_numpy()
1212 pis = self._get_contributions_particles_numpy()
1213 get_log_prob = self.get_log_prob()
1214 length = self.get_length()
1215 ncontrib = len(sigma)
1216 slope = self.get_slope()
if self.get_has_slope()
else None
1220 prob = get_probability(xyz, scale, pis, ncontrib, sigma, psi,
1223 return -math.log(prob)
1231 _IMP_isd.CrossLinkMSRestraint_swigregister(CrossLinkMSRestraint)
1233 r"""Proxy of C++ IMP::isd::LogWrapper class."""
1235 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1237 def __init__(self, *args):
1239 __init__(LogWrapper self, Model m, double weight, std::string const & name="LogWrapper %1%") -> LogWrapper
1240 __init__(LogWrapper self, Model m, std::string const & name="LogWrapper %1%") -> LogWrapper
1241 __init__(LogWrapper self, IMP::RestraintsTemp const & rs, double weight, std::string const & name="LogWrapper %1%") -> LogWrapper
1242 __init__(LogWrapper self) -> LogWrapper
1244 _IMP_isd.LogWrapper_swiginit(self, _IMP_isd.new_LogWrapper(*args))
1246 def do_add_score_and_derivatives(self, sa):
1247 r"""do_add_score_and_derivatives(LogWrapper self, ScoreAccumulator sa)"""
1248 return _IMP_isd.LogWrapper_do_add_score_and_derivatives(self, sa)
1250 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
1251 r"""do_add_score_and_derivatives_moved(LogWrapper self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1252 return _IMP_isd.LogWrapper_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
1253 __swig_destroy__ = _IMP_isd.delete_LogWrapper
1256 r"""__str__(LogWrapper self) -> std::string"""
1257 return _IMP_isd.LogWrapper___str__(self)
1260 r"""__repr__(LogWrapper self) -> std::string"""
1261 return _IMP_isd.LogWrapper___repr__(self)
1265 return _object_cast_to_LogWrapper(o)
1268 def _get_as_binary(self):
1269 r"""_get_as_binary(LogWrapper self) -> PyObject *"""
1270 return _IMP_isd.LogWrapper__get_as_binary(self)
1272 def _set_from_binary(self, p):
1273 r"""_set_from_binary(LogWrapper self, PyObject * p)"""
1274 return _IMP_isd.LogWrapper__set_from_binary(self, p)
1276 def __getstate__(self):
1277 p = self._get_as_binary()
1278 if len(self.__dict__) > 1:
1279 d = self.__dict__.copy()
1284 def __setstate__(self, p):
1285 if not hasattr(self,
'this'):
1287 if isinstance(p, tuple):
1289 self.__dict__.update(d)
1290 return self._set_from_binary(p)
1294 _IMP_isd.LogWrapper_swigregister(LogWrapper)
1296 r"""Proxy of C++ IMP::isd::UniformPrior class."""
1298 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1300 def __init__(self, *args):
1302 __init__(UniformPrior self, Model m, Particle p, double k, double upperb, double lowerb, std::string name="UniformPrior%1%") -> UniformPrior
1303 __init__(UniformPrior self) -> UniformPrior
1305 _IMP_isd.UniformPrior_swiginit(self, _IMP_isd.new_UniformPrior(*args))
1308 r"""do_get_inputs(UniformPrior self) -> IMP::ModelObjectsTemp"""
1309 return _IMP_isd.UniformPrior_do_get_inputs(self)
1312 r"""get_version_info(UniformPrior self) -> VersionInfo"""
1313 return _IMP_isd.UniformPrior_get_version_info(self)
1314 __swig_destroy__ = _IMP_isd.delete_UniformPrior
1316 def get_probability(self):
1317 r"""get_probability(UniformPrior self) -> double"""
1318 return _IMP_isd.UniformPrior_get_probability(self)
1321 r"""__str__(UniformPrior self) -> std::string"""
1322 return _IMP_isd.UniformPrior___str__(self)
1325 r"""__repr__(UniformPrior self) -> std::string"""
1326 return _IMP_isd.UniformPrior___repr__(self)
1330 return _object_cast_to_UniformPrior(o)
1333 def _get_as_binary(self):
1334 r"""_get_as_binary(UniformPrior self) -> PyObject *"""
1335 return _IMP_isd.UniformPrior__get_as_binary(self)
1337 def _set_from_binary(self, p):
1338 r"""_set_from_binary(UniformPrior self, PyObject * p)"""
1339 return _IMP_isd.UniformPrior__set_from_binary(self, p)
1341 def __getstate__(self):
1342 p = self._get_as_binary()
1343 if len(self.__dict__) > 1:
1344 d = self.__dict__.copy()
1349 def __setstate__(self, p):
1350 if not hasattr(self,
'this'):
1352 if isinstance(p, tuple):
1354 self.__dict__.update(d)
1355 return self._set_from_binary(p)
1359 _IMP_isd.UniformPrior_swigregister(UniformPrior)
1361 r"""Proxy of C++ IMP::isd::Nuisance class."""
1363 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1365 def __init__(self, *args):
1367 __init__(Nuisance self) -> Nuisance
1368 __init__(Nuisance self, Model m, ParticleIndex id) -> Nuisance
1369 __init__(Nuisance self, _ParticleAdaptor d) -> Nuisance
1371 _IMP_isd.Nuisance_swiginit(self, _IMP_isd.new_Nuisance(*args))
1373 def show(self, *args):
1374 r"""show(Nuisance self, _ostream out=std::cout)"""
1375 return _IMP_isd.Nuisance_show(self, *args)
1378 def setup_particle(*args):
1380 setup_particle(Model m, ParticleIndex pi) -> Nuisance
1381 setup_particle(_ParticleAdaptor pa) -> Nuisance
1382 setup_particle(Model m, ParticleIndex pi, double nuisance) -> Nuisance
1383 setup_particle(_ParticleAdaptor pa, double nuisance) -> Nuisance
1385 return _IMP_isd.Nuisance_setup_particle(*args)
1388 def get_is_setup(*args):
1390 get_is_setup(_ParticleAdaptor p) -> bool
1391 get_is_setup(Model m, ParticleIndex pi) -> bool
1393 return _IMP_isd.Nuisance_get_is_setup(*args)
1396 def get_nuisance_key():
1397 r"""get_nuisance_key() -> FloatKey"""
1398 return _IMP_isd.Nuisance_get_nuisance_key()
1400 def get_nuisance(self):
1401 r"""get_nuisance(Nuisance self) -> IMP::Float"""
1402 return _IMP_isd.Nuisance_get_nuisance(self)
1404 def set_nuisance(self, d):
1405 r"""set_nuisance(Nuisance self, IMP::Float d)"""
1406 return _IMP_isd.Nuisance_set_nuisance(self, d)
1408 def get_has_lower(self):
1409 r"""get_has_lower(Nuisance self) -> bool"""
1410 return _IMP_isd.Nuisance_get_has_lower(self)
1412 def get_lower(self):
1413 r"""get_lower(Nuisance self) -> IMP::Float"""
1414 return _IMP_isd.Nuisance_get_lower(self)
1417 def get_lower_key():
1418 r"""get_lower_key() -> FloatKey"""
1419 return _IMP_isd.Nuisance_get_lower_key()
1422 def get_lower_particle_key():
1423 r"""get_lower_particle_key() -> ParticleIndexKey"""
1424 return _IMP_isd.Nuisance_get_lower_particle_key()
1426 def set_lower(self, *args):
1428 set_lower(Nuisance self, IMP::Float d)
1429 set_lower(Nuisance self, Particle d)
1431 return _IMP_isd.Nuisance_set_lower(self, *args)
1433 def remove_lower(self):
1434 r"""remove_lower(Nuisance self)"""
1435 return _IMP_isd.Nuisance_remove_lower(self)
1437 def get_has_upper(self):
1438 r"""get_has_upper(Nuisance self) -> bool"""
1439 return _IMP_isd.Nuisance_get_has_upper(self)
1441 def get_upper(self):
1442 r"""get_upper(Nuisance self) -> IMP::Float"""
1443 return _IMP_isd.Nuisance_get_upper(self)
1446 def get_upper_key():
1447 r"""get_upper_key() -> FloatKey"""
1448 return _IMP_isd.Nuisance_get_upper_key()
1451 def get_upper_particle_key():
1452 r"""get_upper_particle_key() -> ParticleIndexKey"""
1453 return _IMP_isd.Nuisance_get_upper_particle_key()
1455 def set_upper(self, *args):
1457 set_upper(Nuisance self, IMP::Float d)
1458 set_upper(Nuisance self, Particle d)
1460 return _IMP_isd.Nuisance_set_upper(self, *args)
1462 def remove_upper(self):
1463 r"""remove_upper(Nuisance self)"""
1464 return _IMP_isd.Nuisance_remove_upper(self)
1466 def get_nuisance_derivative(self):
1467 r"""get_nuisance_derivative(Nuisance self) -> IMP::Float"""
1468 return _IMP_isd.Nuisance_get_nuisance_derivative(self)
1470 def add_to_nuisance_derivative(self, d, accum):
1471 r"""add_to_nuisance_derivative(Nuisance self, IMP::Float d, DerivativeAccumulator accum)"""
1472 return _IMP_isd.Nuisance_add_to_nuisance_derivative(self, d, accum)
1474 def get_nuisance_is_optimized(self):
1475 r"""get_nuisance_is_optimized(Nuisance self) -> bool"""
1476 return _IMP_isd.Nuisance_get_nuisance_is_optimized(self)
1478 def set_nuisance_is_optimized(self, val):
1479 r"""set_nuisance_is_optimized(Nuisance self, bool val)"""
1480 return _IMP_isd.Nuisance_set_nuisance_is_optimized(self, val)
1482 def add_attribute(self, *args):
1484 add_attribute(Nuisance self, FloatKey k, IMP::Float v, bool opt)
1485 add_attribute(Nuisance self, FloatKey a0, IMP::Float a1)
1486 add_attribute(Nuisance self, IntKey a0, IMP::Int a1)
1487 add_attribute(Nuisance self, FloatsKey a0, IMP::Floats a1)
1488 add_attribute(Nuisance self, IntsKey a0, IMP::Ints a1)
1489 add_attribute(Nuisance self, StringKey a0, IMP::String a1)
1490 add_attribute(Nuisance self, ParticleIndexKey a0, Particle a1)
1491 add_attribute(Nuisance self, ObjectKey a0, Object a1)
1492 add_attribute(Nuisance self, SparseFloatKey a0, IMP::Float a1)
1493 add_attribute(Nuisance self, SparseIntKey a0, IMP::Int a1)
1494 add_attribute(Nuisance self, SparseStringKey a0, IMP::String a1)
1495 add_attribute(Nuisance self, SparseParticleIndexKey a0, ParticleIndex a1)
1497 return _IMP_isd.Nuisance_add_attribute(self, *args)
1499 def get_value(self, *args):
1501 get_value(Nuisance self, FloatKey a0) -> IMP::Float
1502 get_value(Nuisance self, IntKey a0) -> IMP::Int
1503 get_value(Nuisance self, FloatsKey a0) -> IMP::Floats
1504 get_value(Nuisance self, IntsKey a0) -> IMP::Ints
1505 get_value(Nuisance self, StringKey a0) -> IMP::String
1506 get_value(Nuisance self, ParticleIndexKey a0) -> Particle
1507 get_value(Nuisance self, ObjectKey a0) -> Object
1508 get_value(Nuisance self, SparseFloatKey a0) -> IMP::Float
1509 get_value(Nuisance self, SparseIntKey a0) -> IMP::Int
1510 get_value(Nuisance self, SparseStringKey a0) -> IMP::String
1511 get_value(Nuisance self, SparseParticleIndexKey a0) -> ParticleIndex
1513 return _IMP_isd.Nuisance_get_value(self, *args)
1515 def set_value(self, *args):
1517 set_value(Nuisance self, FloatKey a0, IMP::Float a1)
1518 set_value(Nuisance self, IntKey a0, IMP::Int a1)
1519 set_value(Nuisance self, FloatsKey a0, IMP::Floats a1)
1520 set_value(Nuisance self, IntsKey a0, IMP::Ints a1)
1521 set_value(Nuisance self, StringKey a0, IMP::String a1)
1522 set_value(Nuisance self, ParticleIndexKey a0, Particle a1)
1523 set_value(Nuisance self, ObjectKey a0, Object a1)
1524 set_value(Nuisance self, SparseFloatKey a0, IMP::Float a1)
1525 set_value(Nuisance self, SparseIntKey a0, IMP::Int a1)
1526 set_value(Nuisance self, SparseStringKey a0, IMP::String a1)
1527 set_value(Nuisance self, SparseParticleIndexKey a0, ParticleIndex a1)
1529 return _IMP_isd.Nuisance_set_value(self, *args)
1531 def remove_attribute(self, *args):
1533 remove_attribute(Nuisance self, FloatKey a0)
1534 remove_attribute(Nuisance self, IntKey a0)
1535 remove_attribute(Nuisance self, FloatsKey a0)
1536 remove_attribute(Nuisance self, IntsKey a0)
1537 remove_attribute(Nuisance self, StringKey a0)
1538 remove_attribute(Nuisance self, ParticleIndexKey a0)
1539 remove_attribute(Nuisance self, ObjectKey a0)
1540 remove_attribute(Nuisance self, SparseFloatKey a0)
1541 remove_attribute(Nuisance self, SparseIntKey a0)
1542 remove_attribute(Nuisance self, SparseStringKey a0)
1543 remove_attribute(Nuisance self, SparseParticleIndexKey a0)
1545 return _IMP_isd.Nuisance_remove_attribute(self, *args)
1547 def has_attribute(self, *args):
1549 has_attribute(Nuisance self, FloatKey a0) -> bool
1550 has_attribute(Nuisance self, IntKey a0) -> bool
1551 has_attribute(Nuisance self, FloatsKey a0) -> bool
1552 has_attribute(Nuisance self, IntsKey a0) -> bool
1553 has_attribute(Nuisance self, StringKey a0) -> bool
1554 has_attribute(Nuisance self, ParticleIndexKey a0) -> bool
1555 has_attribute(Nuisance self, ObjectKey a0) -> bool
1556 has_attribute(Nuisance self, SparseFloatKey a0) -> bool
1557 has_attribute(Nuisance self, SparseIntKey a0) -> bool
1558 has_attribute(Nuisance self, SparseStringKey a0) -> bool
1559 has_attribute(Nuisance self, SparseParticleIndexKey a0) -> bool
1561 return _IMP_isd.Nuisance_has_attribute(self, *args)
1563 def get_derivative(self, a0):
1564 r"""get_derivative(Nuisance self, FloatKey a0) -> double"""
1565 return _IMP_isd.Nuisance_get_derivative(self, a0)
1568 r"""get_name(Nuisance self) -> std::string"""
1569 return _IMP_isd.Nuisance_get_name(self)
1572 r"""clear_caches(Nuisance self)"""
1573 return _IMP_isd.Nuisance_clear_caches(self)
1575 def set_name(self, a0):
1576 r"""set_name(Nuisance self, std::string a0)"""
1577 return _IMP_isd.Nuisance_set_name(self, a0)
1580 r"""set_check_level(Nuisance self, IMP::CheckLevel a0)"""
1581 return _IMP_isd.Nuisance_set_check_level(self, a0)
1583 def add_to_derivative(self, a0, a1, a2):
1584 r"""add_to_derivative(Nuisance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1585 return _IMP_isd.Nuisance_add_to_derivative(self, a0, a1, a2)
1587 def set_is_optimized(self, a0, a1):
1588 r"""set_is_optimized(Nuisance self, FloatKey a0, bool a1)"""
1589 return _IMP_isd.Nuisance_set_is_optimized(self, a0, a1)
1591 def get_is_optimized(self, a0):
1592 r"""get_is_optimized(Nuisance self, FloatKey a0) -> bool"""
1593 return _IMP_isd.Nuisance_get_is_optimized(self, a0)
1595 def get_check_level(self):
1596 r"""get_check_level(Nuisance self) -> IMP::CheckLevel"""
1597 return _IMP_isd.Nuisance_get_check_level(self)
1599 def __eq__(self, *args):
1601 __eq__(Nuisance self, Nuisance o) -> bool
1602 __eq__(Nuisance self, Particle d) -> bool
1604 return _IMP_isd.Nuisance___eq__(self, *args)
1606 def __ne__(self, *args):
1608 __ne__(Nuisance self, Nuisance o) -> bool
1609 __ne__(Nuisance self, Particle d) -> bool
1611 return _IMP_isd.Nuisance___ne__(self, *args)
1613 def __le__(self, *args):
1615 __le__(Nuisance self, Nuisance o) -> bool
1616 __le__(Nuisance self, Particle d) -> bool
1618 return _IMP_isd.Nuisance___le__(self, *args)
1620 def __lt__(self, *args):
1622 __lt__(Nuisance self, Nuisance o) -> bool
1623 __lt__(Nuisance self, Particle d) -> bool
1625 return _IMP_isd.Nuisance___lt__(self, *args)
1627 def __ge__(self, *args):
1629 __ge__(Nuisance self, Nuisance o) -> bool
1630 __ge__(Nuisance self, Particle d) -> bool
1632 return _IMP_isd.Nuisance___ge__(self, *args)
1634 def __gt__(self, *args):
1636 __gt__(Nuisance self, Nuisance o) -> bool
1637 __gt__(Nuisance self, Particle d) -> bool
1639 return _IMP_isd.Nuisance___gt__(self, *args)
1642 r"""__hash__(Nuisance self) -> std::size_t"""
1643 return _IMP_isd.Nuisance___hash__(self)
1646 r"""__str__(Nuisance self) -> std::string"""
1647 return _IMP_isd.Nuisance___str__(self)
1650 r"""__repr__(Nuisance self) -> std::string"""
1651 return _IMP_isd.Nuisance___repr__(self)
1653 def _get_as_binary(self):
1654 r"""_get_as_binary(Nuisance self) -> PyObject *"""
1655 return _IMP_isd.Nuisance__get_as_binary(self)
1657 def _set_from_binary(self, p):
1658 r"""_set_from_binary(Nuisance self, PyObject * p)"""
1659 return _IMP_isd.Nuisance__set_from_binary(self, p)
1661 def __getstate__(self):
1662 p = self._get_as_binary()
1663 if len(self.__dict__) > 1:
1664 d = self.__dict__.copy()
1669 def __setstate__(self, p):
1670 if not hasattr(self,
'this'):
1672 if isinstance(p, tuple):
1674 self.__dict__.update(d)
1675 return self._set_from_binary(p)
1677 __swig_destroy__ = _IMP_isd.delete_Nuisance
1680 _IMP_isd.Nuisance_swigregister(Nuisance)
1681 class Scale(Nuisance):
1682 r"""Proxy of C++ IMP::isd::Scale class."""
1684 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1686 def __init__(self, *args):
1688 __init__(Scale self) -> Scale
1689 __init__(Scale self, Model m, ParticleIndex id) -> Scale
1690 __init__(Scale self, _ParticleAdaptor d) -> Scale
1692 _IMP_isd.Scale_swiginit(self, _IMP_isd.new_Scale(*args))
1694 def show(self, *args):
1695 r"""show(Scale self, _ostream out=std::cout)"""
1696 return _IMP_isd.Scale_show(self, *args)
1699 def setup_particle(*args):
1701 setup_particle(Model m, ParticleIndex pi) -> Scale
1702 setup_particle(_ParticleAdaptor pa) -> Scale
1703 setup_particle(Model m, ParticleIndex pi, double scale) -> Scale
1704 setup_particle(_ParticleAdaptor pa, double scale) -> Scale
1706 return _IMP_isd.Scale_setup_particle(*args)
1709 def get_is_setup(*args):
1711 get_is_setup(_ParticleAdaptor p) -> bool
1712 get_is_setup(Model m, ParticleIndex pi) -> bool
1714 return _IMP_isd.Scale_get_is_setup(*args)
1716 def get_scale(self):
1717 r"""get_scale(Scale self) -> IMP::Float"""
1718 return _IMP_isd.Scale_get_scale(self)
1720 def set_scale(self, d):
1721 r"""set_scale(Scale self, IMP::Float d)"""
1722 return _IMP_isd.Scale_set_scale(self, d)
1724 def add_to_scale_derivative(self, d, accum):
1725 r"""add_to_scale_derivative(Scale self, IMP::Float d, DerivativeAccumulator accum)"""
1726 return _IMP_isd.Scale_add_to_scale_derivative(self, d, accum)
1728 def get_scale_derivative(self):
1729 r"""get_scale_derivative(Scale self) -> IMP::Float"""
1730 return _IMP_isd.Scale_get_scale_derivative(self)
1733 def get_scale_key():
1734 r"""get_scale_key() -> FloatKey"""
1735 return _IMP_isd.Scale_get_scale_key()
1737 def get_scale_is_optimized(self):
1738 r"""get_scale_is_optimized(Scale self) -> bool"""
1739 return _IMP_isd.Scale_get_scale_is_optimized(self)
1741 def set_scale_is_optimized(self, val):
1742 r"""set_scale_is_optimized(Scale self, bool val)"""
1743 return _IMP_isd.Scale_set_scale_is_optimized(self, val)
1745 def add_attribute(self, *args):
1747 add_attribute(Scale self, FloatKey k, IMP::Float v, bool opt)
1748 add_attribute(Scale self, FloatKey a0, IMP::Float a1)
1749 add_attribute(Scale self, IntKey a0, IMP::Int a1)
1750 add_attribute(Scale self, FloatsKey a0, IMP::Floats a1)
1751 add_attribute(Scale self, IntsKey a0, IMP::Ints a1)
1752 add_attribute(Scale self, StringKey a0, IMP::String a1)
1753 add_attribute(Scale self, ParticleIndexKey a0, Particle a1)
1754 add_attribute(Scale self, ObjectKey a0, Object a1)
1755 add_attribute(Scale self, SparseFloatKey a0, IMP::Float a1)
1756 add_attribute(Scale self, SparseIntKey a0, IMP::Int a1)
1757 add_attribute(Scale self, SparseStringKey a0, IMP::String a1)
1758 add_attribute(Scale self, SparseParticleIndexKey a0, ParticleIndex a1)
1760 return _IMP_isd.Scale_add_attribute(self, *args)
1762 def get_value(self, *args):
1764 get_value(Scale self, FloatKey a0) -> IMP::Float
1765 get_value(Scale self, IntKey a0) -> IMP::Int
1766 get_value(Scale self, FloatsKey a0) -> IMP::Floats
1767 get_value(Scale self, IntsKey a0) -> IMP::Ints
1768 get_value(Scale self, StringKey a0) -> IMP::String
1769 get_value(Scale self, ParticleIndexKey a0) -> Particle
1770 get_value(Scale self, ObjectKey a0) -> Object
1771 get_value(Scale self, SparseFloatKey a0) -> IMP::Float
1772 get_value(Scale self, SparseIntKey a0) -> IMP::Int
1773 get_value(Scale self, SparseStringKey a0) -> IMP::String
1774 get_value(Scale self, SparseParticleIndexKey a0) -> ParticleIndex
1776 return _IMP_isd.Scale_get_value(self, *args)
1778 def set_value(self, *args):
1780 set_value(Scale self, FloatKey a0, IMP::Float a1)
1781 set_value(Scale self, IntKey a0, IMP::Int a1)
1782 set_value(Scale self, FloatsKey a0, IMP::Floats a1)
1783 set_value(Scale self, IntsKey a0, IMP::Ints a1)
1784 set_value(Scale self, StringKey a0, IMP::String a1)
1785 set_value(Scale self, ParticleIndexKey a0, Particle a1)
1786 set_value(Scale self, ObjectKey a0, Object a1)
1787 set_value(Scale self, SparseFloatKey a0, IMP::Float a1)
1788 set_value(Scale self, SparseIntKey a0, IMP::Int a1)
1789 set_value(Scale self, SparseStringKey a0, IMP::String a1)
1790 set_value(Scale self, SparseParticleIndexKey a0, ParticleIndex a1)
1792 return _IMP_isd.Scale_set_value(self, *args)
1794 def remove_attribute(self, *args):
1796 remove_attribute(Scale self, FloatKey a0)
1797 remove_attribute(Scale self, IntKey a0)
1798 remove_attribute(Scale self, FloatsKey a0)
1799 remove_attribute(Scale self, IntsKey a0)
1800 remove_attribute(Scale self, StringKey a0)
1801 remove_attribute(Scale self, ParticleIndexKey a0)
1802 remove_attribute(Scale self, ObjectKey a0)
1803 remove_attribute(Scale self, SparseFloatKey a0)
1804 remove_attribute(Scale self, SparseIntKey a0)
1805 remove_attribute(Scale self, SparseStringKey a0)
1806 remove_attribute(Scale self, SparseParticleIndexKey a0)
1808 return _IMP_isd.Scale_remove_attribute(self, *args)
1810 def has_attribute(self, *args):
1812 has_attribute(Scale self, FloatKey a0) -> bool
1813 has_attribute(Scale self, IntKey a0) -> bool
1814 has_attribute(Scale self, FloatsKey a0) -> bool
1815 has_attribute(Scale self, IntsKey a0) -> bool
1816 has_attribute(Scale self, StringKey a0) -> bool
1817 has_attribute(Scale self, ParticleIndexKey a0) -> bool
1818 has_attribute(Scale self, ObjectKey a0) -> bool
1819 has_attribute(Scale self, SparseFloatKey a0) -> bool
1820 has_attribute(Scale self, SparseIntKey a0) -> bool
1821 has_attribute(Scale self, SparseStringKey a0) -> bool
1822 has_attribute(Scale self, SparseParticleIndexKey a0) -> bool
1824 return _IMP_isd.Scale_has_attribute(self, *args)
1826 def get_derivative(self, a0):
1827 r"""get_derivative(Scale self, FloatKey a0) -> double"""
1828 return _IMP_isd.Scale_get_derivative(self, a0)
1831 r"""get_name(Scale self) -> std::string"""
1832 return _IMP_isd.Scale_get_name(self)
1835 r"""clear_caches(Scale self)"""
1836 return _IMP_isd.Scale_clear_caches(self)
1838 def set_name(self, a0):
1839 r"""set_name(Scale self, std::string a0)"""
1840 return _IMP_isd.Scale_set_name(self, a0)
1843 r"""set_check_level(Scale self, IMP::CheckLevel a0)"""
1844 return _IMP_isd.Scale_set_check_level(self, a0)
1846 def add_to_derivative(self, a0, a1, a2):
1847 r"""add_to_derivative(Scale self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1848 return _IMP_isd.Scale_add_to_derivative(self, a0, a1, a2)
1850 def set_is_optimized(self, a0, a1):
1851 r"""set_is_optimized(Scale self, FloatKey a0, bool a1)"""
1852 return _IMP_isd.Scale_set_is_optimized(self, a0, a1)
1854 def get_is_optimized(self, a0):
1855 r"""get_is_optimized(Scale self, FloatKey a0) -> bool"""
1856 return _IMP_isd.Scale_get_is_optimized(self, a0)
1858 def get_check_level(self):
1859 r"""get_check_level(Scale self) -> IMP::CheckLevel"""
1860 return _IMP_isd.Scale_get_check_level(self)
1862 def __eq__(self, *args):
1864 __eq__(Scale self, Scale o) -> bool
1865 __eq__(Scale self, Particle d) -> bool
1867 return _IMP_isd.Scale___eq__(self, *args)
1869 def __ne__(self, *args):
1871 __ne__(Scale self, Scale o) -> bool
1872 __ne__(Scale self, Particle d) -> bool
1874 return _IMP_isd.Scale___ne__(self, *args)
1876 def __le__(self, *args):
1878 __le__(Scale self, Scale o) -> bool
1879 __le__(Scale self, Particle d) -> bool
1881 return _IMP_isd.Scale___le__(self, *args)
1883 def __lt__(self, *args):
1885 __lt__(Scale self, Scale o) -> bool
1886 __lt__(Scale self, Particle d) -> bool
1888 return _IMP_isd.Scale___lt__(self, *args)
1890 def __ge__(self, *args):
1892 __ge__(Scale self, Scale o) -> bool
1893 __ge__(Scale self, Particle d) -> bool
1895 return _IMP_isd.Scale___ge__(self, *args)
1897 def __gt__(self, *args):
1899 __gt__(Scale self, Scale o) -> bool
1900 __gt__(Scale self, Particle d) -> bool
1902 return _IMP_isd.Scale___gt__(self, *args)
1905 r"""__hash__(Scale self) -> std::size_t"""
1906 return _IMP_isd.Scale___hash__(self)
1909 r"""__str__(Scale self) -> std::string"""
1910 return _IMP_isd.Scale___str__(self)
1913 r"""__repr__(Scale self) -> std::string"""
1914 return _IMP_isd.Scale___repr__(self)
1916 def _get_as_binary(self):
1917 r"""_get_as_binary(Scale self) -> PyObject *"""
1918 return _IMP_isd.Scale__get_as_binary(self)
1920 def _set_from_binary(self, p):
1921 r"""_set_from_binary(Scale self, PyObject * p)"""
1922 return _IMP_isd.Scale__set_from_binary(self, p)
1924 def __getstate__(self):
1925 p = self._get_as_binary()
1926 if len(self.__dict__) > 1:
1927 d = self.__dict__.copy()
1932 def __setstate__(self, p):
1933 if not hasattr(self,
'this'):
1935 if isinstance(p, tuple):
1937 self.__dict__.update(d)
1938 return self._set_from_binary(p)
1940 __swig_destroy__ = _IMP_isd.delete_Scale
1943 _IMP_isd.Scale_swigregister(Scale)
1944 class Switching(Nuisance):
1945 r"""Proxy of C++ IMP::isd::Switching class."""
1947 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1949 def __init__(self, *args):
1951 __init__(Switching self) -> Switching
1952 __init__(Switching self, Model m, ParticleIndex id) -> Switching
1953 __init__(Switching self, _ParticleAdaptor d) -> Switching
1955 _IMP_isd.Switching_swiginit(self, _IMP_isd.new_Switching(*args))
1957 def show(self, *args):
1958 r"""show(Switching self, _ostream out=std::cout)"""
1959 return _IMP_isd.Switching_show(self, *args)
1962 def setup_particle(*args):
1964 setup_particle(Model m, ParticleIndex pi) -> Switching
1965 setup_particle(_ParticleAdaptor pa) -> Switching
1966 setup_particle(Model m, ParticleIndex pi, double switching) -> Switching
1967 setup_particle(_ParticleAdaptor pa, double switching) -> Switching
1969 return _IMP_isd.Switching_setup_particle(*args)
1972 def get_is_setup(*args):
1974 get_is_setup(_ParticleAdaptor p) -> bool
1975 get_is_setup(Model m, ParticleIndex pi) -> bool
1977 return _IMP_isd.Switching_get_is_setup(*args)
1979 def get_switching(self):
1980 r"""get_switching(Switching self) -> IMP::Float"""
1981 return _IMP_isd.Switching_get_switching(self)
1983 def set_switching(self, d):
1984 r"""set_switching(Switching self, IMP::Float d)"""
1985 return _IMP_isd.Switching_set_switching(self, d)
1987 def add_to_switching_derivative(self, d, accum):
1988 r"""add_to_switching_derivative(Switching self, IMP::Float d, DerivativeAccumulator accum)"""
1989 return _IMP_isd.Switching_add_to_switching_derivative(self, d, accum)
1991 def get_switching_derivative(self):
1992 r"""get_switching_derivative(Switching self) -> IMP::Float"""
1993 return _IMP_isd.Switching_get_switching_derivative(self)
1996 def get_switching_key():
1997 r"""get_switching_key() -> FloatKey"""
1998 return _IMP_isd.Switching_get_switching_key()
2000 def get_switching_is_optimized(self):
2001 r"""get_switching_is_optimized(Switching self) -> bool"""
2002 return _IMP_isd.Switching_get_switching_is_optimized(self)
2004 def set_switching_is_optimized(self, val):
2005 r"""set_switching_is_optimized(Switching self, bool val)"""
2006 return _IMP_isd.Switching_set_switching_is_optimized(self, val)
2008 def add_attribute(self, *args):
2010 add_attribute(Switching self, FloatKey k, IMP::Float v, bool opt)
2011 add_attribute(Switching self, FloatKey a0, IMP::Float a1)
2012 add_attribute(Switching self, IntKey a0, IMP::Int a1)
2013 add_attribute(Switching self, FloatsKey a0, IMP::Floats a1)
2014 add_attribute(Switching self, IntsKey a0, IMP::Ints a1)
2015 add_attribute(Switching self, StringKey a0, IMP::String a1)
2016 add_attribute(Switching self, ParticleIndexKey a0, Particle a1)
2017 add_attribute(Switching self, ObjectKey a0, Object a1)
2018 add_attribute(Switching self, SparseFloatKey a0, IMP::Float a1)
2019 add_attribute(Switching self, SparseIntKey a0, IMP::Int a1)
2020 add_attribute(Switching self, SparseStringKey a0, IMP::String a1)
2021 add_attribute(Switching self, SparseParticleIndexKey a0, ParticleIndex a1)
2023 return _IMP_isd.Switching_add_attribute(self, *args)
2025 def get_value(self, *args):
2027 get_value(Switching self, FloatKey a0) -> IMP::Float
2028 get_value(Switching self, IntKey a0) -> IMP::Int
2029 get_value(Switching self, FloatsKey a0) -> IMP::Floats
2030 get_value(Switching self, IntsKey a0) -> IMP::Ints
2031 get_value(Switching self, StringKey a0) -> IMP::String
2032 get_value(Switching self, ParticleIndexKey a0) -> Particle
2033 get_value(Switching self, ObjectKey a0) -> Object
2034 get_value(Switching self, SparseFloatKey a0) -> IMP::Float
2035 get_value(Switching self, SparseIntKey a0) -> IMP::Int
2036 get_value(Switching self, SparseStringKey a0) -> IMP::String
2037 get_value(Switching self, SparseParticleIndexKey a0) -> ParticleIndex
2039 return _IMP_isd.Switching_get_value(self, *args)
2041 def set_value(self, *args):
2043 set_value(Switching self, FloatKey a0, IMP::Float a1)
2044 set_value(Switching self, IntKey a0, IMP::Int a1)
2045 set_value(Switching self, FloatsKey a0, IMP::Floats a1)
2046 set_value(Switching self, IntsKey a0, IMP::Ints a1)
2047 set_value(Switching self, StringKey a0, IMP::String a1)
2048 set_value(Switching self, ParticleIndexKey a0, Particle a1)
2049 set_value(Switching self, ObjectKey a0, Object a1)
2050 set_value(Switching self, SparseFloatKey a0, IMP::Float a1)
2051 set_value(Switching self, SparseIntKey a0, IMP::Int a1)
2052 set_value(Switching self, SparseStringKey a0, IMP::String a1)
2053 set_value(Switching self, SparseParticleIndexKey a0, ParticleIndex a1)
2055 return _IMP_isd.Switching_set_value(self, *args)
2057 def remove_attribute(self, *args):
2059 remove_attribute(Switching self, FloatKey a0)
2060 remove_attribute(Switching self, IntKey a0)
2061 remove_attribute(Switching self, FloatsKey a0)
2062 remove_attribute(Switching self, IntsKey a0)
2063 remove_attribute(Switching self, StringKey a0)
2064 remove_attribute(Switching self, ParticleIndexKey a0)
2065 remove_attribute(Switching self, ObjectKey a0)
2066 remove_attribute(Switching self, SparseFloatKey a0)
2067 remove_attribute(Switching self, SparseIntKey a0)
2068 remove_attribute(Switching self, SparseStringKey a0)
2069 remove_attribute(Switching self, SparseParticleIndexKey a0)
2071 return _IMP_isd.Switching_remove_attribute(self, *args)
2073 def has_attribute(self, *args):
2075 has_attribute(Switching self, FloatKey a0) -> bool
2076 has_attribute(Switching self, IntKey a0) -> bool
2077 has_attribute(Switching self, FloatsKey a0) -> bool
2078 has_attribute(Switching self, IntsKey a0) -> bool
2079 has_attribute(Switching self, StringKey a0) -> bool
2080 has_attribute(Switching self, ParticleIndexKey a0) -> bool
2081 has_attribute(Switching self, ObjectKey a0) -> bool
2082 has_attribute(Switching self, SparseFloatKey a0) -> bool
2083 has_attribute(Switching self, SparseIntKey a0) -> bool
2084 has_attribute(Switching self, SparseStringKey a0) -> bool
2085 has_attribute(Switching self, SparseParticleIndexKey a0) -> bool
2087 return _IMP_isd.Switching_has_attribute(self, *args)
2089 def get_derivative(self, a0):
2090 r"""get_derivative(Switching self, FloatKey a0) -> double"""
2091 return _IMP_isd.Switching_get_derivative(self, a0)
2094 r"""get_name(Switching self) -> std::string"""
2095 return _IMP_isd.Switching_get_name(self)
2098 r"""clear_caches(Switching self)"""
2099 return _IMP_isd.Switching_clear_caches(self)
2101 def set_name(self, a0):
2102 r"""set_name(Switching self, std::string a0)"""
2103 return _IMP_isd.Switching_set_name(self, a0)
2106 r"""set_check_level(Switching self, IMP::CheckLevel a0)"""
2107 return _IMP_isd.Switching_set_check_level(self, a0)
2109 def add_to_derivative(self, a0, a1, a2):
2110 r"""add_to_derivative(Switching self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2111 return _IMP_isd.Switching_add_to_derivative(self, a0, a1, a2)
2113 def set_is_optimized(self, a0, a1):
2114 r"""set_is_optimized(Switching self, FloatKey a0, bool a1)"""
2115 return _IMP_isd.Switching_set_is_optimized(self, a0, a1)
2117 def get_is_optimized(self, a0):
2118 r"""get_is_optimized(Switching self, FloatKey a0) -> bool"""
2119 return _IMP_isd.Switching_get_is_optimized(self, a0)
2121 def get_check_level(self):
2122 r"""get_check_level(Switching self) -> IMP::CheckLevel"""
2123 return _IMP_isd.Switching_get_check_level(self)
2125 def __eq__(self, *args):
2127 __eq__(Switching self, Switching o) -> bool
2128 __eq__(Switching self, Particle d) -> bool
2130 return _IMP_isd.Switching___eq__(self, *args)
2132 def __ne__(self, *args):
2134 __ne__(Switching self, Switching o) -> bool
2135 __ne__(Switching self, Particle d) -> bool
2137 return _IMP_isd.Switching___ne__(self, *args)
2139 def __le__(self, *args):
2141 __le__(Switching self, Switching o) -> bool
2142 __le__(Switching self, Particle d) -> bool
2144 return _IMP_isd.Switching___le__(self, *args)
2146 def __lt__(self, *args):
2148 __lt__(Switching self, Switching o) -> bool
2149 __lt__(Switching self, Particle d) -> bool
2151 return _IMP_isd.Switching___lt__(self, *args)
2153 def __ge__(self, *args):
2155 __ge__(Switching self, Switching o) -> bool
2156 __ge__(Switching self, Particle d) -> bool
2158 return _IMP_isd.Switching___ge__(self, *args)
2160 def __gt__(self, *args):
2162 __gt__(Switching self, Switching o) -> bool
2163 __gt__(Switching self, Particle d) -> bool
2165 return _IMP_isd.Switching___gt__(self, *args)
2168 r"""__hash__(Switching self) -> std::size_t"""
2169 return _IMP_isd.Switching___hash__(self)
2172 r"""__str__(Switching self) -> std::string"""
2173 return _IMP_isd.Switching___str__(self)
2176 r"""__repr__(Switching self) -> std::string"""
2177 return _IMP_isd.Switching___repr__(self)
2179 def _get_as_binary(self):
2180 r"""_get_as_binary(Switching self) -> PyObject *"""
2181 return _IMP_isd.Switching__get_as_binary(self)
2183 def _set_from_binary(self, p):
2184 r"""_set_from_binary(Switching self, PyObject * p)"""
2185 return _IMP_isd.Switching__set_from_binary(self, p)
2187 def __getstate__(self):
2188 p = self._get_as_binary()
2189 if len(self.__dict__) > 1:
2190 d = self.__dict__.copy()
2195 def __setstate__(self, p):
2196 if not hasattr(self,
'this'):
2198 if isinstance(p, tuple):
2200 self.__dict__.update(d)
2201 return self._set_from_binary(p)
2203 __swig_destroy__ = _IMP_isd.delete_Switching
2206 _IMP_isd.Switching_swigregister(Switching)
2208 r"""Proxy of C++ IMP::isd::Weight class."""
2210 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2212 def __init__(self, *args):
2214 __init__(Weight self) -> Weight
2215 __init__(Weight self, Model m, ParticleIndex id) -> Weight
2216 __init__(Weight self, _ParticleAdaptor d) -> Weight
2218 _IMP_isd.Weight_swiginit(self, _IMP_isd.new_Weight(*args))
2220 def show(self, *args):
2221 r"""show(Weight self, _ostream out=std::cout)"""
2222 return _IMP_isd.Weight_show(self, *args)
2225 def setup_particle(*args):
2227 setup_particle(Model m, ParticleIndex pi) -> Weight
2228 setup_particle(_ParticleAdaptor pa) -> Weight
2229 setup_particle(Model m, ParticleIndex pi, IMP::Int nweights) -> Weight
2230 setup_particle(_ParticleAdaptor pa, IMP::Int nweights) -> Weight
2231 setup_particle(Model m, ParticleIndex pi, VectorKD w) -> Weight
2232 setup_particle(_ParticleAdaptor pa, VectorKD w) -> Weight
2234 return _IMP_isd.Weight_setup_particle(*args)
2237 def get_number_of_weights_key():
2238 r"""get_number_of_weights_key() -> IntKey"""
2239 return _IMP_isd.Weight_get_number_of_weights_key()
2242 def get_weight_key(i):
2243 r"""get_weight_key(int i) -> FloatKey"""
2244 return _IMP_isd.Weight_get_weight_key(i)
2246 def get_weight_keys(self):
2247 r"""get_weight_keys(Weight self) -> IMP::FloatKeys"""
2248 return _IMP_isd.Weight_get_weight_keys(self)
2250 def get_weight(self, i):
2251 r"""get_weight(Weight self, int i) -> IMP::Float"""
2252 return _IMP_isd.Weight_get_weight(self, i)
2254 def get_weights(self):
2255 r"""get_weights(Weight self) -> VectorKD"""
2256 return _IMP_isd.Weight_get_weights(self)
2258 def set_weight_lazy(self, i, wi):
2259 r"""set_weight_lazy(Weight self, int i, IMP::Float wi)"""
2260 return _IMP_isd.Weight_set_weight_lazy(self, i, wi)
2262 def set_weights_lazy(self, w):
2263 r"""set_weights_lazy(Weight self, VectorKD w)"""
2264 return _IMP_isd.Weight_set_weights_lazy(self, w)
2266 def set_weights(self, w):
2267 r"""set_weights(Weight self, VectorKD w)"""
2268 return _IMP_isd.Weight_set_weights(self, w)
2270 def get_weights_are_optimized(self):
2271 r"""get_weights_are_optimized(Weight self) -> bool"""
2272 return _IMP_isd.Weight_get_weights_are_optimized(self)
2274 def set_weights_are_optimized(self, tf):
2275 r"""set_weights_are_optimized(Weight self, bool tf)"""
2276 return _IMP_isd.Weight_set_weights_are_optimized(self, tf)
2278 def get_weight_derivative(self, i):
2279 r"""get_weight_derivative(Weight self, int i) -> IMP::Float"""
2280 return _IMP_isd.Weight_get_weight_derivative(self, i)
2282 def get_weights_derivatives(self):
2283 r"""get_weights_derivatives(Weight self) -> VectorKD"""
2284 return _IMP_isd.Weight_get_weights_derivatives(self)
2286 def add_to_weight_derivative(self, i, dwi, da):
2287 r"""add_to_weight_derivative(Weight self, int i, IMP::Float dwi, DerivativeAccumulator da)"""
2288 return _IMP_isd.Weight_add_to_weight_derivative(self, i, dwi, da)
2290 def add_to_weights_derivatives(self, dw, da):
2291 r"""add_to_weights_derivatives(Weight self, VectorKD dw, DerivativeAccumulator da)"""
2292 return _IMP_isd.Weight_add_to_weights_derivatives(self, dw, da)
2294 def add_weight_lazy(self, wi=0):
2295 r"""add_weight_lazy(Weight self, IMP::Float wi=0)"""
2296 return _IMP_isd.Weight_add_weight_lazy(self, wi)
2298 def add_weight(self, wi=0):
2299 r"""add_weight(Weight self, IMP::Float wi=0)"""
2300 return _IMP_isd.Weight_add_weight(self, wi)
2302 def get_number_of_weights(self):
2303 r"""get_number_of_weights(Weight self) -> IMP::Int"""
2304 return _IMP_isd.Weight_get_number_of_weights(self)
2306 def get_unit_simplex(self):
2307 r"""get_unit_simplex(Weight self) -> UnitSimplexKD"""
2308 return _IMP_isd.Weight_get_unit_simplex(self)
2310 def set_number_of_weights_lazy(self, nweights):
2311 r"""set_number_of_weights_lazy(Weight self, IMP::Int nweights)"""
2312 return _IMP_isd.Weight_set_number_of_weights_lazy(self, nweights)
2314 def set_number_of_weights(self, nweights):
2315 r"""set_number_of_weights(Weight self, IMP::Int nweights)"""
2316 return _IMP_isd.Weight_set_number_of_weights(self, nweights)
2319 def get_is_setup(*args):
2321 get_is_setup(_ParticleAdaptor p) -> bool
2322 get_is_setup(Model m, ParticleIndex pi) -> bool
2324 return _IMP_isd.Weight_get_is_setup(*args)
2326 def add_attribute(self, *args):
2328 add_attribute(Weight self, FloatKey k, IMP::Float v, bool opt)
2329 add_attribute(Weight self, FloatKey a0, IMP::Float a1)
2330 add_attribute(Weight self, IntKey a0, IMP::Int a1)
2331 add_attribute(Weight self, FloatsKey a0, IMP::Floats a1)
2332 add_attribute(Weight self, IntsKey a0, IMP::Ints a1)
2333 add_attribute(Weight self, StringKey a0, IMP::String a1)
2334 add_attribute(Weight self, ParticleIndexKey a0, Particle a1)
2335 add_attribute(Weight self, ObjectKey a0, Object a1)
2336 add_attribute(Weight self, SparseFloatKey a0, IMP::Float a1)
2337 add_attribute(Weight self, SparseIntKey a0, IMP::Int a1)
2338 add_attribute(Weight self, SparseStringKey a0, IMP::String a1)
2339 add_attribute(Weight self, SparseParticleIndexKey a0, ParticleIndex a1)
2341 return _IMP_isd.Weight_add_attribute(self, *args)
2343 def get_value(self, *args):
2345 get_value(Weight self, FloatKey a0) -> IMP::Float
2346 get_value(Weight self, IntKey a0) -> IMP::Int
2347 get_value(Weight self, FloatsKey a0) -> IMP::Floats
2348 get_value(Weight self, IntsKey a0) -> IMP::Ints
2349 get_value(Weight self, StringKey a0) -> IMP::String
2350 get_value(Weight self, ParticleIndexKey a0) -> Particle
2351 get_value(Weight self, ObjectKey a0) -> Object
2352 get_value(Weight self, SparseFloatKey a0) -> IMP::Float
2353 get_value(Weight self, SparseIntKey a0) -> IMP::Int
2354 get_value(Weight self, SparseStringKey a0) -> IMP::String
2355 get_value(Weight self, SparseParticleIndexKey a0) -> ParticleIndex
2357 return _IMP_isd.Weight_get_value(self, *args)
2359 def set_value(self, *args):
2361 set_value(Weight self, FloatKey a0, IMP::Float a1)
2362 set_value(Weight self, IntKey a0, IMP::Int a1)
2363 set_value(Weight self, FloatsKey a0, IMP::Floats a1)
2364 set_value(Weight self, IntsKey a0, IMP::Ints a1)
2365 set_value(Weight self, StringKey a0, IMP::String a1)
2366 set_value(Weight self, ParticleIndexKey a0, Particle a1)
2367 set_value(Weight self, ObjectKey a0, Object a1)
2368 set_value(Weight self, SparseFloatKey a0, IMP::Float a1)
2369 set_value(Weight self, SparseIntKey a0, IMP::Int a1)
2370 set_value(Weight self, SparseStringKey a0, IMP::String a1)
2371 set_value(Weight self, SparseParticleIndexKey a0, ParticleIndex a1)
2373 return _IMP_isd.Weight_set_value(self, *args)
2375 def remove_attribute(self, *args):
2377 remove_attribute(Weight self, FloatKey a0)
2378 remove_attribute(Weight self, IntKey a0)
2379 remove_attribute(Weight self, FloatsKey a0)
2380 remove_attribute(Weight self, IntsKey a0)
2381 remove_attribute(Weight self, StringKey a0)
2382 remove_attribute(Weight self, ParticleIndexKey a0)
2383 remove_attribute(Weight self, ObjectKey a0)
2384 remove_attribute(Weight self, SparseFloatKey a0)
2385 remove_attribute(Weight self, SparseIntKey a0)
2386 remove_attribute(Weight self, SparseStringKey a0)
2387 remove_attribute(Weight self, SparseParticleIndexKey a0)
2389 return _IMP_isd.Weight_remove_attribute(self, *args)
2391 def has_attribute(self, *args):
2393 has_attribute(Weight self, FloatKey a0) -> bool
2394 has_attribute(Weight self, IntKey a0) -> bool
2395 has_attribute(Weight self, FloatsKey a0) -> bool
2396 has_attribute(Weight self, IntsKey a0) -> bool
2397 has_attribute(Weight self, StringKey a0) -> bool
2398 has_attribute(Weight self, ParticleIndexKey a0) -> bool
2399 has_attribute(Weight self, ObjectKey a0) -> bool
2400 has_attribute(Weight self, SparseFloatKey a0) -> bool
2401 has_attribute(Weight self, SparseIntKey a0) -> bool
2402 has_attribute(Weight self, SparseStringKey a0) -> bool
2403 has_attribute(Weight self, SparseParticleIndexKey a0) -> bool
2405 return _IMP_isd.Weight_has_attribute(self, *args)
2407 def get_derivative(self, a0):
2408 r"""get_derivative(Weight self, FloatKey a0) -> double"""
2409 return _IMP_isd.Weight_get_derivative(self, a0)
2412 r"""get_name(Weight self) -> std::string"""
2413 return _IMP_isd.Weight_get_name(self)
2416 r"""clear_caches(Weight self)"""
2417 return _IMP_isd.Weight_clear_caches(self)
2419 def set_name(self, a0):
2420 r"""set_name(Weight self, std::string a0)"""
2421 return _IMP_isd.Weight_set_name(self, a0)
2424 r"""set_check_level(Weight self, IMP::CheckLevel a0)"""
2425 return _IMP_isd.Weight_set_check_level(self, a0)
2427 def add_to_derivative(self, a0, a1, a2):
2428 r"""add_to_derivative(Weight self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2429 return _IMP_isd.Weight_add_to_derivative(self, a0, a1, a2)
2431 def set_is_optimized(self, a0, a1):
2432 r"""set_is_optimized(Weight self, FloatKey a0, bool a1)"""
2433 return _IMP_isd.Weight_set_is_optimized(self, a0, a1)
2435 def get_is_optimized(self, a0):
2436 r"""get_is_optimized(Weight self, FloatKey a0) -> bool"""
2437 return _IMP_isd.Weight_get_is_optimized(self, a0)
2439 def get_check_level(self):
2440 r"""get_check_level(Weight self) -> IMP::CheckLevel"""
2441 return _IMP_isd.Weight_get_check_level(self)
2443 def __eq__(self, *args):
2445 __eq__(Weight self, Weight o) -> bool
2446 __eq__(Weight self, Particle d) -> bool
2448 return _IMP_isd.Weight___eq__(self, *args)
2450 def __ne__(self, *args):
2452 __ne__(Weight self, Weight o) -> bool
2453 __ne__(Weight self, Particle d) -> bool
2455 return _IMP_isd.Weight___ne__(self, *args)
2457 def __le__(self, *args):
2459 __le__(Weight self, Weight o) -> bool
2460 __le__(Weight self, Particle d) -> bool
2462 return _IMP_isd.Weight___le__(self, *args)
2464 def __lt__(self, *args):
2466 __lt__(Weight self, Weight o) -> bool
2467 __lt__(Weight self, Particle d) -> bool
2469 return _IMP_isd.Weight___lt__(self, *args)
2471 def __ge__(self, *args):
2473 __ge__(Weight self, Weight o) -> bool
2474 __ge__(Weight self, Particle d) -> bool
2476 return _IMP_isd.Weight___ge__(self, *args)
2478 def __gt__(self, *args):
2480 __gt__(Weight self, Weight o) -> bool
2481 __gt__(Weight self, Particle d) -> bool
2483 return _IMP_isd.Weight___gt__(self, *args)
2486 r"""__hash__(Weight self) -> std::size_t"""
2487 return _IMP_isd.Weight___hash__(self)
2490 r"""__str__(Weight self) -> std::string"""
2491 return _IMP_isd.Weight___str__(self)
2494 r"""__repr__(Weight self) -> std::string"""
2495 return _IMP_isd.Weight___repr__(self)
2497 def _get_as_binary(self):
2498 r"""_get_as_binary(Weight self) -> PyObject *"""
2499 return _IMP_isd.Weight__get_as_binary(self)
2501 def _set_from_binary(self, p):
2502 r"""_set_from_binary(Weight self, PyObject * p)"""
2503 return _IMP_isd.Weight__set_from_binary(self, p)
2505 def __getstate__(self):
2506 p = self._get_as_binary()
2507 if len(self.__dict__) > 1:
2508 d = self.__dict__.copy()
2513 def __setstate__(self, p):
2514 if not hasattr(self,
'this'):
2516 if isinstance(p, tuple):
2518 self.__dict__.update(d)
2519 return self._set_from_binary(p)
2521 __swig_destroy__ = _IMP_isd.delete_Weight
2524 _IMP_isd.Weight_swigregister(Weight)
2525 cvar = _IMP_isd.cvar
2526 IMPISD_MAX_WEIGHTS = cvar.IMPISD_MAX_WEIGHTS
2529 def __lshift__(*args):
2531 __lshift__(_ostream out, Nuisance n) -> _ostream
2532 __lshift__(_ostream out, Scale n) -> _ostream
2533 __lshift__(_ostream out, Switching n) -> _ostream
2534 __lshift__(_ostream out, Weight n) -> _ostream
2536 return _IMP_isd.__lshift__(*args)
2538 r"""Proxy of C++ IMP::isd::JeffreysRestraint class."""
2540 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2542 def __init__(self, *args):
2544 __init__(JeffreysRestraint self, Model m, Particle p) -> JeffreysRestraint
2545 __init__(JeffreysRestraint self) -> JeffreysRestraint
2547 _IMP_isd.JeffreysRestraint_swiginit(self, _IMP_isd.new_JeffreysRestraint(*args))
2550 r"""do_get_inputs(JeffreysRestraint self) -> IMP::ModelObjectsTemp"""
2551 return _IMP_isd.JeffreysRestraint_do_get_inputs(self)
2554 r"""get_version_info(JeffreysRestraint self) -> VersionInfo"""
2555 return _IMP_isd.JeffreysRestraint_get_version_info(self)
2556 __swig_destroy__ = _IMP_isd.delete_JeffreysRestraint
2558 def get_probability(self):
2559 r"""get_probability(JeffreysRestraint self) -> double"""
2560 return _IMP_isd.JeffreysRestraint_get_probability(self)
2563 r"""__str__(JeffreysRestraint self) -> std::string"""
2564 return _IMP_isd.JeffreysRestraint___str__(self)
2567 r"""__repr__(JeffreysRestraint self) -> std::string"""
2568 return _IMP_isd.JeffreysRestraint___repr__(self)
2572 return _object_cast_to_JeffreysRestraint(o)
2575 def _get_as_binary(self):
2576 r"""_get_as_binary(JeffreysRestraint self) -> PyObject *"""
2577 return _IMP_isd.JeffreysRestraint__get_as_binary(self)
2579 def _set_from_binary(self, p):
2580 r"""_set_from_binary(JeffreysRestraint self, PyObject * p)"""
2581 return _IMP_isd.JeffreysRestraint__set_from_binary(self, p)
2583 def __getstate__(self):
2584 p = self._get_as_binary()
2585 if len(self.__dict__) > 1:
2586 d = self.__dict__.copy()
2591 def __setstate__(self, p):
2592 if not hasattr(self,
'this'):
2594 if isinstance(p, tuple):
2596 self.__dict__.update(d)
2597 return self._set_from_binary(p)
2601 _IMP_isd.JeffreysRestraint_swigregister(JeffreysRestraint)
2603 r"""Proxy of C++ IMP::isd::NormalSigmaPCRestraint class."""
2605 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2607 def __init__(self, *args):
2609 __init__(NormalSigmaPCRestraint self, Model m, ParticleIndex spi, double su, double alpha, std::string name="NormalSigmaPCRestraint%1%") -> NormalSigmaPCRestraint
2610 __init__(NormalSigmaPCRestraint self, Scale s, double su, double alpha, std::string name="NormalSigmaPCRestraint%1%") -> NormalSigmaPCRestraint
2612 _IMP_isd.NormalSigmaPCRestraint_swiginit(self, _IMP_isd.new_NormalSigmaPCRestraint(*args))
2614 def get_sigma(self):
2615 r"""get_sigma(NormalSigmaPCRestraint self) -> Scale"""
2616 return _IMP_isd.NormalSigmaPCRestraint_get_sigma(self)
2618 def get_alpha(self):
2619 r"""get_alpha(NormalSigmaPCRestraint self) -> double"""
2620 return _IMP_isd.NormalSigmaPCRestraint_get_alpha(self)
2622 def get_sigma_upper(self):
2623 r"""get_sigma_upper(NormalSigmaPCRestraint self) -> double"""
2624 return _IMP_isd.NormalSigmaPCRestraint_get_sigma_upper(self)
2626 def get_probability(self):
2627 r"""get_probability(NormalSigmaPCRestraint self) -> double"""
2628 return _IMP_isd.NormalSigmaPCRestraint_get_probability(self)
2631 r"""do_get_inputs(NormalSigmaPCRestraint self) -> IMP::ModelObjectsTemp"""
2632 return _IMP_isd.NormalSigmaPCRestraint_do_get_inputs(self)
2635 r"""get_version_info(NormalSigmaPCRestraint self) -> VersionInfo"""
2636 return _IMP_isd.NormalSigmaPCRestraint_get_version_info(self)
2637 __swig_destroy__ = _IMP_isd.delete_NormalSigmaPCRestraint
2640 r"""__str__(NormalSigmaPCRestraint self) -> std::string"""
2641 return _IMP_isd.NormalSigmaPCRestraint___str__(self)
2644 r"""__repr__(NormalSigmaPCRestraint self) -> std::string"""
2645 return _IMP_isd.NormalSigmaPCRestraint___repr__(self)
2649 return _object_cast_to_NormalSigmaPCRestraint(o)
2653 _IMP_isd.NormalSigmaPCRestraint_swigregister(NormalSigmaPCRestraint)
2655 r"""Proxy of C++ IMP::isd::Distribution class."""
2657 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2659 def __init__(self, *args):
2660 r"""__init__(Distribution self, std::string name="Distribution %1%") -> Distribution"""
2661 if self.__class__ == Distribution:
2665 _IMP_isd.Distribution_swiginit(self, _IMP_isd.new_Distribution(_self, *args))
2667 if self.__class__ != Distribution:
2668 _director_objects.register(self)
2673 def get_type_name(self):
2674 r"""get_type_name(Distribution self) -> std::string"""
2675 return _IMP_isd.Distribution_get_type_name(self)
2678 r"""get_version_info(Distribution self) -> VersionInfo"""
2679 return _IMP_isd.Distribution_get_version_info(self)
2680 __swig_destroy__ = _IMP_isd.delete_Distribution
2683 r"""__str__(Distribution self) -> std::string"""
2684 return _IMP_isd.Distribution___str__(self)
2687 r"""__repr__(Distribution self) -> std::string"""
2688 return _IMP_isd.Distribution___repr__(self)
2692 return _object_cast_to_Distribution(o)
2695 def get_type_name(self):
2696 return self.__class__.__name__
2697 def do_show(self, out):
2700 if"IMP::isd" ==
"IMP":
2701 return VersionInfo(self.__module__,
2708 return _object_cast_to_Distribution(o)
2710 def __disown__(self):
2712 _IMP_isd.disown_Distribution(self)
2713 return weakref.proxy(self)
2716 r"""do_destroy(Distribution self)"""
2717 return _IMP_isd.Distribution_do_destroy(self)
2720 _IMP_isd.Distribution_swigregister(Distribution)
2721 class OneDimensionalDistribution(Distribution):
2722 r"""Proxy of C++ IMP::isd::OneDimensionalDistribution class."""
2724 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2726 def do_evaluate(self, *args):
2728 do_evaluate(OneDimensionalDistribution self, double v) -> double
2729 do_evaluate(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2731 return _IMP_isd.OneDimensionalDistribution_do_evaluate(self, *args)
2733 def do_get_density(self, *args):
2735 do_get_density(OneDimensionalDistribution self, double v) -> double
2736 do_get_density(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2738 return _IMP_isd.OneDimensionalDistribution_do_get_density(self, *args)
2740 def __init__(self, *args):
2741 r"""__init__(OneDimensionalDistribution self, std::string name="OneDimensionalDistribution %1%") -> OneDimensionalDistribution"""
2742 if self.__class__ == OneDimensionalDistribution:
2746 _IMP_isd.OneDimensionalDistribution_swiginit(self, _IMP_isd.new_OneDimensionalDistribution(_self, *args))
2748 if self.__class__ != OneDimensionalDistribution:
2749 _director_objects.register(self)
2754 def evaluate(self, *args):
2756 evaluate(OneDimensionalDistribution self, double v) -> double
2757 evaluate(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2759 return _IMP_isd.OneDimensionalDistribution_evaluate(self, *args)
2761 def get_density(self, *args):
2763 get_density(OneDimensionalDistribution self, double v) -> double
2764 get_density(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2766 return _IMP_isd.OneDimensionalDistribution_get_density(self, *args)
2768 def get_type_name(self):
2769 r"""get_type_name(OneDimensionalDistribution self) -> std::string"""
2770 return _IMP_isd.OneDimensionalDistribution_get_type_name(self)
2773 r"""get_version_info(OneDimensionalDistribution self) -> VersionInfo"""
2774 return _IMP_isd.OneDimensionalDistribution_get_version_info(self)
2775 __swig_destroy__ = _IMP_isd.delete_OneDimensionalDistribution
2778 r"""__str__(OneDimensionalDistribution self) -> std::string"""
2779 return _IMP_isd.OneDimensionalDistribution___str__(self)
2782 r"""__repr__(OneDimensionalDistribution self) -> std::string"""
2783 return _IMP_isd.OneDimensionalDistribution___repr__(self)
2787 return _object_cast_to_OneDimensionalDistribution(o)
2790 def get_type_name(self):
2791 return self.__class__.__name__
2792 def do_show(self, out):
2795 if"IMP::isd" ==
"IMP":
2796 return VersionInfo(self.__module__,
2803 return _object_cast_to_OneDimensionalDistribution(o)
2805 def __disown__(self):
2807 _IMP_isd.disown_OneDimensionalDistribution(self)
2808 return weakref.proxy(self)
2811 r"""do_destroy(OneDimensionalDistribution self)"""
2812 return _IMP_isd.OneDimensionalDistribution_do_destroy(self)
2815 _IMP_isd.OneDimensionalDistribution_swigregister(OneDimensionalDistribution)
2816 class OneDimensionalSufficientDistribution(Distribution):
2817 r"""Proxy of C++ IMP::isd::OneDimensionalSufficientDistribution class."""
2819 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2821 def do_update_sufficient_statistics(self, vs):
2822 r"""do_update_sufficient_statistics(OneDimensionalSufficientDistribution self, IMP::Floats vs)"""
2823 return _IMP_isd.OneDimensionalSufficientDistribution_do_update_sufficient_statistics(self, vs)
2825 def do_get_sufficient_statistics(self):
2826 r"""do_get_sufficient_statistics(OneDimensionalSufficientDistribution self) -> IMP::Floats"""
2827 return _IMP_isd.OneDimensionalSufficientDistribution_do_get_sufficient_statistics(self)
2829 def do_evaluate(self):
2830 r"""do_evaluate(OneDimensionalSufficientDistribution self) -> double"""
2831 return _IMP_isd.OneDimensionalSufficientDistribution_do_evaluate(self)
2833 def do_get_density(self):
2834 r"""do_get_density(OneDimensionalSufficientDistribution self) -> double"""
2835 return _IMP_isd.OneDimensionalSufficientDistribution_do_get_density(self)
2837 def __init__(self, *args):
2838 r"""__init__(OneDimensionalSufficientDistribution self, std::string name="OneDimensionalSufficientDistribution %1%") -> OneDimensionalSufficientDistribution"""
2839 if self.__class__ == OneDimensionalSufficientDistribution:
2843 _IMP_isd.OneDimensionalSufficientDistribution_swiginit(self, _IMP_isd.new_OneDimensionalSufficientDistribution(_self, *args))
2845 if self.__class__ != OneDimensionalSufficientDistribution:
2846 _director_objects.register(self)
2851 def update_sufficient_statistics(self, vs):
2852 r"""update_sufficient_statistics(OneDimensionalSufficientDistribution self, IMP::Floats vs)"""
2853 return _IMP_isd.OneDimensionalSufficientDistribution_update_sufficient_statistics(self, vs)
2855 def get_sufficient_statistics(self):
2856 r"""get_sufficient_statistics(OneDimensionalSufficientDistribution self) -> IMP::Floats"""
2857 return _IMP_isd.OneDimensionalSufficientDistribution_get_sufficient_statistics(self)
2860 r"""evaluate(OneDimensionalSufficientDistribution self) -> double"""
2861 return _IMP_isd.OneDimensionalSufficientDistribution_evaluate(self)
2863 def get_density(self):
2864 r"""get_density(OneDimensionalSufficientDistribution self) -> double"""
2865 return _IMP_isd.OneDimensionalSufficientDistribution_get_density(self)
2867 def get_type_name(self):
2868 r"""get_type_name(OneDimensionalSufficientDistribution self) -> std::string"""
2869 return _IMP_isd.OneDimensionalSufficientDistribution_get_type_name(self)
2872 r"""get_version_info(OneDimensionalSufficientDistribution self) -> VersionInfo"""
2873 return _IMP_isd.OneDimensionalSufficientDistribution_get_version_info(self)
2874 __swig_destroy__ = _IMP_isd.delete_OneDimensionalSufficientDistribution
2877 r"""__str__(OneDimensionalSufficientDistribution self) -> std::string"""
2878 return _IMP_isd.OneDimensionalSufficientDistribution___str__(self)
2881 r"""__repr__(OneDimensionalSufficientDistribution self) -> std::string"""
2882 return _IMP_isd.OneDimensionalSufficientDistribution___repr__(self)
2886 return _object_cast_to_OneDimensionalSufficientDistribution(o)
2889 def get_type_name(self):
2890 return self.__class__.__name__
2891 def do_show(self, out):
2894 if"IMP::isd" ==
"IMP":
2895 return VersionInfo(self.__module__,
2902 return _object_cast_to_OneDimensionalSufficientDistribution(o)
2904 def __disown__(self):
2906 _IMP_isd.disown_OneDimensionalSufficientDistribution(self)
2907 return weakref.proxy(self)
2910 r"""do_destroy(OneDimensionalSufficientDistribution self)"""
2911 return _IMP_isd.OneDimensionalSufficientDistribution_do_destroy(self)
2914 _IMP_isd.OneDimensionalSufficientDistribution_swigregister(OneDimensionalSufficientDistribution)
2915 class FNormal(OneDimensionalSufficientDistribution):
2916 r"""Proxy of C++ IMP::isd::FNormal class."""
2918 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2920 def __init__(self, FA, JA, FM, sigma):
2921 r"""__init__(FNormal self, double FA, double JA, double FM, double sigma) -> FNormal"""
2922 _IMP_isd.FNormal_swiginit(self, _IMP_isd.new_FNormal(FA, JA, FM, sigma))
2924 def update_sufficient_statistics(self, FA):
2925 r"""update_sufficient_statistics(FNormal self, double FA)"""
2926 return _IMP_isd.FNormal_update_sufficient_statistics(self, FA)
2928 def do_update_sufficient_statistics(self, data):
2929 r"""do_update_sufficient_statistics(FNormal self, IMP::Floats data)"""
2930 return _IMP_isd.FNormal_do_update_sufficient_statistics(self, data)
2932 def do_get_sufficient_statistics(self):
2933 r"""do_get_sufficient_statistics(FNormal self) -> IMP::Floats"""
2934 return _IMP_isd.FNormal_do_get_sufficient_statistics(self)
2936 def do_evaluate(self):
2937 r"""do_evaluate(FNormal self) -> double"""
2938 return _IMP_isd.FNormal_do_evaluate(self)
2940 def evaluate_derivative_FA(self):
2941 r"""evaluate_derivative_FA(FNormal self) -> double"""
2942 return _IMP_isd.FNormal_evaluate_derivative_FA(self)
2944 def evaluate_derivative_JA(self):
2945 r"""evaluate_derivative_JA(FNormal self) -> double"""
2946 return _IMP_isd.FNormal_evaluate_derivative_JA(self)
2948 def evaluate_derivative_FM(self):
2949 r"""evaluate_derivative_FM(FNormal self) -> double"""
2950 return _IMP_isd.FNormal_evaluate_derivative_FM(self)
2952 def evaluate_derivative_sigma(self):
2953 r"""evaluate_derivative_sigma(FNormal self) -> double"""
2954 return _IMP_isd.FNormal_evaluate_derivative_sigma(self)
2956 def do_get_density(self):
2957 r"""do_get_density(FNormal self) -> double"""
2958 return _IMP_isd.FNormal_do_get_density(self)
2960 def set_FA(self, f):
2961 r"""set_FA(FNormal self, double f)"""
2962 return _IMP_isd.FNormal_set_FA(self, f)
2964 def set_JA(self, f):
2965 r"""set_JA(FNormal self, double f)"""
2966 return _IMP_isd.FNormal_set_JA(self, f)
2968 def set_FM(self, f):
2969 r"""set_FM(FNormal self, double f)"""
2970 return _IMP_isd.FNormal_set_FM(self, f)
2972 def set_sigma(self, f):
2973 r"""set_sigma(FNormal self, double f)"""
2974 return _IMP_isd.FNormal_set_sigma(self, f)
2975 __swig_destroy__ = _IMP_isd.delete_FNormal
2978 r"""__str__(FNormal self) -> std::string"""
2979 return _IMP_isd.FNormal___str__(self)
2982 r"""__repr__(FNormal self) -> std::string"""
2983 return _IMP_isd.FNormal___repr__(self)
2987 return _object_cast_to_FNormal(o)
2991 _IMP_isd.FNormal_swigregister(FNormal)
2992 class FStudentT(OneDimensionalSufficientDistribution):
2993 r"""Proxy of C++ IMP::isd::FStudentT class."""
2995 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2997 def __init__(self, *args):
2999 __init__(FStudentT self, IMP::Floats FXs, IMP::Floats JXs, double FM, double sigma, double nu, std::string name="FStudentT %1%") -> FStudentT
3000 __init__(FStudentT self, double sumFX, double sumFX2, unsigned int N, double LogJX, double FM, double sigma, double nu, std::string name="FStudentT %1%") -> FStudentT
3002 _IMP_isd.FStudentT_swiginit(self, _IMP_isd.new_FStudentT(*args))
3004 def update_sufficient_statistics(self, FXs, JXs):
3005 r"""update_sufficient_statistics(FStudentT self, IMP::Floats FXs, IMP::Floats JXs)"""
3006 return _IMP_isd.FStudentT_update_sufficient_statistics(self, FXs, JXs)
3008 def evaluate_derivative_Fx(self, Fx):
3009 r"""evaluate_derivative_Fx(FStudentT self, double Fx) -> double"""
3010 return _IMP_isd.FStudentT_evaluate_derivative_Fx(self, Fx)
3012 def evaluate_derivative_FX(self, FXs):
3013 r"""evaluate_derivative_FX(FStudentT self, IMP::Floats const FXs) -> IMP::Floats"""
3014 return _IMP_isd.FStudentT_evaluate_derivative_FX(self, FXs)
3016 def evaluate_derivative_LogJX(self):
3017 r"""evaluate_derivative_LogJX(FStudentT self) -> double"""
3018 return _IMP_isd.FStudentT_evaluate_derivative_LogJX(self)
3020 def evaluate_derivative_FM(self):
3021 r"""evaluate_derivative_FM(FStudentT self) -> double"""
3022 return _IMP_isd.FStudentT_evaluate_derivative_FM(self)
3024 def evaluate_derivative_sigma(self):
3025 r"""evaluate_derivative_sigma(FStudentT self) -> double"""
3026 return _IMP_isd.FStudentT_evaluate_derivative_sigma(self)
3028 def evaluate_derivative_nu(self):
3029 r"""evaluate_derivative_nu(FStudentT self) -> double"""
3030 return _IMP_isd.FStudentT_evaluate_derivative_nu(self)
3032 def update_cached_values(self):
3033 r"""update_cached_values(FStudentT self)"""
3034 return _IMP_isd.FStudentT_update_cached_values(self)
3036 def set_sumFX(self, v):
3037 r"""set_sumFX(FStudentT self, double v)"""
3038 return _IMP_isd.FStudentT_set_sumFX(self, v)
3040 def set_sumFX2(self, v):
3041 r"""set_sumFX2(FStudentT self, double v)"""
3042 return _IMP_isd.FStudentT_set_sumFX2(self, v)
3045 r"""set_N(FStudentT self, unsigned int v)"""
3046 return _IMP_isd.FStudentT_set_N(self, v)
3048 def set_LogJX(self, v):
3049 r"""set_LogJX(FStudentT self, double v)"""
3050 return _IMP_isd.FStudentT_set_LogJX(self, v)
3052 def set_FM(self, v):
3053 r"""set_FM(FStudentT self, double v)"""
3054 return _IMP_isd.FStudentT_set_FM(self, v)
3056 def set_sigma(self, v):
3057 r"""set_sigma(FStudentT self, double v)"""
3058 return _IMP_isd.FStudentT_set_sigma(self, v)
3060 def set_nu(self, v):
3061 r"""set_nu(FStudentT self, double v)"""
3062 return _IMP_isd.FStudentT_set_nu(self, v)
3064 def get_sumFX(self):
3065 r"""get_sumFX(FStudentT self) -> double"""
3066 return _IMP_isd.FStudentT_get_sumFX(self)
3068 def get_sumFX2(self):
3069 r"""get_sumFX2(FStudentT self) -> double"""
3070 return _IMP_isd.FStudentT_get_sumFX2(self)
3073 r"""get_N(FStudentT self) -> unsigned int"""
3074 return _IMP_isd.FStudentT_get_N(self)
3076 def get_LogJX(self):
3077 r"""get_LogJX(FStudentT self) -> double"""
3078 return _IMP_isd.FStudentT_get_LogJX(self)
3081 r"""get_FM(FStudentT self) -> double"""
3082 return _IMP_isd.FStudentT_get_FM(self)
3084 def get_sigma(self):
3085 r"""get_sigma(FStudentT self) -> double"""
3086 return _IMP_isd.FStudentT_get_sigma(self)
3089 r"""get_nu(FStudentT self) -> double"""
3090 return _IMP_isd.FStudentT_get_nu(self)
3091 __swig_destroy__ = _IMP_isd.delete_FStudentT
3094 r"""__str__(FStudentT self) -> std::string"""
3095 return _IMP_isd.FStudentT___str__(self)
3098 r"""__repr__(FStudentT self) -> std::string"""
3099 return _IMP_isd.FStudentT___repr__(self)
3103 return _object_cast_to_FStudentT(o)
3107 _IMP_isd.FStudentT_swigregister(FStudentT)
3109 r"""Proxy of C++ IMP::isd::vonMises class."""
3111 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3113 def __init__(self, x, mu, kappa):
3114 r"""__init__(vonMises self, double x, double mu, double kappa) -> vonMises"""
3115 _IMP_isd.vonMises_swiginit(self, _IMP_isd.new_vonMises(x, mu, kappa))
3118 r"""evaluate(vonMises self) -> double"""
3119 return _IMP_isd.vonMises_evaluate(self)
3121 def evaluate_derivative_x(self):
3122 r"""evaluate_derivative_x(vonMises self) -> double"""
3123 return _IMP_isd.vonMises_evaluate_derivative_x(self)
3125 def evaluate_derivative_mu(self):
3126 r"""evaluate_derivative_mu(vonMises self) -> double"""
3127 return _IMP_isd.vonMises_evaluate_derivative_mu(self)
3129 def evaluate_derivative_kappa(self):
3130 r"""evaluate_derivative_kappa(vonMises self) -> double"""
3131 return _IMP_isd.vonMises_evaluate_derivative_kappa(self)
3134 r"""density(vonMises self) -> double"""
3135 return _IMP_isd.vonMises_density(self)
3138 r"""set_x(vonMises self, double x)"""
3139 return _IMP_isd.vonMises_set_x(self, x)
3141 def set_mu(self, mu):
3142 r"""set_mu(vonMises self, double mu)"""
3143 return _IMP_isd.vonMises_set_mu(self, mu)
3145 def set_kappa(self, kappa):
3146 r"""set_kappa(vonMises self, double kappa)"""
3147 return _IMP_isd.vonMises_set_kappa(self, kappa)
3150 r"""get_version_info(vonMises self) -> VersionInfo"""
3151 return _IMP_isd.vonMises_get_version_info(self)
3152 __swig_destroy__ = _IMP_isd.delete_vonMises
3155 r"""__str__(vonMises self) -> std::string"""
3156 return _IMP_isd.vonMises___str__(self)
3159 r"""__repr__(vonMises self) -> std::string"""
3160 return _IMP_isd.vonMises___repr__(self)
3164 return _object_cast_to_vonMises(o)
3168 _IMP_isd.vonMises_swigregister(vonMises)
3170 r"""Proxy of C++ IMP::isd::vonMisesSufficient class."""
3172 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3174 def __init__(self, *args):
3176 __init__(vonMisesSufficient self, double chi, unsigned int N, double R0, double chiexp, double kappa) -> vonMisesSufficient
3177 __init__(vonMisesSufficient self, double chi, IMP::Floats obs, double kappa) -> vonMisesSufficient
3179 _IMP_isd.vonMisesSufficient_swiginit(self, _IMP_isd.new_vonMisesSufficient(*args))
3182 r"""evaluate(vonMisesSufficient self) -> double"""
3183 return _IMP_isd.vonMisesSufficient_evaluate(self)
3185 def evaluate_derivative_x(self):
3186 r"""evaluate_derivative_x(vonMisesSufficient self) -> double"""
3187 return _IMP_isd.vonMisesSufficient_evaluate_derivative_x(self)
3189 def evaluate_derivative_kappa(self):
3190 r"""evaluate_derivative_kappa(vonMisesSufficient self) -> double"""
3191 return _IMP_isd.vonMisesSufficient_evaluate_derivative_kappa(self)
3194 r"""density(vonMisesSufficient self) -> double"""
3195 return _IMP_isd.vonMisesSufficient_density(self)
3198 r"""get_x(vonMisesSufficient self) -> double"""
3199 return _IMP_isd.vonMisesSufficient_get_x(self)
3202 r"""get_R0(vonMisesSufficient self) -> double"""
3203 return _IMP_isd.vonMisesSufficient_get_R0(self)
3205 def get_chiexp(self):
3206 r"""get_chiexp(vonMisesSufficient self) -> double"""
3207 return _IMP_isd.vonMisesSufficient_get_chiexp(self)
3210 r"""get_N(vonMisesSufficient self) -> double"""
3211 return _IMP_isd.vonMisesSufficient_get_N(self)
3213 def get_kappa(self):
3214 r"""get_kappa(vonMisesSufficient self) -> double"""
3215 return _IMP_isd.vonMisesSufficient_get_kappa(self)
3218 r"""set_x(vonMisesSufficient self, double x)"""
3219 return _IMP_isd.vonMisesSufficient_set_x(self, x)
3221 def set_R0(self, R0):
3222 r"""set_R0(vonMisesSufficient self, double R0)"""
3223 return _IMP_isd.vonMisesSufficient_set_R0(self, R0)
3225 def set_chiexp(self, chiexp):
3226 r"""set_chiexp(vonMisesSufficient self, double chiexp)"""
3227 return _IMP_isd.vonMisesSufficient_set_chiexp(self, chiexp)
3230 r"""set_N(vonMisesSufficient self, unsigned int N)"""
3231 return _IMP_isd.vonMisesSufficient_set_N(self, N)
3233 def set_kappa(self, kappa):
3234 r"""set_kappa(vonMisesSufficient self, double kappa)"""
3235 return _IMP_isd.vonMisesSufficient_set_kappa(self, kappa)
3238 def get_sufficient_statistics(data):
3239 r"""get_sufficient_statistics(IMP::Floats data) -> IMP::Floats"""
3240 return _IMP_isd.vonMisesSufficient_get_sufficient_statistics(data)
3243 r"""get_version_info(vonMisesSufficient self) -> VersionInfo"""
3244 return _IMP_isd.vonMisesSufficient_get_version_info(self)
3245 __swig_destroy__ = _IMP_isd.delete_vonMisesSufficient
3248 r"""__str__(vonMisesSufficient self) -> std::string"""
3249 return _IMP_isd.vonMisesSufficient___str__(self)
3252 r"""__repr__(vonMisesSufficient self) -> std::string"""
3253 return _IMP_isd.vonMisesSufficient___repr__(self)
3257 return _object_cast_to_vonMisesSufficient(o)
3261 _IMP_isd.vonMisesSufficient_swigregister(vonMisesSufficient)
3262 class PenalizedComplexityPrior(OneDimensionalSufficientDistribution):
3263 r"""Proxy of C++ IMP::isd::PenalizedComplexityPrior class."""
3265 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3267 def __init__(self, *args):
3268 r"""__init__(PenalizedComplexityPrior self, double Dxi, double Jxi, double alpha, std::string name="PenalizedComplexityPrior %1%") -> PenalizedComplexityPrior"""
3269 _IMP_isd.PenalizedComplexityPrior_swiginit(self, _IMP_isd.new_PenalizedComplexityPrior(*args))
3271 def update_sufficient_statistics(self, Dxis, Jxis):
3272 r"""update_sufficient_statistics(PenalizedComplexityPrior self, IMP::Floats Dxis, IMP::Floats Jxis)"""
3273 return _IMP_isd.PenalizedComplexityPrior_update_sufficient_statistics(self, Dxis, Jxis)
3275 def evaluate_derivative_Dxi(self):
3276 r"""evaluate_derivative_Dxi(PenalizedComplexityPrior self) -> double"""
3277 return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_Dxi(self)
3279 def evaluate_derivative_Jxi(self):
3280 r"""evaluate_derivative_Jxi(PenalizedComplexityPrior self) -> double"""
3281 return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_Jxi(self)
3283 def evaluate_derivative_alpha(self):
3284 r"""evaluate_derivative_alpha(PenalizedComplexityPrior self) -> double"""
3285 return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_alpha(self)
3287 def evaluate_derivative_xi(self, JJxi):
3288 r"""evaluate_derivative_xi(PenalizedComplexityPrior self, double JJxi) -> double"""
3289 return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_xi(self, JJxi)
3291 def set_Dxi(self, v):
3292 r"""set_Dxi(PenalizedComplexityPrior self, double v)"""
3293 return _IMP_isd.PenalizedComplexityPrior_set_Dxi(self, v)
3295 def set_Jxi(self, v):
3296 r"""set_Jxi(PenalizedComplexityPrior self, double v)"""
3297 return _IMP_isd.PenalizedComplexityPrior_set_Jxi(self, v)
3299 def set_alpha(self, v):
3300 r"""set_alpha(PenalizedComplexityPrior self, double v)"""
3301 return _IMP_isd.PenalizedComplexityPrior_set_alpha(self, v)
3304 r"""get_Dxi(PenalizedComplexityPrior self) -> double"""
3305 return _IMP_isd.PenalizedComplexityPrior_get_Dxi(self)
3308 r"""get_Jxi(PenalizedComplexityPrior self) -> double"""
3309 return _IMP_isd.PenalizedComplexityPrior_get_Jxi(self)
3311 def get_alpha(self):
3312 r"""get_alpha(PenalizedComplexityPrior self) -> double"""
3313 return _IMP_isd.PenalizedComplexityPrior_get_alpha(self)
3314 __swig_destroy__ = _IMP_isd.delete_PenalizedComplexityPrior
3317 r"""__str__(PenalizedComplexityPrior self) -> std::string"""
3318 return _IMP_isd.PenalizedComplexityPrior___str__(self)
3321 r"""__repr__(PenalizedComplexityPrior self) -> std::string"""
3322 return _IMP_isd.PenalizedComplexityPrior___repr__(self)
3326 return _object_cast_to_PenalizedComplexityPrior(o)
3330 _IMP_isd.PenalizedComplexityPrior_swigregister(PenalizedComplexityPrior)
3332 r"""Proxy of C++ IMP::isd::vonMisesKappaJeffreysRestraint class."""
3334 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3336 def __init__(self, m, kappa):
3337 r"""__init__(vonMisesKappaJeffreysRestraint self, Model m, Particle kappa) -> vonMisesKappaJeffreysRestraint"""
3338 _IMP_isd.vonMisesKappaJeffreysRestraint_swiginit(self, _IMP_isd.new_vonMisesKappaJeffreysRestraint(m, kappa))
3341 r"""do_get_inputs(vonMisesKappaJeffreysRestraint self) -> IMP::ModelObjectsTemp"""
3342 return _IMP_isd.vonMisesKappaJeffreysRestraint_do_get_inputs(self)
3345 r"""get_version_info(vonMisesKappaJeffreysRestraint self) -> VersionInfo"""
3346 return _IMP_isd.vonMisesKappaJeffreysRestraint_get_version_info(self)
3347 __swig_destroy__ = _IMP_isd.delete_vonMisesKappaJeffreysRestraint
3349 def get_probability(self):
3350 r"""get_probability(vonMisesKappaJeffreysRestraint self) -> double"""
3351 return _IMP_isd.vonMisesKappaJeffreysRestraint_get_probability(self)
3354 r"""__str__(vonMisesKappaJeffreysRestraint self) -> std::string"""
3355 return _IMP_isd.vonMisesKappaJeffreysRestraint___str__(self)
3358 r"""__repr__(vonMisesKappaJeffreysRestraint self) -> std::string"""
3359 return _IMP_isd.vonMisesKappaJeffreysRestraint___repr__(self)
3363 return _object_cast_to_vonMisesKappaJeffreysRestraint(o)
3367 _IMP_isd.vonMisesKappaJeffreysRestraint_swigregister(vonMisesKappaJeffreysRestraint)
3369 r"""Proxy of C++ IMP::isd::vonMisesKappaConjugateRestraint class."""
3371 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3373 def __init__(self, m, kappa, c=10.0, R0=0.0):
3374 r"""__init__(vonMisesKappaConjugateRestraint self, Model m, Particle kappa, double c=10.0, double R0=0.0) -> vonMisesKappaConjugateRestraint"""
3375 _IMP_isd.vonMisesKappaConjugateRestraint_swiginit(self, _IMP_isd.new_vonMisesKappaConjugateRestraint(m, kappa, c, R0))
3378 r"""do_get_inputs(vonMisesKappaConjugateRestraint self) -> IMP::ModelObjectsTemp"""
3379 return _IMP_isd.vonMisesKappaConjugateRestraint_do_get_inputs(self)
3382 r"""get_version_info(vonMisesKappaConjugateRestraint self) -> VersionInfo"""
3383 return _IMP_isd.vonMisesKappaConjugateRestraint_get_version_info(self)
3384 __swig_destroy__ = _IMP_isd.delete_vonMisesKappaConjugateRestraint
3386 def get_probability(self):
3387 r"""get_probability(vonMisesKappaConjugateRestraint self) -> double"""
3388 return _IMP_isd.vonMisesKappaConjugateRestraint_get_probability(self)
3391 r"""__str__(vonMisesKappaConjugateRestraint self) -> std::string"""
3392 return _IMP_isd.vonMisesKappaConjugateRestraint___str__(self)
3395 r"""__repr__(vonMisesKappaConjugateRestraint self) -> std::string"""
3396 return _IMP_isd.vonMisesKappaConjugateRestraint___repr__(self)
3400 return _object_cast_to_vonMisesKappaConjugateRestraint(o)
3404 _IMP_isd.vonMisesKappaConjugateRestraint_swigregister(vonMisesKappaConjugateRestraint)
3406 r"""Proxy of C++ IMP::isd::NOERestraint class."""
3408 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3410 def __init__(self, m, p0, p1, sigma, gamma, Iexp):
3411 r"""__init__(NOERestraint self, Model m, Particle p0, Particle p1, Particle sigma, Particle gamma, double Iexp) -> NOERestraint"""
3412 _IMP_isd.NOERestraint_swiginit(self, _IMP_isd.new_NOERestraint(m, p0, p1, sigma, gamma, Iexp))
3414 def get_probability(self):
3415 r"""get_probability(NOERestraint self) -> double"""
3416 return _IMP_isd.NOERestraint_get_probability(self)
3419 r"""get_chi(NOERestraint self) -> double"""
3420 return _IMP_isd.NOERestraint_get_chi(self)
3423 r"""do_get_inputs(NOERestraint self) -> IMP::ModelObjectsTemp"""
3424 return _IMP_isd.NOERestraint_do_get_inputs(self)
3427 r"""get_version_info(NOERestraint self) -> VersionInfo"""
3428 return _IMP_isd.NOERestraint_get_version_info(self)
3429 __swig_destroy__ = _IMP_isd.delete_NOERestraint
3432 r"""__str__(NOERestraint self) -> std::string"""
3433 return _IMP_isd.NOERestraint___str__(self)
3436 r"""__repr__(NOERestraint self) -> std::string"""
3437 return _IMP_isd.NOERestraint___repr__(self)
3441 return _object_cast_to_NOERestraint(o)
3445 _IMP_isd.NOERestraint_swigregister(NOERestraint)
3447 r"""Proxy of C++ IMP::isd::GaussianRestraint class."""
3449 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3451 def __init__(self, *args):
3453 __init__(GaussianRestraint self, Particle x, Particle mu, Particle sigma) -> GaussianRestraint
3454 __init__(GaussianRestraint self, double x, Particle mu, Particle sigma) -> GaussianRestraint
3455 __init__(GaussianRestraint self, Particle x, double mu, Particle sigma) -> GaussianRestraint
3456 __init__(GaussianRestraint self, Particle x, Particle mu, double sigma) -> GaussianRestraint
3457 __init__(GaussianRestraint self, double x, double mu, Particle sigma) -> GaussianRestraint
3458 __init__(GaussianRestraint self, Particle x, double mu, double sigma) -> GaussianRestraint
3459 __init__(GaussianRestraint self, double x, Particle mu, double sigma) -> GaussianRestraint
3461 _IMP_isd.GaussianRestraint_swiginit(self, _IMP_isd.new_GaussianRestraint(*args))
3463 def get_probability(self):
3464 r"""get_probability(GaussianRestraint self) -> double"""
3465 return _IMP_isd.GaussianRestraint_get_probability(self)
3468 r"""get_chi(GaussianRestraint self) -> double"""
3469 return _IMP_isd.GaussianRestraint_get_chi(self)
3472 r"""do_get_inputs(GaussianRestraint self) -> IMP::ModelObjectsTemp"""
3473 return _IMP_isd.GaussianRestraint_do_get_inputs(self)
3476 r"""get_version_info(GaussianRestraint self) -> VersionInfo"""
3477 return _IMP_isd.GaussianRestraint_get_version_info(self)
3478 __swig_destroy__ = _IMP_isd.delete_GaussianRestraint
3481 r"""__str__(GaussianRestraint self) -> std::string"""
3482 return _IMP_isd.GaussianRestraint___str__(self)
3485 r"""__repr__(GaussianRestraint self) -> std::string"""
3486 return _IMP_isd.GaussianRestraint___repr__(self)
3490 return _object_cast_to_GaussianRestraint(o)
3494 _IMP_isd.GaussianRestraint_swigregister(GaussianRestraint)
3496 r"""Proxy of C++ IMP::isd::StudentTRestraint class."""
3498 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3500 def __init__(self, *args):
3502 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3503 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3504 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3505 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3506 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3507 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3508 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, double sigma, double nu) -> StudentTRestraint
3509 __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, double sigma, double nu) -> StudentTRestraint
3510 __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3511 __init__(StudentTRestraint self, Model m, double x, double mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3512 __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3513 __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3514 __init__(StudentTRestraint self, Model m, double x, double mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3515 __init__(StudentTRestraint self, Model m, double x, double mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3516 __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, double sigma, double nu) -> StudentTRestraint
3518 _IMP_isd.StudentTRestraint_swiginit(self, _IMP_isd.new_StudentTRestraint(*args))
3520 def get_probability(self):
3521 r"""get_probability(StudentTRestraint self) -> double"""
3522 return _IMP_isd.StudentTRestraint_get_probability(self)
3525 r"""do_get_inputs(StudentTRestraint self) -> IMP::ModelObjectsTemp"""
3526 return _IMP_isd.StudentTRestraint_do_get_inputs(self)
3529 r"""get_version_info(StudentTRestraint self) -> VersionInfo"""
3530 return _IMP_isd.StudentTRestraint_get_version_info(self)
3531 __swig_destroy__ = _IMP_isd.delete_StudentTRestraint
3534 r"""__str__(StudentTRestraint self) -> std::string"""
3535 return _IMP_isd.StudentTRestraint___str__(self)
3538 r"""__repr__(StudentTRestraint self) -> std::string"""
3539 return _IMP_isd.StudentTRestraint___repr__(self)
3543 return _object_cast_to_StudentTRestraint(o)
3547 _IMP_isd.StudentTRestraint_swigregister(StudentTRestraint)
3549 r"""Proxy of C++ IMP::isd::LognormalRestraint class."""
3551 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3553 def __init__(self, *args):
3555 __init__(LognormalRestraint self, Particle x, Particle mu, Particle sigma) -> LognormalRestraint
3556 __init__(LognormalRestraint self, double x, Particle mu, Particle sigma) -> LognormalRestraint
3557 __init__(LognormalRestraint self, Particle x, double mu, Particle sigma) -> LognormalRestraint
3558 __init__(LognormalRestraint self, Particle x, Particle mu, double sigma) -> LognormalRestraint
3559 __init__(LognormalRestraint self, double x, double mu, Particle sigma) -> LognormalRestraint
3560 __init__(LognormalRestraint self, Particle x, double mu, double sigma) -> LognormalRestraint
3561 __init__(LognormalRestraint self, double x, Particle mu, double sigma) -> LognormalRestraint
3563 _IMP_isd.LognormalRestraint_swiginit(self, _IMP_isd.new_LognormalRestraint(*args))
3565 def get_probability(self):
3566 r"""get_probability(LognormalRestraint self) -> double"""
3567 return _IMP_isd.LognormalRestraint_get_probability(self)
3570 r"""get_chi(LognormalRestraint self) -> double"""
3571 return _IMP_isd.LognormalRestraint_get_chi(self)
3574 r"""do_get_inputs(LognormalRestraint self) -> IMP::ModelObjectsTemp"""
3575 return _IMP_isd.LognormalRestraint_do_get_inputs(self)
3578 r"""get_version_info(LognormalRestraint self) -> VersionInfo"""
3579 return _IMP_isd.LognormalRestraint_get_version_info(self)
3580 __swig_destroy__ = _IMP_isd.delete_LognormalRestraint
3583 r"""__str__(LognormalRestraint self) -> std::string"""
3584 return _IMP_isd.LognormalRestraint___str__(self)
3587 r"""__repr__(LognormalRestraint self) -> std::string"""
3588 return _IMP_isd.LognormalRestraint___repr__(self)
3592 return _object_cast_to_LognormalRestraint(o)
3596 _IMP_isd.LognormalRestraint_swigregister(LognormalRestraint)
3598 r"""Proxy of C++ IMP::isd::LognormalAmbiguousRestraint class."""
3600 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3602 def __init__(self, p1, p2, ki, sigmaG):
3603 r"""__init__(LognormalAmbiguousRestraint self, Particle p1, Particle p2, Particle ki, Particle sigmaG) -> LognormalAmbiguousRestraint"""
3604 _IMP_isd.LognormalAmbiguousRestraint_swiginit(self, _IMP_isd.new_LognormalAmbiguousRestraint(p1, p2, ki, sigmaG))
3606 def add_contribution(self, lexp, omega):
3607 r"""add_contribution(LognormalAmbiguousRestraint self, double lexp, Particle omega)"""
3608 return _IMP_isd.LognormalAmbiguousRestraint_add_contribution(self, lexp, omega)
3610 def get_number_of_contributions(self):
3611 r"""get_number_of_contributions(LognormalAmbiguousRestraint self) -> unsigned int"""
3612 return _IMP_isd.LognormalAmbiguousRestraint_get_number_of_contributions(self)
3614 def draw_k_from_posterior(self, kt):
3615 r"""draw_k_from_posterior(LognormalAmbiguousRestraint self, double kt)"""
3616 return _IMP_isd.LognormalAmbiguousRestraint_draw_k_from_posterior(self, kt)
3618 def get_probability(self):
3619 r"""get_probability(LognormalAmbiguousRestraint self) -> double"""
3620 return _IMP_isd.LognormalAmbiguousRestraint_get_probability(self)
3623 r"""do_get_inputs(LognormalAmbiguousRestraint self) -> IMP::ModelObjectsTemp"""
3624 return _IMP_isd.LognormalAmbiguousRestraint_do_get_inputs(self)
3627 r"""get_version_info(LognormalAmbiguousRestraint self) -> VersionInfo"""
3628 return _IMP_isd.LognormalAmbiguousRestraint_get_version_info(self)
3629 __swig_destroy__ = _IMP_isd.delete_LognormalAmbiguousRestraint
3632 r"""__str__(LognormalAmbiguousRestraint self) -> std::string"""
3633 return _IMP_isd.LognormalAmbiguousRestraint___str__(self)
3636 r"""__repr__(LognormalAmbiguousRestraint self) -> std::string"""
3637 return _IMP_isd.LognormalAmbiguousRestraint___repr__(self)
3641 return _object_cast_to_LognormalAmbiguousRestraint(o)
3645 _IMP_isd.LognormalAmbiguousRestraint_swigregister(LognormalAmbiguousRestraint)
3647 r"""Proxy of C++ IMP::isd::AmbiguousNOERestraint class."""
3649 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3651 def __init__(self, *args):
3653 __init__(AmbiguousNOERestraint self, Model m, PairContainer pc, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor gamma, double Iexp) -> AmbiguousNOERestraint
3654 __init__(AmbiguousNOERestraint self) -> AmbiguousNOERestraint
3656 _IMP_isd.AmbiguousNOERestraint_swiginit(self, _IMP_isd.new_AmbiguousNOERestraint(*args))
3658 def get_probability(self):
3659 r"""get_probability(AmbiguousNOERestraint self) -> double"""
3660 return _IMP_isd.AmbiguousNOERestraint_get_probability(self)
3663 r"""get_chi(AmbiguousNOERestraint self) -> double"""
3664 return _IMP_isd.AmbiguousNOERestraint_get_chi(self)
3667 r"""do_get_inputs(AmbiguousNOERestraint self) -> IMP::ModelObjectsTemp"""
3668 return _IMP_isd.AmbiguousNOERestraint_do_get_inputs(self)
3671 r"""get_version_info(AmbiguousNOERestraint self) -> VersionInfo"""
3672 return _IMP_isd.AmbiguousNOERestraint_get_version_info(self)
3673 __swig_destroy__ = _IMP_isd.delete_AmbiguousNOERestraint
3676 r"""__str__(AmbiguousNOERestraint self) -> std::string"""
3677 return _IMP_isd.AmbiguousNOERestraint___str__(self)
3680 r"""__repr__(AmbiguousNOERestraint self) -> std::string"""
3681 return _IMP_isd.AmbiguousNOERestraint___repr__(self)
3685 return _object_cast_to_AmbiguousNOERestraint(o)
3688 def _get_as_binary(self):
3689 r"""_get_as_binary(AmbiguousNOERestraint self) -> PyObject *"""
3690 return _IMP_isd.AmbiguousNOERestraint__get_as_binary(self)
3692 def _set_from_binary(self, p):
3693 r"""_set_from_binary(AmbiguousNOERestraint self, PyObject * p)"""
3694 return _IMP_isd.AmbiguousNOERestraint__set_from_binary(self, p)
3696 def __getstate__(self):
3697 p = self._get_as_binary()
3698 if len(self.__dict__) > 1:
3699 d = self.__dict__.copy()
3704 def __setstate__(self, p):
3705 if not hasattr(self,
'this'):
3707 if isinstance(p, tuple):
3709 self.__dict__.update(d)
3710 return self._set_from_binary(p)
3714 _IMP_isd.AmbiguousNOERestraint_swigregister(AmbiguousNOERestraint)
3716 r"""Proxy of C++ IMP::isd::MarginalNOERestraint class."""
3718 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3720 def __init__(self, m):
3721 r"""__init__(MarginalNOERestraint self, Model m) -> MarginalNOERestraint"""
3722 _IMP_isd.MarginalNOERestraint_swiginit(self, _IMP_isd.new_MarginalNOERestraint(m))
3724 def add_contribution(self, *args):
3726 add_contribution(MarginalNOERestraint self, Particle p1, Particle p2, double Iexp)
3727 add_contribution(MarginalNOERestraint self, PairContainer pc, double Iexp)
3729 return _IMP_isd.MarginalNOERestraint_add_contribution(self, *args)
3731 def get_log_gammahat(self):
3732 r"""get_log_gammahat(MarginalNOERestraint self) -> double"""
3733 return _IMP_isd.MarginalNOERestraint_get_log_gammahat(self)
3736 r"""get_SS(MarginalNOERestraint self) -> double"""
3737 return _IMP_isd.MarginalNOERestraint_get_SS(self)
3739 def get_number_of_contributions(self):
3740 r"""get_number_of_contributions(MarginalNOERestraint self) -> unsigned int"""
3741 return _IMP_isd.MarginalNOERestraint_get_number_of_contributions(self)
3743 def get_probability(self):
3744 r"""get_probability(MarginalNOERestraint self) -> double"""
3745 return _IMP_isd.MarginalNOERestraint_get_probability(self)
3748 r"""do_get_inputs(MarginalNOERestraint self) -> IMP::ModelObjectsTemp"""
3749 return _IMP_isd.MarginalNOERestraint_do_get_inputs(self)
3752 r"""get_version_info(MarginalNOERestraint self) -> VersionInfo"""
3753 return _IMP_isd.MarginalNOERestraint_get_version_info(self)
3754 __swig_destroy__ = _IMP_isd.delete_MarginalNOERestraint
3757 r"""__str__(MarginalNOERestraint self) -> std::string"""
3758 return _IMP_isd.MarginalNOERestraint___str__(self)
3761 r"""__repr__(MarginalNOERestraint self) -> std::string"""
3762 return _IMP_isd.MarginalNOERestraint___repr__(self)
3766 return _object_cast_to_MarginalNOERestraint(o)
3770 _IMP_isd.MarginalNOERestraint_swigregister(MarginalNOERestraint)
3772 r"""Proxy of C++ IMP::isd::MarginalHBondRestraint class."""
3774 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3776 def __init__(self, m):
3777 r"""__init__(MarginalHBondRestraint self, Model m) -> MarginalHBondRestraint"""
3778 _IMP_isd.MarginalHBondRestraint_swiginit(self, _IMP_isd.new_MarginalHBondRestraint(m))
3780 def add_contribution(self, *args):
3782 add_contribution(MarginalHBondRestraint self, Particle p1, Particle p2, double Iexp)
3783 add_contribution(MarginalHBondRestraint self, PairContainer pc, double Iexp)
3785 return _IMP_isd.MarginalHBondRestraint_add_contribution(self, *args)
3787 def get_logsquares(self):
3788 r"""get_logsquares(MarginalHBondRestraint self) -> double"""
3789 return _IMP_isd.MarginalHBondRestraint_get_logsquares(self)
3791 def get_number_of_contributions(self):
3792 r"""get_number_of_contributions(MarginalHBondRestraint self) -> unsigned int"""
3793 return _IMP_isd.MarginalHBondRestraint_get_number_of_contributions(self)
3795 def get_probability(self):
3796 r"""get_probability(MarginalHBondRestraint self) -> double"""
3797 return _IMP_isd.MarginalHBondRestraint_get_probability(self)
3800 r"""do_get_inputs(MarginalHBondRestraint self) -> IMP::ModelObjectsTemp"""
3801 return _IMP_isd.MarginalHBondRestraint_do_get_inputs(self)
3804 r"""get_version_info(MarginalHBondRestraint self) -> VersionInfo"""
3805 return _IMP_isd.MarginalHBondRestraint_get_version_info(self)
3806 __swig_destroy__ = _IMP_isd.delete_MarginalHBondRestraint
3809 r"""__str__(MarginalHBondRestraint self) -> std::string"""
3810 return _IMP_isd.MarginalHBondRestraint___str__(self)
3813 r"""__repr__(MarginalHBondRestraint self) -> std::string"""
3814 return _IMP_isd.MarginalHBondRestraint___repr__(self)
3818 return _object_cast_to_MarginalHBondRestraint(o)
3822 _IMP_isd.MarginalHBondRestraint_swigregister(MarginalHBondRestraint)
3824 r"""Proxy of C++ IMP::isd::TALOSRestraint class."""
3826 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3828 def __init__(self, *args):
3830 __init__(TALOSRestraint self, Model m, IMP::Particles p, IMP::Floats data, Particle kappa) -> TALOSRestraint
3831 __init__(TALOSRestraint self, Model m, Particle p1, Particle p2, Particle p3, Particle p4, IMP::Floats data, Particle kappa) -> TALOSRestraint
3832 __init__(TALOSRestraint self, Model m, IMP::Particles p, unsigned int N, double R0, double chiexp, Particle kappa) -> TALOSRestraint
3833 __init__(TALOSRestraint self, Model m, Particle p1, Particle p2, Particle p3, Particle p4, unsigned int N, double R0, double chiexp, Particle kappa) -> TALOSRestraint
3835 _IMP_isd.TALOSRestraint_swiginit(self, _IMP_isd.new_TALOSRestraint(*args))
3837 def get_probability(self):
3838 r"""get_probability(TALOSRestraint self) -> double"""
3839 return _IMP_isd.TALOSRestraint_get_probability(self)
3842 r"""get_R0(TALOSRestraint self) -> double"""
3843 return _IMP_isd.TALOSRestraint_get_R0(self)
3845 def get_chiexp(self):
3846 r"""get_chiexp(TALOSRestraint self) -> double"""
3847 return _IMP_isd.TALOSRestraint_get_chiexp(self)
3850 r"""do_get_inputs(TALOSRestraint self) -> IMP::ModelObjectsTemp"""
3851 return _IMP_isd.TALOSRestraint_do_get_inputs(self)
3854 r"""get_version_info(TALOSRestraint self) -> VersionInfo"""
3855 return _IMP_isd.TALOSRestraint_get_version_info(self)
3856 __swig_destroy__ = _IMP_isd.delete_TALOSRestraint
3859 r"""__str__(TALOSRestraint self) -> std::string"""
3860 return _IMP_isd.TALOSRestraint___str__(self)
3863 r"""__repr__(TALOSRestraint self) -> std::string"""
3864 return _IMP_isd.TALOSRestraint___repr__(self)
3868 return _object_cast_to_TALOSRestraint(o)
3872 _IMP_isd.TALOSRestraint_swigregister(TALOSRestraint)
3874 r"""Proxy of C++ IMP::isd::RepulsiveDistancePairScore class."""
3876 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3878 def __init__(self, d0, k):
3879 r"""__init__(RepulsiveDistancePairScore self, double d0, double k) -> RepulsiveDistancePairScore"""
3880 _IMP_isd.RepulsiveDistancePairScore_swiginit(self, _IMP_isd.new_RepulsiveDistancePairScore(d0, k))
3882 def get_rest_length(self):
3883 r"""get_rest_length(RepulsiveDistancePairScore self) -> double"""
3884 return _IMP_isd.RepulsiveDistancePairScore_get_rest_length(self)
3886 def get_stiffness(self):
3887 r"""get_stiffness(RepulsiveDistancePairScore self) -> double"""
3888 return _IMP_isd.RepulsiveDistancePairScore_get_stiffness(self)
3891 r"""do_get_inputs(RepulsiveDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3892 return _IMP_isd.RepulsiveDistancePairScore_do_get_inputs(self, m, pis)
3895 r"""get_version_info(RepulsiveDistancePairScore self) -> VersionInfo"""
3896 return _IMP_isd.RepulsiveDistancePairScore_get_version_info(self)
3897 __swig_destroy__ = _IMP_isd.delete_RepulsiveDistancePairScore
3900 r"""__str__(RepulsiveDistancePairScore self) -> std::string"""
3901 return _IMP_isd.RepulsiveDistancePairScore___str__(self)
3904 r"""__repr__(RepulsiveDistancePairScore self) -> std::string"""
3905 return _IMP_isd.RepulsiveDistancePairScore___repr__(self)
3909 return _object_cast_to_RepulsiveDistancePairScore(o)
3913 _IMP_isd.RepulsiveDistancePairScore_swigregister(RepulsiveDistancePairScore)
3915 r"""Proxy of C++ IMP::isd::AmbiguousRestraint class."""
3917 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3919 def __init__(self, *args):
3921 __init__(AmbiguousRestraint self, Model m, int d, Restraint r0, Restraint r1) -> AmbiguousRestraint
3922 __init__(AmbiguousRestraint self, Model m, int d, IMP::Restraints rs) -> AmbiguousRestraint
3923 __init__(AmbiguousRestraint self) -> AmbiguousRestraint
3925 _IMP_isd.AmbiguousRestraint_swiginit(self, _IMP_isd.new_AmbiguousRestraint(*args))
3927 def get_probability(self):
3928 r"""get_probability(AmbiguousRestraint self) -> double"""
3929 return _IMP_isd.AmbiguousRestraint_get_probability(self)
3932 r"""do_get_inputs(AmbiguousRestraint self) -> IMP::ModelObjectsTemp"""
3933 return _IMP_isd.AmbiguousRestraint_do_get_inputs(self)
3936 r"""get_version_info(AmbiguousRestraint self) -> VersionInfo"""
3937 return _IMP_isd.AmbiguousRestraint_get_version_info(self)
3938 __swig_destroy__ = _IMP_isd.delete_AmbiguousRestraint
3941 r"""__str__(AmbiguousRestraint self) -> std::string"""
3942 return _IMP_isd.AmbiguousRestraint___str__(self)
3945 r"""__repr__(AmbiguousRestraint self) -> std::string"""
3946 return _IMP_isd.AmbiguousRestraint___repr__(self)
3950 return _object_cast_to_AmbiguousRestraint(o)
3953 def _get_as_binary(self):
3954 r"""_get_as_binary(AmbiguousRestraint self) -> PyObject *"""
3955 return _IMP_isd.AmbiguousRestraint__get_as_binary(self)
3957 def _set_from_binary(self, p):
3958 r"""_set_from_binary(AmbiguousRestraint self, PyObject * p)"""
3959 return _IMP_isd.AmbiguousRestraint__set_from_binary(self, p)
3961 def __getstate__(self):
3962 p = self._get_as_binary()
3963 if len(self.__dict__) > 1:
3964 d = self.__dict__.copy()
3969 def __setstate__(self, p):
3970 if not hasattr(self,
'this'):
3972 if isinstance(p, tuple):
3974 self.__dict__.update(d)
3975 return self._set_from_binary(p)
3979 _IMP_isd.AmbiguousRestraint_swigregister(AmbiguousRestraint)
3980 IMP_ISD_UNIVARIATE_FUNCTIONS_MINIMUM = _IMP_isd.IMP_ISD_UNIVARIATE_FUNCTIONS_MINIMUM
3983 r"""Proxy of C++ IMP::isd::UnivariateFunction class."""
3985 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3987 def __init__(self, *args, **kwargs):
3988 raise AttributeError(
"No constructor defined - class is abstract")
3990 def __call__(self, *args):
3992 __call__(UnivariateFunction self, IMP::Floats const & x) -> IMP::Floats
3993 __call__(UnivariateFunction self, IMP::FloatsList const & xlist) -> Eigen::VectorXd
3994 __call__(UnivariateFunction self, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
3996 return _IMP_isd.UnivariateFunction___call__(self, *args)
3998 def has_changed(self):
3999 r"""has_changed(UnivariateFunction self) -> bool"""
4000 return _IMP_isd.UnivariateFunction_has_changed(self)
4003 r"""update(UnivariateFunction self)"""
4004 return _IMP_isd.UnivariateFunction_update(self)
4006 def add_to_derivatives(self, x, accum):
4007 r"""add_to_derivatives(UnivariateFunction self, IMP::Floats const & x, DerivativeAccumulator accum)"""
4008 return _IMP_isd.UnivariateFunction_add_to_derivatives(self, x, accum)
4010 def add_to_particle_derivative(self, particle_no, value, accum):
4011 r"""add_to_particle_derivative(UnivariateFunction self, unsigned int particle_no, double value, DerivativeAccumulator accum)"""
4012 return _IMP_isd.UnivariateFunction_add_to_particle_derivative(self, particle_no, value, accum)
4014 def get_derivative_vector(self, particle_no, xlist):
4015 r"""get_derivative_vector(UnivariateFunction self, unsigned int particle_no, IMP::FloatsList const & xlist) -> Eigen::VectorXd"""
4016 return _IMP_isd.UnivariateFunction_get_derivative_vector(self, particle_no, xlist)
4018 def get_derivative_matrix(self, xlist, stupid):
4019 r"""get_derivative_matrix(UnivariateFunction self, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList"""
4020 return _IMP_isd.UnivariateFunction_get_derivative_matrix(self, xlist, stupid)
4022 def get_second_derivative_vector(self, *args):
4024 get_second_derivative_vector(UnivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4025 get_second_derivative_vector(UnivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4027 return _IMP_isd.UnivariateFunction_get_second_derivative_vector(self, *args)
4029 def get_ndims_x(self):
4030 r"""get_ndims_x(UnivariateFunction self) -> unsigned int"""
4031 return _IMP_isd.UnivariateFunction_get_ndims_x(self)
4033 def get_ndims_y(self):
4034 r"""get_ndims_y(UnivariateFunction self) -> unsigned int"""
4035 return _IMP_isd.UnivariateFunction_get_ndims_y(self)
4037 def get_number_of_particles(self):
4038 r"""get_number_of_particles(UnivariateFunction self) -> unsigned int"""
4039 return _IMP_isd.UnivariateFunction_get_number_of_particles(self)
4041 def get_particle_is_optimized(self, particle_no):
4042 r"""get_particle_is_optimized(UnivariateFunction self, unsigned int particle_no) -> bool"""
4043 return _IMP_isd.UnivariateFunction_get_particle_is_optimized(self, particle_no)
4045 def get_number_of_optimized_particles(self):
4046 r"""get_number_of_optimized_particles(UnivariateFunction self) -> unsigned int"""
4047 return _IMP_isd.UnivariateFunction_get_number_of_optimized_particles(self)
4050 r"""get_inputs(UnivariateFunction self) -> IMP::ModelObjectsTemp"""
4051 return _IMP_isd.UnivariateFunction_get_inputs(self)
4052 __swig_destroy__ = _IMP_isd.delete_UnivariateFunction
4055 r"""__str__(UnivariateFunction self) -> std::string"""
4056 return _IMP_isd.UnivariateFunction___str__(self)
4059 r"""__repr__(UnivariateFunction self) -> std::string"""
4060 return _IMP_isd.UnivariateFunction___repr__(self)
4064 return _object_cast_to_UnivariateFunction(o)
4068 _IMP_isd.UnivariateFunction_swigregister(UnivariateFunction)
4069 class Linear1DFunction(UnivariateFunction):
4070 r"""Proxy of C++ IMP::isd::Linear1DFunction class."""
4072 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4074 def __init__(self, a, b):
4075 r"""__init__(Linear1DFunction self, Particle a, Particle b) -> Linear1DFunction"""
4076 _IMP_isd.Linear1DFunction_swiginit(self, _IMP_isd.new_Linear1DFunction(a, b))
4078 def __call__(self, *args):
4080 __call__(Linear1DFunction self, IMP::Floats const & x) -> IMP::Floats
4081 __call__(Linear1DFunction self, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4082 __call__(Linear1DFunction self, IMP::FloatsList const & xlist, bool arg3) -> IMP::FloatsList
4084 return _IMP_isd.Linear1DFunction___call__(self, *args)
4086 def get_second_derivative_vector(self, *args):
4088 get_second_derivative_vector(Linear1DFunction self, unsigned int arg2, unsigned int arg3, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4089 get_second_derivative_vector(Linear1DFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool arg5) -> IMP::FloatsList
4091 return _IMP_isd.Linear1DFunction_get_second_derivative_vector(self, *args)
4094 r"""get_version_info(Linear1DFunction self) -> VersionInfo"""
4095 return _IMP_isd.Linear1DFunction_get_version_info(self)
4096 __swig_destroy__ = _IMP_isd.delete_Linear1DFunction
4099 r"""__str__(Linear1DFunction self) -> std::string"""
4100 return _IMP_isd.Linear1DFunction___str__(self)
4103 r"""__repr__(Linear1DFunction self) -> std::string"""
4104 return _IMP_isd.Linear1DFunction___repr__(self)
4108 return _object_cast_to_Linear1DFunction(o)
4112 _IMP_isd.Linear1DFunction_swigregister(Linear1DFunction)
4113 class GeneralizedGuinierPorodFunction(UnivariateFunction):
4114 r"""Proxy of C++ IMP::isd::GeneralizedGuinierPorodFunction class."""
4116 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4118 def __init__(self, G, Rg, d, s, A):
4119 r"""__init__(GeneralizedGuinierPorodFunction self, Particle G, Particle Rg, Particle d, Particle s, Particle A) -> GeneralizedGuinierPorodFunction"""
4120 _IMP_isd.GeneralizedGuinierPorodFunction_swiginit(self, _IMP_isd.new_GeneralizedGuinierPorodFunction(G, Rg, d, s, A))
4122 def __call__(self, *args):
4124 __call__(GeneralizedGuinierPorodFunction self, IMP::Floats const & x) -> IMP::Floats
4125 __call__(GeneralizedGuinierPorodFunction self, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4126 __call__(GeneralizedGuinierPorodFunction self, IMP::FloatsList const & xlist, bool arg3) -> IMP::FloatsList
4128 return _IMP_isd.GeneralizedGuinierPorodFunction___call__(self, *args)
4130 def get_second_derivative_vector(self, *args):
4132 get_second_derivative_vector(GeneralizedGuinierPorodFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4133 get_second_derivative_vector(GeneralizedGuinierPorodFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool arg5) -> IMP::FloatsList
4135 return _IMP_isd.GeneralizedGuinierPorodFunction_get_second_derivative_vector(self, *args)
4138 r"""get_version_info(GeneralizedGuinierPorodFunction self) -> VersionInfo"""
4139 return _IMP_isd.GeneralizedGuinierPorodFunction_get_version_info(self)
4140 __swig_destroy__ = _IMP_isd.delete_GeneralizedGuinierPorodFunction
4143 r"""__str__(GeneralizedGuinierPorodFunction self) -> std::string"""
4144 return _IMP_isd.GeneralizedGuinierPorodFunction___str__(self)
4147 r"""__repr__(GeneralizedGuinierPorodFunction self) -> std::string"""
4148 return _IMP_isd.GeneralizedGuinierPorodFunction___repr__(self)
4152 return _object_cast_to_GeneralizedGuinierPorodFunction(o)
4156 _IMP_isd.GeneralizedGuinierPorodFunction_swigregister(GeneralizedGuinierPorodFunction)
4157 IMP_ISD_BIVARIATE_FUNCTIONS_MINIMUM = _IMP_isd.IMP_ISD_BIVARIATE_FUNCTIONS_MINIMUM
4160 r"""Proxy of C++ IMP::isd::BivariateFunction class."""
4162 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4164 def __init__(self, *args, **kwargs):
4165 raise AttributeError(
"No constructor defined - class is abstract")
4167 def __call__(self, *args):
4169 __call__(BivariateFunction self, IMP::Floats const & x1, IMP::Floats const & x2) -> IMP::Floats
4170 __call__(BivariateFunction self, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4171 __call__(BivariateFunction self, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4173 return _IMP_isd.BivariateFunction___call__(self, *args)
4175 def has_changed(self):
4176 r"""has_changed(BivariateFunction self) -> bool"""
4177 return _IMP_isd.BivariateFunction_has_changed(self)
4180 r"""update(BivariateFunction self)"""
4181 return _IMP_isd.BivariateFunction_update(self)
4183 def add_to_derivatives(self, x1, x2, accum):
4184 r"""add_to_derivatives(BivariateFunction self, IMP::Floats const & x1, IMP::Floats const & x2, DerivativeAccumulator accum)"""
4185 return _IMP_isd.BivariateFunction_add_to_derivatives(self, x1, x2, accum)
4187 def add_to_particle_derivative(self, particle_no, value, accum):
4188 r"""add_to_particle_derivative(BivariateFunction self, unsigned int particle_no, double value, DerivativeAccumulator accum)"""
4189 return _IMP_isd.BivariateFunction_add_to_particle_derivative(self, particle_no, value, accum)
4191 def get_derivative_matrix(self, *args):
4193 get_derivative_matrix(BivariateFunction self, unsigned int particle_no, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4194 get_derivative_matrix(BivariateFunction self, unsigned int particle_no, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4196 return _IMP_isd.BivariateFunction_get_derivative_matrix(self, *args)
4198 def get_second_derivative_matrix(self, *args):
4200 get_second_derivative_matrix(BivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4201 get_second_derivative_matrix(BivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4203 return _IMP_isd.BivariateFunction_get_second_derivative_matrix(self, *args)
4205 def get_ndims_x1(self):
4206 r"""get_ndims_x1(BivariateFunction self) -> unsigned int"""
4207 return _IMP_isd.BivariateFunction_get_ndims_x1(self)
4209 def get_ndims_x2(self):
4210 r"""get_ndims_x2(BivariateFunction self) -> unsigned int"""
4211 return _IMP_isd.BivariateFunction_get_ndims_x2(self)
4213 def get_ndims_y(self):
4214 r"""get_ndims_y(BivariateFunction self) -> unsigned int"""
4215 return _IMP_isd.BivariateFunction_get_ndims_y(self)
4217 def get_number_of_particles(self):
4218 r"""get_number_of_particles(BivariateFunction self) -> unsigned int"""
4219 return _IMP_isd.BivariateFunction_get_number_of_particles(self)
4221 def get_particle_is_optimized(self, particle_no):
4222 r"""get_particle_is_optimized(BivariateFunction self, unsigned int particle_no) -> bool"""
4223 return _IMP_isd.BivariateFunction_get_particle_is_optimized(self, particle_no)
4225 def get_number_of_optimized_particles(self):
4226 r"""get_number_of_optimized_particles(BivariateFunction self) -> unsigned int"""
4227 return _IMP_isd.BivariateFunction_get_number_of_optimized_particles(self)
4230 r"""get_inputs(BivariateFunction self) -> IMP::ModelObjectsTemp"""
4231 return _IMP_isd.BivariateFunction_get_inputs(self)
4232 __swig_destroy__ = _IMP_isd.delete_BivariateFunction
4235 r"""__str__(BivariateFunction self) -> std::string"""
4236 return _IMP_isd.BivariateFunction___str__(self)
4239 r"""__repr__(BivariateFunction self) -> std::string"""
4240 return _IMP_isd.BivariateFunction___repr__(self)
4244 return _object_cast_to_BivariateFunction(o)
4248 _IMP_isd.BivariateFunction_swigregister(BivariateFunction)
4249 class Covariance1DFunction(BivariateFunction):
4250 r"""Proxy of C++ IMP::isd::Covariance1DFunction class."""
4252 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4254 def __init__(self, tau, ilambda, alpha=2.0, jitter=0.0, cutoff=1e-7):
4255 r"""__init__(Covariance1DFunction self, Particle tau, Particle ilambda, double alpha=2.0, double jitter=0.0, double cutoff=1e-7) -> Covariance1DFunction"""
4256 _IMP_isd.Covariance1DFunction_swiginit(self, _IMP_isd.new_Covariance1DFunction(tau, ilambda, alpha, jitter, cutoff))
4258 def __call__(self, *args):
4260 __call__(Covariance1DFunction self, IMP::Floats const & x1, IMP::Floats const & x2) -> IMP::Floats
4261 __call__(Covariance1DFunction self, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4262 __call__(Covariance1DFunction self, IMP::FloatsList const & xlist, bool arg3) -> IMP::FloatsList
4264 return _IMP_isd.Covariance1DFunction___call__(self, *args)
4266 def get_derivative_matrix(self, *args):
4268 get_derivative_matrix(Covariance1DFunction self, unsigned int particle_no, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4269 get_derivative_matrix(Covariance1DFunction self, unsigned int particle_no, IMP::FloatsList const & xlist, bool arg4) -> IMP::FloatsList
4271 return _IMP_isd.Covariance1DFunction_get_derivative_matrix(self, *args)
4273 def get_second_derivative_matrix(self, *args):
4275 get_second_derivative_matrix(Covariance1DFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4276 get_second_derivative_matrix(Covariance1DFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool arg5) -> IMP::FloatsList
4278 return _IMP_isd.Covariance1DFunction_get_second_derivative_matrix(self, *args)
4281 r"""get_version_info(Covariance1DFunction self) -> VersionInfo"""
4282 return _IMP_isd.Covariance1DFunction_get_version_info(self)
4283 __swig_destroy__ = _IMP_isd.delete_Covariance1DFunction
4286 r"""__str__(Covariance1DFunction self) -> std::string"""
4287 return _IMP_isd.Covariance1DFunction___str__(self)
4290 r"""__repr__(Covariance1DFunction self) -> std::string"""
4291 return _IMP_isd.Covariance1DFunction___repr__(self)
4295 return _object_cast_to_Covariance1DFunction(o)
4299 _IMP_isd.Covariance1DFunction_swigregister(Covariance1DFunction)
4300 class GaussianProcessInterpolation(
IMP.Object):
4301 r"""Proxy of C++ IMP::isd::GaussianProcessInterpolation class."""
4303 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4305 def __init__(self, x, sample_mean, sample_std, n_obs, mean_function, covariance_function, sigma, sparse_cutoff=1e-7):
4306 r"""__init__(GaussianProcessInterpolation self, IMP::FloatsList x, IMP::Floats sample_mean, IMP::Floats sample_std, unsigned int n_obs, UnivariateFunction mean_function, BivariateFunction covariance_function, Particle sigma, double sparse_cutoff=1e-7) -> GaussianProcessInterpolation"""
4307 _IMP_isd.GaussianProcessInterpolation_swiginit(self, _IMP_isd.new_GaussianProcessInterpolation(x, sample_mean, sample_std, n_obs, mean_function, covariance_function, sigma, sparse_cutoff))
4309 def get_posterior_mean(self, x):
4310 r"""get_posterior_mean(GaussianProcessInterpolation self, IMP::Floats x) -> double"""
4311 return _IMP_isd.GaussianProcessInterpolation_get_posterior_mean(self, x)
4313 def get_posterior_covariance(self, x1, x2):
4314 r"""get_posterior_covariance(GaussianProcessInterpolation self, IMP::Floats x1, IMP::Floats x2) -> double"""
4315 return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance(self, x1, x2)
4317 def get_posterior_covariance_matrix(self, x, arg3):
4318 r"""get_posterior_covariance_matrix(GaussianProcessInterpolation self, IMP::FloatsList x, bool arg3) -> IMP::FloatsList"""
4319 return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance_matrix(self, x, arg3)
4321 def get_posterior_covariance_derivative(self, x, arg3):
4322 r"""get_posterior_covariance_derivative(GaussianProcessInterpolation self, IMP::Floats x, bool arg3) -> IMP::Floats"""
4323 return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance_derivative(self, x, arg3)
4325 def get_posterior_covariance_hessian(self, x, arg3):
4326 r"""get_posterior_covariance_hessian(GaussianProcessInterpolation self, IMP::Floats x, bool arg3) -> IMP::FloatsList"""
4327 return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance_hessian(self, x, arg3)
4330 r"""get_inputs(GaussianProcessInterpolation self) -> IMP::ModelObjectsTemp"""
4331 return _IMP_isd.GaussianProcessInterpolation_get_inputs(self)
4333 def force_mean_update(self):
4334 r"""force_mean_update(GaussianProcessInterpolation self)"""
4335 return _IMP_isd.GaussianProcessInterpolation_force_mean_update(self)
4337 def force_covariance_update(self):
4338 r"""force_covariance_update(GaussianProcessInterpolation self)"""
4339 return _IMP_isd.GaussianProcessInterpolation_force_covariance_update(self)
4341 def get_number_of_m_particles(self):
4342 r"""get_number_of_m_particles(GaussianProcessInterpolation self) -> unsigned int"""
4343 return _IMP_isd.GaussianProcessInterpolation_get_number_of_m_particles(self)
4345 def get_m_particle_is_optimized(self, i):
4346 r"""get_m_particle_is_optimized(GaussianProcessInterpolation self, unsigned int i) -> bool"""
4347 return _IMP_isd.GaussianProcessInterpolation_get_m_particle_is_optimized(self, i)
4349 def get_number_of_Omega_particles(self):
4350 r"""get_number_of_Omega_particles(GaussianProcessInterpolation self) -> unsigned int"""
4351 return _IMP_isd.GaussianProcessInterpolation_get_number_of_Omega_particles(self)
4353 def get_Omega_particle_is_optimized(self, i):
4354 r"""get_Omega_particle_is_optimized(GaussianProcessInterpolation self, unsigned int i) -> bool"""
4355 return _IMP_isd.GaussianProcessInterpolation_get_Omega_particle_is_optimized(self, i)
4357 def get_data_abscissa(self):
4358 r"""get_data_abscissa(GaussianProcessInterpolation self) -> IMP::FloatsList"""
4359 return _IMP_isd.GaussianProcessInterpolation_get_data_abscissa(self)
4361 def get_data_mean(self):
4362 r"""get_data_mean(GaussianProcessInterpolation self) -> IMP::Floats"""
4363 return _IMP_isd.GaussianProcessInterpolation_get_data_mean(self)
4365 def get_data_variance(self):
4366 r"""get_data_variance(GaussianProcessInterpolation self) -> IMP::FloatsList"""
4367 return _IMP_isd.GaussianProcessInterpolation_get_data_variance(self)
4370 r"""get_version_info(GaussianProcessInterpolation self) -> VersionInfo"""
4371 return _IMP_isd.GaussianProcessInterpolation_get_version_info(self)
4372 __swig_destroy__ = _IMP_isd.delete_GaussianProcessInterpolation
4375 r"""__str__(GaussianProcessInterpolation self) -> std::string"""
4376 return _IMP_isd.GaussianProcessInterpolation___str__(self)
4379 r"""__repr__(GaussianProcessInterpolation self) -> std::string"""
4380 return _IMP_isd.GaussianProcessInterpolation___repr__(self)
4384 return _object_cast_to_GaussianProcessInterpolation(o)
4388 _IMP_isd.GaussianProcessInterpolation_swigregister(GaussianProcessInterpolation)
4390 r"""Proxy of C++ IMP::isd::GaussianProcessInterpolationRestraint class."""
4392 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4394 def __init__(self, m, gpi):
4395 r"""__init__(GaussianProcessInterpolationRestraint self, Model m, GaussianProcessInterpolation gpi) -> GaussianProcessInterpolationRestraint"""
4396 _IMP_isd.GaussianProcessInterpolationRestraint_swiginit(self, _IMP_isd.new_GaussianProcessInterpolationRestraint(m, gpi))
4398 def get_probability(self):
4399 r"""get_probability(GaussianProcessInterpolationRestraint self) -> double"""
4400 return _IMP_isd.GaussianProcessInterpolationRestraint_get_probability(self)
4402 def set_use_cg(self, use, tol):
4403 r"""set_use_cg(GaussianProcessInterpolationRestraint self, bool use, double tol)"""
4404 return _IMP_isd.GaussianProcessInterpolationRestraint_set_use_cg(self, use, tol)
4406 def get_minus_log_normalization(self):
4407 r"""get_minus_log_normalization(GaussianProcessInterpolationRestraint self) -> double"""
4408 return _IMP_isd.GaussianProcessInterpolationRestraint_get_minus_log_normalization(self)
4410 def get_minus_exponent(self):
4411 r"""get_minus_exponent(GaussianProcessInterpolationRestraint self) -> double"""
4412 return _IMP_isd.GaussianProcessInterpolationRestraint_get_minus_exponent(self)
4414 def get_logdet_hessian(self):
4415 r"""get_logdet_hessian(GaussianProcessInterpolationRestraint self) -> double"""
4416 return _IMP_isd.GaussianProcessInterpolationRestraint_get_logdet_hessian(self)
4418 def get_hessian(self, *args):
4420 get_hessian(GaussianProcessInterpolationRestraint self) -> Eigen::MatrixXd
4421 get_hessian(GaussianProcessInterpolationRestraint self, bool unused) -> IMP::FloatsList
4423 return _IMP_isd.GaussianProcessInterpolationRestraint_get_hessian(self, *args)
4426 r"""do_get_inputs(GaussianProcessInterpolationRestraint self) -> IMP::ModelObjectsTemp"""
4427 return _IMP_isd.GaussianProcessInterpolationRestraint_do_get_inputs(self)
4430 r"""get_version_info(GaussianProcessInterpolationRestraint self) -> VersionInfo"""
4431 return _IMP_isd.GaussianProcessInterpolationRestraint_get_version_info(self)
4432 __swig_destroy__ = _IMP_isd.delete_GaussianProcessInterpolationRestraint
4435 r"""__str__(GaussianProcessInterpolationRestraint self) -> std::string"""
4436 return _IMP_isd.GaussianProcessInterpolationRestraint___str__(self)
4439 r"""__repr__(GaussianProcessInterpolationRestraint self) -> std::string"""
4440 return _IMP_isd.GaussianProcessInterpolationRestraint___repr__(self)
4444 return _object_cast_to_GaussianProcessInterpolationRestraint(o)
4448 _IMP_isd.GaussianProcessInterpolationRestraint_swigregister(GaussianProcessInterpolationRestraint)
4450 r"""Proxy of C++ IMP::isd::MolecularDynamics class."""
4452 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4454 def __init__(self, m=None):
4455 r"""__init__(MolecularDynamics self, Model m=None) -> MolecularDynamics"""
4456 _IMP_isd.MolecularDynamics_swiginit(self, _IMP_isd.new_MolecularDynamics(m))
4459 r"""__str__(MolecularDynamics self) -> std::string"""
4460 return _IMP_isd.MolecularDynamics___str__(self)
4463 r"""__repr__(MolecularDynamics self) -> std::string"""
4464 return _IMP_isd.MolecularDynamics___repr__(self)
4468 return _object_cast_to_MolecularDynamics(o)
4470 __swig_destroy__ = _IMP_isd.delete_MolecularDynamics
4473 _IMP_isd.MolecularDynamics_swigregister(MolecularDynamics)
4475 r"""Proxy of C++ IMP::isd::MolecularDynamicsMover class."""
4477 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4479 def __init__(self, m, nsteps=100, timestep=1.):
4480 r"""__init__(MolecularDynamicsMover self, Model m, unsigned int nsteps=100, IMP::Float timestep=1.) -> MolecularDynamicsMover"""
4481 _IMP_isd.MolecularDynamicsMover_swiginit(self, _IMP_isd.new_MolecularDynamicsMover(m, nsteps, timestep))
4484 r"""get_md(MolecularDynamicsMover self) -> MolecularDynamics"""
4485 return _IMP_isd.MolecularDynamicsMover_get_md(self)
4487 def get_number_of_md_steps(self):
4488 r"""get_number_of_md_steps(MolecularDynamicsMover self) -> unsigned int"""
4489 return _IMP_isd.MolecularDynamicsMover_get_number_of_md_steps(self)
4491 def set_number_of_md_steps(self, nsteps):
4492 r"""set_number_of_md_steps(MolecularDynamicsMover self, unsigned int nsteps)"""
4493 return _IMP_isd.MolecularDynamicsMover_set_number_of_md_steps(self, nsteps)
4496 r"""get_version_info(MolecularDynamicsMover self) -> VersionInfo"""
4497 return _IMP_isd.MolecularDynamicsMover_get_version_info(self)
4498 __swig_destroy__ = _IMP_isd.delete_MolecularDynamicsMover
4501 r"""__str__(MolecularDynamicsMover self) -> std::string"""
4502 return _IMP_isd.MolecularDynamicsMover___str__(self)
4505 r"""__repr__(MolecularDynamicsMover self) -> std::string"""
4506 return _IMP_isd.MolecularDynamicsMover___repr__(self)
4510 return _object_cast_to_MolecularDynamicsMover(o)
4514 _IMP_isd.MolecularDynamicsMover_swigregister(MolecularDynamicsMover)
4516 r"""Proxy of C++ IMP::isd::HybridMonteCarlo class."""
4518 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4520 def __init__(self, m, kT=1.0, steps=100, timestep=1.0, persistence=1):
4521 r"""__init__(HybridMonteCarlo self, Model m, IMP::Float kT=1.0, unsigned int steps=100, IMP::Float timestep=1.0, unsigned int persistence=1) -> HybridMonteCarlo"""
4522 _IMP_isd.HybridMonteCarlo_swiginit(self, _IMP_isd.new_HybridMonteCarlo(m, kT, steps, timestep, persistence))
4524 def get_kinetic_energy(self):
4525 r"""get_kinetic_energy(HybridMonteCarlo self) -> IMP::Float"""
4526 return _IMP_isd.HybridMonteCarlo_get_kinetic_energy(self)
4528 def get_potential_energy(self):
4529 r"""get_potential_energy(HybridMonteCarlo self) -> IMP::Float"""
4530 return _IMP_isd.HybridMonteCarlo_get_potential_energy(self)
4532 def get_total_energy(self):
4533 r"""get_total_energy(HybridMonteCarlo self) -> IMP::Float"""
4534 return _IMP_isd.HybridMonteCarlo_get_total_energy(self)
4536 def set_timestep(self, ts):
4537 r"""set_timestep(HybridMonteCarlo self, IMP::Float ts)"""
4538 return _IMP_isd.HybridMonteCarlo_set_timestep(self, ts)
4540 def get_timestep(self):
4541 r"""get_timestep(HybridMonteCarlo self) -> double"""
4542 return _IMP_isd.HybridMonteCarlo_get_timestep(self)
4544 def set_number_of_md_steps(self, nsteps):
4545 r"""set_number_of_md_steps(HybridMonteCarlo self, unsigned int nsteps)"""
4546 return _IMP_isd.HybridMonteCarlo_set_number_of_md_steps(self, nsteps)
4548 def get_number_of_md_steps(self):
4549 r"""get_number_of_md_steps(HybridMonteCarlo self) -> unsigned int"""
4550 return _IMP_isd.HybridMonteCarlo_get_number_of_md_steps(self)
4552 def set_persistence(self, persistence=1):
4553 r"""set_persistence(HybridMonteCarlo self, unsigned int persistence=1)"""
4554 return _IMP_isd.HybridMonteCarlo_set_persistence(self, persistence)
4556 def get_persistence(self):
4557 r"""get_persistence(HybridMonteCarlo self) -> unsigned int"""
4558 return _IMP_isd.HybridMonteCarlo_get_persistence(self)
4561 r"""get_md(HybridMonteCarlo self) -> MolecularDynamics"""
4562 return _IMP_isd.HybridMonteCarlo_get_md(self)
4564 def do_evaluate(self, arg2, arg3):
4565 r"""do_evaluate(HybridMonteCarlo self, IMP::ParticleIndexes const & arg2, bool arg3) -> double"""
4566 return _IMP_isd.HybridMonteCarlo_do_evaluate(self, arg2, arg3)
4569 r"""do_step(HybridMonteCarlo self)"""
4570 return _IMP_isd.HybridMonteCarlo_do_step(self)
4571 __swig_destroy__ = _IMP_isd.delete_HybridMonteCarlo
4574 r"""__str__(HybridMonteCarlo self) -> std::string"""
4575 return _IMP_isd.HybridMonteCarlo___str__(self)
4578 r"""__repr__(HybridMonteCarlo self) -> std::string"""
4579 return _IMP_isd.HybridMonteCarlo___repr__(self)
4583 return _object_cast_to_HybridMonteCarlo(o)
4587 _IMP_isd.HybridMonteCarlo_swigregister(HybridMonteCarlo)
4589 r"""Proxy of C++ IMP::isd::FretData class."""
4591 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4593 def __init__(self, *args):
4595 __init__(FretData self, IMP::Floats d_term, IMP::Floats d_center, IMP::Floats d_int, IMP::Floats s_grid, IMP::Float R0, IMP::Float Rmin, IMP::Float Rmax, bool do_limit=True) -> FretData
4596 __init__(FretData self) -> FretData
4598 _IMP_isd.FretData_swiginit(self, _IMP_isd.new_FretData(*args))
4600 def get_closest(self, vec, value):
4601 r"""get_closest(FretData self, DistBase vec, double value) -> int"""
4602 return _IMP_isd.FretData_get_closest(self, vec, value)
4604 def get_probability(self, distn, dist, sigma):
4605 r"""get_probability(FretData self, IMP::Float distn, IMP::Float dist, IMP::Float sigma) -> IMP::Float"""
4606 return _IMP_isd.FretData_get_probability(self, distn, dist, sigma)
4608 def get_kernel(self, dist, R0):
4609 r"""get_kernel(FretData self, IMP::Float dist, IMP::Float R0) -> IMP::Float"""
4610 return _IMP_isd.FretData_get_kernel(self, dist, R0)
4612 def get_marginal_element(self, d_term, d_center, sigma):
4613 r"""get_marginal_element(FretData self, IMP::Float d_term, IMP::Float d_center, IMP::Float sigma) -> IMP::FloatPair"""
4614 return _IMP_isd.FretData_get_marginal_element(self, d_term, d_center, sigma)
4617 r"""get_version_info(FretData self) -> VersionInfo"""
4618 return _IMP_isd.FretData_get_version_info(self)
4619 __swig_destroy__ = _IMP_isd.delete_FretData
4622 r"""__str__(FretData self) -> std::string"""
4623 return _IMP_isd.FretData___str__(self)
4626 r"""__repr__(FretData self) -> std::string"""
4627 return _IMP_isd.FretData___repr__(self)
4631 return _object_cast_to_FretData(o)
4634 def _get_as_binary(self):
4635 r"""_get_as_binary(FretData self) -> PyObject *"""
4636 return _IMP_isd.FretData__get_as_binary(self)
4638 def _set_from_binary(self, p):
4639 r"""_set_from_binary(FretData self, PyObject * p)"""
4640 return _IMP_isd.FretData__set_from_binary(self, p)
4642 def __getstate__(self):
4643 p = self._get_as_binary()
4644 if len(self.__dict__) > 1:
4645 d = self.__dict__.copy()
4650 def __setstate__(self, p):
4651 if not hasattr(self,
'this'):
4653 if isinstance(p, tuple):
4655 self.__dict__.update(d)
4656 return self._set_from_binary(p)
4660 _IMP_isd.FretData_swigregister(FretData)
4662 r"""Proxy of C++ IMP::isd::FretRestraint class."""
4664 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4666 def __init__(self, *args):
4668 __init__(FretRestraint self, IMP::ParticlesTemp pd, IMP::ParticlesTemp pa, Particle kda, Particle Ida, Particle R0, Particle sigma0, Particle Pbl, double fexp, double m_d=1.0, double m_a=1.0) -> FretRestraint
4669 __init__(FretRestraint self, Particle kda, Particle Ida, Particle sumFi, Particle sigma0, Particle Pbl, double fexp) -> FretRestraint
4670 __init__(FretRestraint self, Particle prd, Vector3D GMMterd, IMP::algebra::Vector3Ds GMMctrd, IMP::Floats GMMwd, IMP::Floats GMMsigd, Particle pra, Vector3D GMMtera, IMP::algebra::Vector3Ds GMMctra, IMP::Floats GMMwa, IMP::Floats GMMsiga, Particle kda, Particle Ida, Particle sigma0, Particle Pbl, FretData data, double fexp) -> FretRestraint
4671 __init__(FretRestraint self) -> FretRestraint
4673 _IMP_isd.FretRestraint_swiginit(self, _IMP_isd.new_FretRestraint(*args))
4675 def get_sumFi(self):
4676 r"""get_sumFi(FretRestraint self) -> double"""
4677 return _IMP_isd.FretRestraint_get_sumFi(self)
4679 def get_average_sigma(self, fmod):
4680 r"""get_average_sigma(FretRestraint self, double fmod) -> double"""
4681 return _IMP_isd.FretRestraint_get_average_sigma(self, fmod)
4683 def get_standard_error(self):
4684 r"""get_standard_error(FretRestraint self) -> double"""
4685 return _IMP_isd.FretRestraint_get_standard_error(self)
4687 def get_model_fretr(self):
4688 r"""get_model_fretr(FretRestraint self) -> double"""
4689 return _IMP_isd.FretRestraint_get_model_fretr(self)
4691 def get_probability(self):
4692 r"""get_probability(FretRestraint self) -> double"""
4693 return _IMP_isd.FretRestraint_get_probability(self)
4695 def get_experimental_value(self):
4696 r"""get_experimental_value(FretRestraint self) -> double"""
4697 return _IMP_isd.FretRestraint_get_experimental_value(self)
4699 def set_experimental_value(self, fexp):
4700 r"""set_experimental_value(FretRestraint self, double fexp)"""
4701 return _IMP_isd.FretRestraint_set_experimental_value(self, fexp)
4704 r"""do_get_inputs(FretRestraint self) -> IMP::ModelObjectsTemp"""
4705 return _IMP_isd.FretRestraint_do_get_inputs(self)
4708 r"""get_version_info(FretRestraint self) -> VersionInfo"""
4709 return _IMP_isd.FretRestraint_get_version_info(self)
4710 __swig_destroy__ = _IMP_isd.delete_FretRestraint
4713 r"""__str__(FretRestraint self) -> std::string"""
4714 return _IMP_isd.FretRestraint___str__(self)
4717 r"""__repr__(FretRestraint self) -> std::string"""
4718 return _IMP_isd.FretRestraint___repr__(self)
4722 return _object_cast_to_FretRestraint(o)
4725 def _get_as_binary(self):
4726 r"""_get_as_binary(FretRestraint self) -> PyObject *"""
4727 return _IMP_isd.FretRestraint__get_as_binary(self)
4729 def _set_from_binary(self, p):
4730 r"""_set_from_binary(FretRestraint self, PyObject * p)"""
4731 return _IMP_isd.FretRestraint__set_from_binary(self, p)
4733 def __getstate__(self):
4734 p = self._get_as_binary()
4735 if len(self.__dict__) > 1:
4736 d = self.__dict__.copy()
4741 def __setstate__(self, p):
4742 if not hasattr(self,
'this'):
4744 if isinstance(p, tuple):
4746 self.__dict__.update(d)
4747 return self._set_from_binary(p)
4751 _IMP_isd.FretRestraint_swigregister(FretRestraint)
4753 r"""Proxy of C++ IMP::isd::CysteineCrossLinkData class."""
4755 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4757 def __init__(self, *args):
4759 __init__(CysteineCrossLinkData self, double fexp, IMP::Floats fmod_grid, IMP::Floats omega_grid, IMP::Floats omega0_grid, int prior_type=3) -> CysteineCrossLinkData
4760 __init__(CysteineCrossLinkData self) -> CysteineCrossLinkData
4762 _IMP_isd.CysteineCrossLinkData_swiginit(self, _IMP_isd.new_CysteineCrossLinkData(*args))
4764 def get_closest(self, vec, value):
4765 r"""get_closest(CysteineCrossLinkData self, DistBase vec, double value) -> int"""
4766 return _IMP_isd.CysteineCrossLinkData_get_closest(self, vec, value)
4768 def get_omegas(self, fmods, omega0):
4769 r"""get_omegas(CysteineCrossLinkData self, IMP::Floats fmods, double omega0) -> IMP::Floats"""
4770 return _IMP_isd.CysteineCrossLinkData_get_omegas(self, fmods, omega0)
4772 def get_nonmarginal_elements(self, fexp, fmods, omega):
4773 r"""get_nonmarginal_elements(CysteineCrossLinkData self, double fexp, IMP::Floats fmods, double omega) -> IMP::Floats"""
4774 return _IMP_isd.CysteineCrossLinkData_get_nonmarginal_elements(self, fexp, fmods, omega)
4776 def get_marginal_elements(self, fmods, omega0):
4777 r"""get_marginal_elements(CysteineCrossLinkData self, IMP::Floats fmods, double omega0) -> IMP::Floats"""
4778 return _IMP_isd.CysteineCrossLinkData_get_marginal_elements(self, fmods, omega0)
4780 def get_omega(self, fmod, omega0):
4781 r"""get_omega(CysteineCrossLinkData self, double fmod, double omega0) -> double"""
4782 return _IMP_isd.CysteineCrossLinkData_get_omega(self, fmod, omega0)
4784 def get_standard_deviation(self, fmod, omega0):
4785 r"""get_standard_deviation(CysteineCrossLinkData self, double fmod, double omega0) -> double"""
4786 return _IMP_isd.CysteineCrossLinkData_get_standard_deviation(self, fmod, omega0)
4788 def get_nonmarginal_element(self, fexp, fmod, omega):
4789 r"""get_nonmarginal_element(CysteineCrossLinkData self, double fexp, double fmod, double omega) -> double"""
4790 return _IMP_isd.CysteineCrossLinkData_get_nonmarginal_element(self, fexp, fmod, omega)
4792 def get_marginal_element(self, fmod, omega0):
4793 r"""get_marginal_element(CysteineCrossLinkData self, double fmod, double omega0) -> double"""
4794 return _IMP_isd.CysteineCrossLinkData_get_marginal_element(self, fmod, omega0)
4797 r"""get_version_info(CysteineCrossLinkData self) -> VersionInfo"""
4798 return _IMP_isd.CysteineCrossLinkData_get_version_info(self)
4799 __swig_destroy__ = _IMP_isd.delete_CysteineCrossLinkData
4802 r"""__str__(CysteineCrossLinkData self) -> std::string"""
4803 return _IMP_isd.CysteineCrossLinkData___str__(self)
4806 r"""__repr__(CysteineCrossLinkData self) -> std::string"""
4807 return _IMP_isd.CysteineCrossLinkData___repr__(self)
4811 return _object_cast_to_CysteineCrossLinkData(o)
4814 def _get_as_binary(self):
4815 r"""_get_as_binary(CysteineCrossLinkData self) -> PyObject *"""
4816 return _IMP_isd.CysteineCrossLinkData__get_as_binary(self)
4818 def _set_from_binary(self, p):
4819 r"""_set_from_binary(CysteineCrossLinkData self, PyObject * p)"""
4820 return _IMP_isd.CysteineCrossLinkData__set_from_binary(self, p)
4822 def __getstate__(self):
4823 p = self._get_as_binary()
4824 if len(self.__dict__) > 1:
4825 d = self.__dict__.copy()
4830 def __setstate__(self, p):
4831 if not hasattr(self,
'this'):
4833 if isinstance(p, tuple):
4835 self.__dict__.update(d)
4836 return self._set_from_binary(p)
4840 _IMP_isd.CysteineCrossLinkData_swigregister(CysteineCrossLinkData)
4842 r"""Proxy of C++ IMP::isd::CrossLinkData class."""
4844 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4846 def __init__(self, *args):
4848 __init__(CrossLinkData self, IMP::Floats dist_grid, IMP::Floats omega_grid, IMP::Floats sigma_grid, double lexp_, double don=std::numeric_limits< double >::max(), double doff=std::numeric_limits< double >::max(), int prior_type=0) -> CrossLinkData
4849 __init__(CrossLinkData self, IMP::Floats dist_grid, IMP::Floats omega_grid, IMP::Floats sigma_grid, IMP::Floats pot_x_grid, IMP::Floats pot_value_grid, double don=std::numeric_limits< double >::max(), double doff=std::numeric_limits< double >::max(), int prior_type=0) -> CrossLinkData
4850 __init__(CrossLinkData self) -> CrossLinkData
4852 _IMP_isd.CrossLinkData_swiginit(self, _IMP_isd.new_CrossLinkData(*args))
4854 def get_closest(self, vec, value):
4855 r"""get_closest(CrossLinkData self, DistBase vec, double value) -> int"""
4856 return _IMP_isd.CrossLinkData_get_closest(self, vec, value)
4858 def get_omegas(self, sigma, dists):
4859 r"""get_omegas(CrossLinkData self, double sigma, IMP::Floats dists) -> IMP::Floats"""
4860 return _IMP_isd.CrossLinkData_get_omegas(self, sigma, dists)
4862 def get_omega_prior(self, omega, omega0):
4863 r"""get_omega_prior(CrossLinkData self, double omega, double omega0) -> double"""
4864 return _IMP_isd.CrossLinkData_get_omega_prior(self, omega, omega0)
4866 def get_nonmarginal_elements(self, sigmai, dists):
4867 r"""get_nonmarginal_elements(CrossLinkData self, double sigmai, IMP::Floats dists) -> IMP::Floats"""
4868 return _IMP_isd.CrossLinkData_get_nonmarginal_elements(self, sigmai, dists)
4870 def get_marginal_elements(self, sigma, dists):
4871 r"""get_marginal_elements(CrossLinkData self, double sigma, IMP::Floats dists) -> IMP::Floats"""
4872 return _IMP_isd.CrossLinkData_get_marginal_elements(self, sigma, dists)
4874 def get_marginal_maximum(self, *args):
4876 get_marginal_maximum(CrossLinkData self, double sigma) -> double
4877 get_marginal_maximum(CrossLinkData self) -> double
4879 return _IMP_isd.CrossLinkData_get_marginal_maximum(self, *args)
4882 r"""get_version_info(CrossLinkData self) -> VersionInfo"""
4883 return _IMP_isd.CrossLinkData_get_version_info(self)
4884 __swig_destroy__ = _IMP_isd.delete_CrossLinkData
4887 r"""__str__(CrossLinkData self) -> std::string"""
4888 return _IMP_isd.CrossLinkData___str__(self)
4891 r"""__repr__(CrossLinkData self) -> std::string"""
4892 return _IMP_isd.CrossLinkData___repr__(self)
4896 return _object_cast_to_CrossLinkData(o)
4899 def _get_as_binary(self):
4900 r"""_get_as_binary(CrossLinkData self) -> PyObject *"""
4901 return _IMP_isd.CrossLinkData__get_as_binary(self)
4903 def _set_from_binary(self, p):
4904 r"""_set_from_binary(CrossLinkData self, PyObject * p)"""
4905 return _IMP_isd.CrossLinkData__set_from_binary(self, p)
4907 def __getstate__(self):
4908 p = self._get_as_binary()
4909 if len(self.__dict__) > 1:
4910 d = self.__dict__.copy()
4915 def __setstate__(self, p):
4916 if not hasattr(self,
'this'):
4918 if isinstance(p, tuple):
4920 self.__dict__.update(d)
4921 return self._set_from_binary(p)
4925 _IMP_isd.CrossLinkData_swigregister(CrossLinkData)
4927 r"""Proxy of C++ IMP::isd::CysteineCrossLinkRestraint class."""
4929 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4931 def __init__(self, *args):
4933 __init__(CysteineCrossLinkRestraint self, Model m, _ParticleIndexAdaptor beta, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor epsilon, _ParticleIndexAdaptor weight, CrossLinkData data, double fexp) -> CysteineCrossLinkRestraint
4934 __init__(CysteineCrossLinkRestraint self, Model m, _ParticleIndexAdaptor beta, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor epsilon, _ParticleIndexAdaptor weight, CrossLinkData data, CysteineCrossLinkData ccldata) -> CysteineCrossLinkRestraint
4935 __init__(CysteineCrossLinkRestraint self) -> CysteineCrossLinkRestraint
4937 _IMP_isd.CysteineCrossLinkRestraint_swiginit(self, _IMP_isd.new_CysteineCrossLinkRestraint(*args))
4939 def get_probability(self):
4940 r"""get_probability(CysteineCrossLinkRestraint self) -> double"""
4941 return _IMP_isd.CysteineCrossLinkRestraint_get_probability(self)
4943 def get_standard_error(self):
4944 r"""get_standard_error(CysteineCrossLinkRestraint self) -> double"""
4945 return _IMP_isd.CysteineCrossLinkRestraint_get_standard_error(self)
4947 def get_frequencies(self):
4948 r"""get_frequencies(CysteineCrossLinkRestraint self) -> IMP::Floats"""
4949 return _IMP_isd.CysteineCrossLinkRestraint_get_frequencies(self)
4951 def get_model_frequency(self):
4952 r"""get_model_frequency(CysteineCrossLinkRestraint self) -> double"""
4953 return _IMP_isd.CysteineCrossLinkRestraint_get_model_frequency(self)
4955 def get_distances(self):
4956 r"""get_distances(CysteineCrossLinkRestraint self) -> IMP::Floats"""
4957 return _IMP_isd.CysteineCrossLinkRestraint_get_distances(self)
4959 def get_truncated_normalization(self, mean, sigma):
4960 r"""get_truncated_normalization(CysteineCrossLinkRestraint self, double mean, double sigma) -> double"""
4961 return _IMP_isd.CysteineCrossLinkRestraint_get_truncated_normalization(self, mean, sigma)
4963 def get_normal_pdf(self, mean, sigma, x):
4964 r"""get_normal_pdf(CysteineCrossLinkRestraint self, double mean, double sigma, double x) -> double"""
4965 return _IMP_isd.CysteineCrossLinkRestraint_get_normal_pdf(self, mean, sigma, x)
4967 def add_contribution(self, *args):
4969 add_contribution(CysteineCrossLinkRestraint self, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2)
4970 add_contribution(CysteineCrossLinkRestraint self, IMP::ParticleIndexes p1, IMP::ParticleIndexes p2)
4972 return _IMP_isd.CysteineCrossLinkRestraint_add_contribution(self, *args)
4974 def get_CB_coordinates(self, ps):
4975 r"""get_CB_coordinates(CysteineCrossLinkRestraint self, IMP::ParticleIndexes const & ps) -> Vector3D"""
4976 return _IMP_isd.CysteineCrossLinkRestraint_get_CB_coordinates(self, ps)
4978 def get_number_of_contributions(self):
4979 r"""get_number_of_contributions(CysteineCrossLinkRestraint self) -> unsigned int"""
4980 return _IMP_isd.CysteineCrossLinkRestraint_get_number_of_contributions(self)
4983 r"""do_get_inputs(CysteineCrossLinkRestraint self) -> IMP::ModelObjectsTemp"""
4984 return _IMP_isd.CysteineCrossLinkRestraint_do_get_inputs(self)
4987 r"""get_version_info(CysteineCrossLinkRestraint self) -> VersionInfo"""
4988 return _IMP_isd.CysteineCrossLinkRestraint_get_version_info(self)
4989 __swig_destroy__ = _IMP_isd.delete_CysteineCrossLinkRestraint
4992 r"""__str__(CysteineCrossLinkRestraint self) -> std::string"""
4993 return _IMP_isd.CysteineCrossLinkRestraint___str__(self)
4996 r"""__repr__(CysteineCrossLinkRestraint self) -> std::string"""
4997 return _IMP_isd.CysteineCrossLinkRestraint___repr__(self)
5001 return _object_cast_to_CysteineCrossLinkRestraint(o)
5004 def _get_as_binary(self):
5005 r"""_get_as_binary(CysteineCrossLinkRestraint self) -> PyObject *"""
5006 return _IMP_isd.CysteineCrossLinkRestraint__get_as_binary(self)
5008 def _set_from_binary(self, p):
5009 r"""_set_from_binary(CysteineCrossLinkRestraint self, PyObject * p)"""
5010 return _IMP_isd.CysteineCrossLinkRestraint__set_from_binary(self, p)
5012 def __getstate__(self):
5013 p = self._get_as_binary()
5014 if len(self.__dict__) > 1:
5015 d = self.__dict__.copy()
5020 def __setstate__(self, p):
5021 if not hasattr(self,
'this'):
5023 if isinstance(p, tuple):
5025 self.__dict__.update(d)
5026 return self._set_from_binary(p)
5030 _IMP_isd.CysteineCrossLinkRestraint_swigregister(CysteineCrossLinkRestraint)
5032 r"""Proxy of C++ IMP::isd::WeightMover class."""
5034 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5036 def __init__(self, w, radius):
5037 r"""__init__(WeightMover self, Particle w, IMP::Float radius) -> WeightMover"""
5038 _IMP_isd.WeightMover_swiginit(self, _IMP_isd.new_WeightMover(w, radius))
5040 def set_radius(self, radius):
5041 r"""set_radius(WeightMover self, IMP::Float radius)"""
5042 return _IMP_isd.WeightMover_set_radius(self, radius)
5044 def get_radius(self):
5045 r"""get_radius(WeightMover self) -> IMP::Float"""
5046 return _IMP_isd.WeightMover_get_radius(self)
5049 r"""get_version_info(WeightMover self) -> VersionInfo"""
5050 return _IMP_isd.WeightMover_get_version_info(self)
5051 __swig_destroy__ = _IMP_isd.delete_WeightMover
5054 r"""__str__(WeightMover self) -> std::string"""
5055 return _IMP_isd.WeightMover___str__(self)
5058 r"""__repr__(WeightMover self) -> std::string"""
5059 return _IMP_isd.WeightMover___repr__(self)
5063 return _object_cast_to_WeightMover(o)
5067 _IMP_isd.WeightMover_swigregister(WeightMover)
5069 r"""Proxy of C++ IMP::isd::WeightRestraint class."""
5071 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5073 def __init__(self, w, wmin, wmax, kappa):
5074 r"""__init__(WeightRestraint self, Particle w, IMP::Float wmin, IMP::Float wmax, IMP::Float kappa) -> WeightRestraint"""
5075 _IMP_isd.WeightRestraint_swiginit(self, _IMP_isd.new_WeightRestraint(w, wmin, wmax, kappa))
5078 r"""do_get_inputs(WeightRestraint self) -> IMP::ModelObjectsTemp"""
5079 return _IMP_isd.WeightRestraint_do_get_inputs(self)
5082 r"""get_version_info(WeightRestraint self) -> VersionInfo"""
5083 return _IMP_isd.WeightRestraint_get_version_info(self)
5084 __swig_destroy__ = _IMP_isd.delete_WeightRestraint
5087 r"""__str__(WeightRestraint self) -> std::string"""
5088 return _IMP_isd.WeightRestraint___str__(self)
5091 r"""__repr__(WeightRestraint self) -> std::string"""
5092 return _IMP_isd.WeightRestraint___repr__(self)
5096 return _object_cast_to_WeightRestraint(o)
5100 _IMP_isd.WeightRestraint_swigregister(WeightRestraint)
5102 r"""Proxy of C++ IMP::isd::AtomicCrossLinkMSRestraint class."""
5104 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5106 def __init__(self, *args):
5108 __init__(AtomicCrossLinkMSRestraint self, Model m, double length, ParticleIndex psi, IMP::Float slope=0.0, bool part_of_log_score=False, std::string name="AtomicCrossLinkMSRestraint%1%") -> AtomicCrossLinkMSRestraint
5109 __init__(AtomicCrossLinkMSRestraint self) -> AtomicCrossLinkMSRestraint
5111 _IMP_isd.AtomicCrossLinkMSRestraint_swiginit(self, _IMP_isd.new_AtomicCrossLinkMSRestraint(*args))
5113 def add_contribution(self, ppi, sigmas):
5114 r"""add_contribution(AtomicCrossLinkMSRestraint self, IMP::ParticleIndexPair const & ppi, IMP::ParticleIndexPair const & sigmas)"""
5115 return _IMP_isd.AtomicCrossLinkMSRestraint_add_contribution(self, ppi, sigmas)
5117 def evaluate_for_contributions(self, c, accum):
5118 r"""evaluate_for_contributions(AtomicCrossLinkMSRestraint self, IMP::Ints c, DerivativeAccumulator accum) -> IMP::Float"""
5119 return _IMP_isd.AtomicCrossLinkMSRestraint_evaluate_for_contributions(self, c, accum)
5121 def get_number_of_contributions(self):
5122 r"""get_number_of_contributions(AtomicCrossLinkMSRestraint self) -> unsigned int"""
5123 return _IMP_isd.AtomicCrossLinkMSRestraint_get_number_of_contributions(self)
5125 def get_contribution(self, i):
5126 r"""get_contribution(AtomicCrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
5127 return _IMP_isd.AtomicCrossLinkMSRestraint_get_contribution(self, i)
5129 def get_contribution_sigmas(self, i):
5130 r"""get_contribution_sigmas(AtomicCrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
5131 return _IMP_isd.AtomicCrossLinkMSRestraint_get_contribution_sigmas(self, i)
5134 r"""get_psi(AtomicCrossLinkMSRestraint self) -> ParticleIndex"""
5135 return _IMP_isd.AtomicCrossLinkMSRestraint_get_psi(self)
5138 r"""do_get_inputs(AtomicCrossLinkMSRestraint self) -> IMP::ModelObjectsTemp"""
5139 return _IMP_isd.AtomicCrossLinkMSRestraint_do_get_inputs(self)
5141 def show(self, out):
5142 r"""show(AtomicCrossLinkMSRestraint self, _ostream out)"""
5143 return _IMP_isd.AtomicCrossLinkMSRestraint_show(self, out)
5145 def set_slope(self, slope):
5146 r"""set_slope(AtomicCrossLinkMSRestraint self, IMP::Float slope)"""
5147 return _IMP_isd.AtomicCrossLinkMSRestraint_set_slope(self, slope)
5149 def set_part_of_log_score(self, hey):
5150 r"""set_part_of_log_score(AtomicCrossLinkMSRestraint self, bool hey)"""
5151 return _IMP_isd.AtomicCrossLinkMSRestraint_set_part_of_log_score(self, hey)
5154 r"""get_version_info(AtomicCrossLinkMSRestraint self) -> VersionInfo"""
5155 return _IMP_isd.AtomicCrossLinkMSRestraint_get_version_info(self)
5156 __swig_destroy__ = _IMP_isd.delete_AtomicCrossLinkMSRestraint
5159 r"""__str__(AtomicCrossLinkMSRestraint self) -> std::string"""
5160 return _IMP_isd.AtomicCrossLinkMSRestraint___str__(self)
5163 r"""__repr__(AtomicCrossLinkMSRestraint self) -> std::string"""
5164 return _IMP_isd.AtomicCrossLinkMSRestraint___repr__(self)
5168 return _object_cast_to_AtomicCrossLinkMSRestraint(o)
5171 def _get_as_binary(self):
5172 r"""_get_as_binary(AtomicCrossLinkMSRestraint self) -> PyObject *"""
5173 return _IMP_isd.AtomicCrossLinkMSRestraint__get_as_binary(self)
5175 def _set_from_binary(self, p):
5176 r"""_set_from_binary(AtomicCrossLinkMSRestraint self, PyObject * p)"""
5177 return _IMP_isd.AtomicCrossLinkMSRestraint__set_from_binary(self, p)
5179 def __getstate__(self):
5180 p = self._get_as_binary()
5181 if len(self.__dict__) > 1:
5182 d = self.__dict__.copy()
5187 def __setstate__(self, p):
5188 if not hasattr(self,
'this'):
5190 if isinstance(p, tuple):
5192 self.__dict__.update(d)
5193 return self._set_from_binary(p)
5197 _IMP_isd.AtomicCrossLinkMSRestraint_swigregister(AtomicCrossLinkMSRestraint)
5199 r"""Proxy of C++ IMP::isd::GaussianEMRestraint class."""
5201 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5203 def __init__(self, *args):
5205 __init__(GaussianEMRestraint self, Model mdl, IMP::ParticleIndexes model_ps, IMP::ParticleIndexes density_ps, ParticleIndex global_sigma, IMP::Float model_cutoff_dist, IMP::Float density_cutoff_dist, IMP::Float slope, bool update_model=True, bool backbone_slope=False, bool local=False, std::string name="GaussianEMRestraint%1%") -> GaussianEMRestraint
5206 __init__(GaussianEMRestraint self) -> GaussianEMRestraint
5208 _IMP_isd.GaussianEMRestraint_swiginit(self, _IMP_isd.new_GaussianEMRestraint(*args))
5210 def get_probability(self):
5211 r"""get_probability(GaussianEMRestraint self) -> double"""
5212 return _IMP_isd.GaussianEMRestraint_get_probability(self)
5215 r"""get_cross_correlation_coefficient(GaussianEMRestraint self) -> double"""
5216 return _IMP_isd.GaussianEMRestraint_get_cross_correlation_coefficient(self)
5218 def set_density_filename(self, density_fn):
5219 r"""set_density_filename(GaussianEMRestraint self, std::string density_fn)"""
5220 return _IMP_isd.GaussianEMRestraint_set_density_filename(self, density_fn)
5222 def compute_initial_scores(self):
5223 r"""compute_initial_scores(GaussianEMRestraint self)"""
5224 return _IMP_isd.GaussianEMRestraint_compute_initial_scores(self)
5226 def set_slope(self, s):
5227 r"""set_slope(GaussianEMRestraint self, IMP::Float s)"""
5228 return _IMP_isd.GaussianEMRestraint_set_slope(self, s)
5230 def get_slope(self):
5231 r"""get_slope(GaussianEMRestraint self) -> IMP::Float"""
5232 return _IMP_isd.GaussianEMRestraint_get_slope(self)
5235 r"""do_get_inputs(GaussianEMRestraint self) -> IMP::ModelObjectsTemp"""
5236 return _IMP_isd.GaussianEMRestraint_do_get_inputs(self)
5238 def show(self, out):
5239 r"""show(GaussianEMRestraint self, _ostream out)"""
5240 return _IMP_isd.GaussianEMRestraint_show(self, out)
5243 r"""get_version_info(GaussianEMRestraint self) -> VersionInfo"""
5244 return _IMP_isd.GaussianEMRestraint_get_version_info(self)
5245 __swig_destroy__ = _IMP_isd.delete_GaussianEMRestraint
5248 r"""__str__(GaussianEMRestraint self) -> std::string"""
5249 return _IMP_isd.GaussianEMRestraint___str__(self)
5252 r"""__repr__(GaussianEMRestraint self) -> std::string"""
5253 return _IMP_isd.GaussianEMRestraint___repr__(self)
5257 return _object_cast_to_GaussianEMRestraint(o)
5260 def _get_as_binary(self):
5261 r"""_get_as_binary(GaussianEMRestraint self) -> PyObject *"""
5262 return _IMP_isd.GaussianEMRestraint__get_as_binary(self)
5264 def _set_from_binary(self, p):
5265 r"""_set_from_binary(GaussianEMRestraint self, PyObject * p)"""
5266 return _IMP_isd.GaussianEMRestraint__set_from_binary(self, p)
5268 def __getstate__(self):
5269 p = self._get_as_binary()
5270 if len(self.__dict__) > 1:
5271 d = self.__dict__.copy()
5276 def __setstate__(self, p):
5277 if not hasattr(self,
'this'):
5279 if isinstance(p, tuple):
5281 self.__dict__.update(d)
5282 return self._set_from_binary(p)
5286 _IMP_isd.GaussianEMRestraint_swigregister(GaussianEMRestraint)
5287 class GaussianAnchorEMRestraint(ISDRestraint):
5288 r"""Proxy of C++ IMP::isd::GaussianAnchorEMRestraint class."""
5290 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5292 def __init__(self, *args):
5293 r"""__init__(GaussianAnchorEMRestraint self, IMP::ParticlesTemp model_ps, IMP::Floats model_sigs, IMP::Floats model_weights, IMP::ParticlesTemp density_ps, IMP::Floats density_sigs, IMP::Floats density_weights, Particle global_sigma, IMP::Float cutoff_dist, bool rigid, bool tabexp, std::string name="GaussianAnchorEMRestraint%1%") -> GaussianAnchorEMRestraint"""
5294 _IMP_isd.GaussianAnchorEMRestraint_swiginit(self, _IMP_isd.new_GaussianAnchorEMRestraint(*args))
5296 def get_density_particles(self):
5297 r"""get_density_particles(GaussianAnchorEMRestraint self) -> IMP::ParticlesTemp"""
5298 return _IMP_isd.GaussianAnchorEMRestraint_get_density_particles(self)
5299 __swig_destroy__ = _IMP_isd.delete_GaussianAnchorEMRestraint
5302 r"""__str__(GaussianAnchorEMRestraint self) -> std::string"""
5303 return _IMP_isd.GaussianAnchorEMRestraint___str__(self)
5306 r"""__repr__(GaussianAnchorEMRestraint self) -> std::string"""
5307 return _IMP_isd.GaussianAnchorEMRestraint___repr__(self)
5311 return _object_cast_to_GaussianAnchorEMRestraint(o)
5315 _IMP_isd.GaussianAnchorEMRestraint_swigregister(GaussianAnchorEMRestraint)
5317 r"""Proxy of C++ IMP::isd::GammaPrior class."""
5319 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5321 def __init__(self, *args):
5322 r"""__init__(GammaPrior self, Model m, Particle p, IMP::Float k, IMP::Float theta, std::string name="GammaPrior%1%") -> GammaPrior"""
5323 _IMP_isd.GammaPrior_swiginit(self, _IMP_isd.new_GammaPrior(*args))
5325 def evaluate_at(self, val):
5326 r"""evaluate_at(GammaPrior self, IMP::Float val) -> double"""
5327 return _IMP_isd.GammaPrior_evaluate_at(self, val)
5330 r"""do_get_inputs(GammaPrior self) -> IMP::ModelObjectsTemp"""
5331 return _IMP_isd.GammaPrior_do_get_inputs(self)
5334 r"""get_version_info(GammaPrior self) -> VersionInfo"""
5335 return _IMP_isd.GammaPrior_get_version_info(self)
5336 __swig_destroy__ = _IMP_isd.delete_GammaPrior
5338 def get_probability(self):
5339 r"""get_probability(GammaPrior self) -> double"""
5340 return _IMP_isd.GammaPrior_get_probability(self)
5343 r"""__str__(GammaPrior self) -> std::string"""
5344 return _IMP_isd.GammaPrior___str__(self)
5347 r"""__repr__(GammaPrior self) -> std::string"""
5348 return _IMP_isd.GammaPrior___repr__(self)
5352 return _object_cast_to_GammaPrior(o)
5356 _IMP_isd.GammaPrior_swigregister(GammaPrior)
5358 def sample_points_from_density(dmap_orig, npoints, threshold=0.0):
5359 r"""sample_points_from_density(DensityMap dmap_orig, int npoints, IMP::Float threshold=0.0) -> IMP::FloatsList"""
5360 return _IMP_isd.sample_points_from_density(dmap_orig, npoints, threshold)
5362 r"""Proxy of C++ IMP::isd::ResidueProteinProximityRestraint class."""
5364 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
5366 def __init__(self, *args):
5367 r"""__init__(ResidueProteinProximityRestraint self, Model m, double cutoff=6.0, double sigma=3.0, double xi=0.5, bool part_of_log_score=False, std::string name="ResidueProteinProximityRestraint_%1%") -> ResidueProteinProximityRestraint"""
5368 _IMP_isd.ResidueProteinProximityRestraint_swiginit(self, _IMP_isd.new_ResidueProteinProximityRestraint(*args))
5370 def add_pairs_container(self, pc):
5371 r"""add_pairs_container(ResidueProteinProximityRestraint self, PairContainer pc)"""
5372 return _IMP_isd.ResidueProteinProximityRestraint_add_pairs_container(self, pc)
5374 def add_contribution_particles(self, ppis1, ppis2):
5375 r"""add_contribution_particles(ResidueProteinProximityRestraint self, IMP::ParticleIndexes const ppis1, IMP::ParticleIndexes const ppis2)"""
5376 return _IMP_isd.ResidueProteinProximityRestraint_add_contribution_particles(self, ppis1, ppis2)
5378 def evaluate_for_contributions(self, c):
5379 r"""evaluate_for_contributions(ResidueProteinProximityRestraint self, IMP::Ints c) -> double"""
5380 return _IMP_isd.ResidueProteinProximityRestraint_evaluate_for_contributions(self, c)
5382 def get_number_of_contributions(self):
5383 r"""get_number_of_contributions(ResidueProteinProximityRestraint self) -> unsigned int"""
5384 return _IMP_isd.ResidueProteinProximityRestraint_get_number_of_contributions(self)
5386 def set_sigma(self, sigma):
5387 r"""set_sigma(ResidueProteinProximityRestraint self, double sigma)"""
5388 return _IMP_isd.ResidueProteinProximityRestraint_set_sigma(self, sigma)
5390 def set_cutoff(self, cutoff):
5391 r"""set_cutoff(ResidueProteinProximityRestraint self, double cutoff)"""
5392 return _IMP_isd.ResidueProteinProximityRestraint_set_cutoff(self, cutoff)
5394 def set_max_score(self, max_score):
5395 r"""set_max_score(ResidueProteinProximityRestraint self, double max_score)"""
5396 return _IMP_isd.ResidueProteinProximityRestraint_set_max_score(self, max_score)
5398 def set_yi(self, yi):
5399 r"""set_yi(ResidueProteinProximityRestraint self, double yi)"""
5400 return _IMP_isd.ResidueProteinProximityRestraint_set_yi(self, yi)
5402 def set_interpolation_factor(self, interpolation_factor):
5403 r"""set_interpolation_factor(ResidueProteinProximityRestraint self, double interpolation_factor)"""
5404 return _IMP_isd.ResidueProteinProximityRestraint_set_interpolation_factor(self, interpolation_factor)
5406 def set_part_of_log_score(self, hey):
5407 r"""set_part_of_log_score(ResidueProteinProximityRestraint self, bool hey)"""
5408 return _IMP_isd.ResidueProteinProximityRestraint_set_part_of_log_score(self, hey)
5411 r"""do_get_inputs(ResidueProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
5412 return _IMP_isd.ResidueProteinProximityRestraint_do_get_inputs(self)
5415 r"""get_version_info(ResidueProteinProximityRestraint self) -> VersionInfo"""
5416 return _IMP_isd.ResidueProteinProximityRestraint_get_version_info(self)
5417 __swig_destroy__ = _IMP_isd.delete_ResidueProteinProximityRestraint
5420 r"""__str__(ResidueProteinProximityRestraint self) -> std::string"""
5421 return _IMP_isd.ResidueProteinProximityRestraint___str__(self)
5424 r"""__repr__(ResidueProteinProximityRestraint self) -> std::string"""
5425 return _IMP_isd.ResidueProteinProximityRestraint___repr__(self)
5429 return _object_cast_to_ResidueProteinProximityRestraint(o)
5433 _IMP_isd.ResidueProteinProximityRestraint_swigregister(ResidueProteinProximityRestraint)
5436 r"""get_module_version() -> std::string const"""
5437 return _IMP_isd.get_module_version()
5440 r"""get_example_path(std::string fname) -> std::string"""
5441 return _IMP_isd.get_example_path(fname)
5444 r"""get_data_path(std::string fname) -> std::string"""
5445 return _IMP_isd.get_data_path(fname)
5447 from .
import _version_check
Abstract class for scoring object(s) of type ParticleIndexPair.
Various classes to hold sets of particles.
static XYZR setup_particle(Model *m, ParticleIndex pi)
static FloatKey get_scale_key()
Make CGAL functionality available to IMP.
virtual void clear_caches()
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
Code to compute statistical measures.
Object used to hold a set of restraints.
Class for storing model, its restraints, constraints, and particles.
ModelObjectsTemp get_inputs(Model *m, const ParticleIndexes &pis) const
Get the ModelObjects read when the given list of particles is used.
virtual void do_destroy()
Common base class for heavy weight IMP objects.
Simple molecular dynamics simulator.
Store a list of ParticleIndexes.
A base class for classes which perturb particles.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Version and module information for Objects.
Basic utilities for handling cryo-electron microscopy 3D density maps.
double get_cross_correlation_coefficient(Image *im1, Image *im2)
Cross correlation between two images.
Interface to specialized Particle types (e.g. atoms)
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
Class to handle individual particles of a Model object.
void set_check_level(CheckLevel l)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Support for small angle X-ray scattering (SAXS) data.
A restraint is a term in an IMP ScoringFunction.