IMP logo
IMP Reference Guide  2.19.0
The Integrative Modeling Platform
isd/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.1.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2023 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 import _IMP_isd
17 
18 try:
19  import builtins as __builtin__
20 except ImportError:
21  import __builtin__
22 
23 def _swig_repr(self):
24  try:
25  strthis = "proxy of " + self.this.__repr__()
26  except __builtin__.Exception:
27  strthis = ""
28  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
29 
30 
31 def _swig_setattr_nondynamic_instance_variable(set):
32  def set_instance_attr(self, name, value):
33  if name == "this":
34  set(self, name, value)
35  elif name == "thisown":
36  self.this.own(value)
37  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
38  set(self, name, value)
39  else:
40  raise AttributeError("You cannot add instance attributes to %s" % self)
41  return set_instance_attr
42 
43 
44 def _swig_setattr_nondynamic_class_variable(set):
45  def set_class_attr(cls, name, value):
46  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
47  set(cls, name, value)
48  else:
49  raise AttributeError("You cannot add class attributes to %s" % cls)
50  return set_class_attr
51 
52 
53 def _swig_add_metaclass(metaclass):
54  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55  def wrapper(cls):
56  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
57  return wrapper
58 
59 
60 class _SwigNonDynamicMeta(type):
61  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
63 
64 
65 import weakref
66 
67 class IMP_ISD_SwigPyIterator(object):
68  r"""Proxy of C++ swig::IMP_ISD_SwigPyIterator class."""
69 
70  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
71 
72  def __init__(self, *args, **kwargs):
73  raise AttributeError("No constructor defined - class is abstract")
74  __repr__ = _swig_repr
75  __swig_destroy__ = _IMP_isd.delete_IMP_ISD_SwigPyIterator
76 
77  def value(self):
78  r"""value(IMP_ISD_SwigPyIterator self) -> PyObject *"""
79  return _IMP_isd.IMP_ISD_SwigPyIterator_value(self)
80 
81  def incr(self, n=1):
82  r"""incr(IMP_ISD_SwigPyIterator self, size_t n=1) -> IMP_ISD_SwigPyIterator"""
83  return _IMP_isd.IMP_ISD_SwigPyIterator_incr(self, n)
84 
85  def decr(self, n=1):
86  r"""decr(IMP_ISD_SwigPyIterator self, size_t n=1) -> IMP_ISD_SwigPyIterator"""
87  return _IMP_isd.IMP_ISD_SwigPyIterator_decr(self, n)
88 
89  def distance(self, x):
90  r"""distance(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> ptrdiff_t"""
91  return _IMP_isd.IMP_ISD_SwigPyIterator_distance(self, x)
92 
93  def equal(self, x):
94  r"""equal(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> bool"""
95  return _IMP_isd.IMP_ISD_SwigPyIterator_equal(self, x)
96 
97  def copy(self):
98  r"""copy(IMP_ISD_SwigPyIterator self) -> IMP_ISD_SwigPyIterator"""
99  return _IMP_isd.IMP_ISD_SwigPyIterator_copy(self)
100 
101  def next(self):
102  r"""next(IMP_ISD_SwigPyIterator self) -> PyObject *"""
103  return _IMP_isd.IMP_ISD_SwigPyIterator_next(self)
104 
105  def __next__(self):
106  r"""__next__(IMP_ISD_SwigPyIterator self) -> PyObject *"""
107  return _IMP_isd.IMP_ISD_SwigPyIterator___next__(self)
108 
109  def previous(self):
110  r"""previous(IMP_ISD_SwigPyIterator self) -> PyObject *"""
111  return _IMP_isd.IMP_ISD_SwigPyIterator_previous(self)
112 
113  def advance(self, n):
114  r"""advance(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
115  return _IMP_isd.IMP_ISD_SwigPyIterator_advance(self, n)
116 
117  def __eq__(self, x):
118  r"""__eq__(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> bool"""
119  return _IMP_isd.IMP_ISD_SwigPyIterator___eq__(self, x)
120 
121  def __ne__(self, x):
122  r"""__ne__(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> bool"""
123  return _IMP_isd.IMP_ISD_SwigPyIterator___ne__(self, x)
124 
125  def __iadd__(self, n):
126  r"""__iadd__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
127  return _IMP_isd.IMP_ISD_SwigPyIterator___iadd__(self, n)
128 
129  def __isub__(self, n):
130  r"""__isub__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
131  return _IMP_isd.IMP_ISD_SwigPyIterator___isub__(self, n)
132 
133  def __add__(self, n):
134  r"""__add__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator"""
135  return _IMP_isd.IMP_ISD_SwigPyIterator___add__(self, n)
136 
137  def __sub__(self, *args):
138  r"""
139  __sub__(IMP_ISD_SwigPyIterator self, ptrdiff_t n) -> IMP_ISD_SwigPyIterator
140  __sub__(IMP_ISD_SwigPyIterator self, IMP_ISD_SwigPyIterator x) -> ptrdiff_t
141  """
142  return _IMP_isd.IMP_ISD_SwigPyIterator___sub__(self, *args)
143  def __iter__(self):
144  return self
145 
146 # Register IMP_ISD_SwigPyIterator in _IMP_isd:
147 _IMP_isd.IMP_ISD_SwigPyIterator_swigregister(IMP_ISD_SwigPyIterator)
148 
149 _value_types=[]
150 _object_types=[]
151 _raii_types=[]
152 _plural_types=[]
153 
154 IMP_DEBUG = _IMP_isd.IMP_DEBUG
155 
156 IMP_RELEASE = _IMP_isd.IMP_RELEASE
157 
158 IMP_SILENT = _IMP_isd.IMP_SILENT
159 
160 IMP_PROGRESS = _IMP_isd.IMP_PROGRESS
161 
162 IMP_TERSE = _IMP_isd.IMP_TERSE
163 
164 IMP_VERBOSE = _IMP_isd.IMP_VERBOSE
165 
166 IMP_MEMORY = _IMP_isd.IMP_MEMORY
167 
168 IMP_NONE = _IMP_isd.IMP_NONE
169 
170 IMP_USAGE = _IMP_isd.IMP_USAGE
171 
172 IMP_INTERNAL = _IMP_isd.IMP_INTERNAL
173 
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_isd.IMP_KERNEL_HAS_LOG4CXX
175 
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_isd.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_isd.IMP_COMPILER_HAS_DEBUG_VECTOR
179 
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_isd.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_isd.IMP_COMPILER_HAS_THREE_WAY
183 
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_isd.IMP_KERNEL_HAS_BOOST_RANDOM
185 
186 IMP_KERNEL_HAS_NUMPY = _IMP_isd.IMP_KERNEL_HAS_NUMPY
187 
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_isd.IMP_KERNEL_HAS_GPERFTOOLS
189 
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_isd.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_isd.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 
194 IMPKERNEL_SHOW_WARNINGS = _IMP_isd.IMPKERNEL_SHOW_WARNINGS
195 
196 
197 import sys
198 class _DirectorObjects(object):
199  """@internal Simple class to keep references to director objects
200  to prevent premature deletion."""
201  def __init__(self):
202  self._objects = []
203  def register(self, obj):
204  """Take a reference to a director object; will only work for
205  refcounted C++ classes"""
206  if hasattr(obj, 'get_ref_count'):
207  self._objects.append(obj)
208  def cleanup(self):
209  """Only drop our reference and allow cleanup by Python if no other
210  Python references exist (we hold 3 references: one in self._objects,
211  one in x, and one in the argument list for getrefcount) *and* no
212  other C++ references exist (the Python object always holds one)"""
213  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
214  or x.get_ref_count() > 1]
215 # Do in two steps so the references are kept until the end of the
216 # function (deleting references may trigger a fresh call to this method)
217  self._objects = objs
218  def get_object_count(self):
219  """Get number of director objects (useful for testing only)"""
220  return len(self._objects)
221 _director_objects = _DirectorObjects()
222 
223 class _ostream(object):
224  r"""Proxy of C++ std::ostream class."""
225 
226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
227 
228  def __init__(self, *args, **kwargs):
229  raise AttributeError("No constructor defined")
230  __repr__ = _swig_repr
231 
232  def write(self, osa_buf):
233  r"""write(_ostream self, char const * osa_buf)"""
234  return _IMP_isd._ostream_write(self, osa_buf)
235 
236 # Register _ostream in _IMP_isd:
237 _IMP_isd._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_isd.IMP_C_OPEN_BINARY
239 
240 import IMP
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_isd.IMP_CGAL_HAS_BOOST_RANDOM
246 
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_isd.IMP_CGAL_HAS_BOOST_SYSTEM
248 
249 IMP_CGAL_HAS_NUMPY = _IMP_isd.IMP_CGAL_HAS_NUMPY
250 
251 IMPCGAL_SHOW_WARNINGS = _IMP_isd.IMPCGAL_SHOW_WARNINGS
252 
253 import IMP.cgal
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_isd.IMP_ALGEBRA_HAS_IMP_CGAL
255 
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_isd.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 
264 IMP_ALGEBRA_HAS_CGAL = _IMP_isd.IMP_ALGEBRA_HAS_CGAL
265 
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_isd.IMP_ALGEBRA_HAS_NUMPY
267 
268 IMP_ALGEBRA_HAS_ANN = _IMP_isd.IMP_ALGEBRA_HAS_ANN
269 
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_isd.IMPALGEBRA_SHOW_WARNINGS
271 
272 import IMP.algebra
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_isd.IMP_DISPLAY_HAS_IMP_CGAL
274 
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_isd.IMP_DISPLAY_HAS_BOOST_RANDOM
280 
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_isd.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 
283 IMP_DISPLAY_HAS_CGAL = _IMP_isd.IMP_DISPLAY_HAS_CGAL
284 
285 IMP_DISPLAY_HAS_NUMPY = _IMP_isd.IMP_DISPLAY_HAS_NUMPY
286 
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_isd.IMPDISPLAY_SHOW_WARNINGS
288 
289 import IMP.display
290 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 
292 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 
294 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 
296 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 
298 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 
300 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_CGAL
301 
302 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_HDF5
303 
304 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_isd.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 
306 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_isd.IMPSCOREFUNCTOR_SHOW_WARNINGS
307 
308 import IMP.score_functor
309 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_isd.IMP_STATISTICS_HAS_IMP_CGAL
310 
311 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
312 
313 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
314 
315 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_isd.IMP_STATISTICS_HAS_BOOST_RANDOM
316 
317 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_isd.IMP_STATISTICS_HAS_BOOST_SYSTEM
318 
319 IMP_STATISTICS_HAS_CGAL = _IMP_isd.IMP_STATISTICS_HAS_CGAL
320 
321 IMP_STATISTICS_HAS_NUMPY = _IMP_isd.IMP_STATISTICS_HAS_NUMPY
322 
323 IMPSTATISTICS_SHOW_WARNINGS = _IMP_isd.IMPSTATISTICS_SHOW_WARNINGS
324 
325 import IMP.statistics
326 IMP_CORE_HAS_IMP_CGAL = _IMP_isd.IMP_CORE_HAS_IMP_CGAL
327 
328 IMP_CORE_HAS_IMP_KERNEL = _IMP_isd.IMP_CORE_HAS_IMP_KERNEL
329 
330 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_CORE_HAS_BOOST_FILESYSTEM
331 
332 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
333 
334 IMP_CORE_HAS_BOOST_RANDOM = _IMP_isd.IMP_CORE_HAS_BOOST_RANDOM
335 
336 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_isd.IMP_CORE_HAS_BOOST_SYSTEM
337 
338 IMP_CORE_HAS_CGAL = _IMP_isd.IMP_CORE_HAS_CGAL
339 
340 IMP_CORE_HAS_HDF5 = _IMP_isd.IMP_CORE_HAS_HDF5
341 
342 IMP_CORE_HAS_NUMPY = _IMP_isd.IMP_CORE_HAS_NUMPY
343 
344 IMPCORE_SHOW_WARNINGS = _IMP_isd.IMPCORE_SHOW_WARNINGS
345 
346 import IMP.core
347 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_isd.IMP_CONTAINER_HAS_IMP_ALGEBRA
348 
349 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_isd.IMP_CONTAINER_HAS_IMP_CGAL
350 
351 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_isd.IMP_CONTAINER_HAS_IMP_DISPLAY
352 
353 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_isd.IMP_CONTAINER_HAS_IMP_KERNEL
354 
355 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
356 
357 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
358 
359 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
360 
361 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_isd.IMP_CONTAINER_HAS_BOOST_RANDOM
362 
363 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_isd.IMP_CONTAINER_HAS_BOOST_SYSTEM
364 
365 IMP_CONTAINER_HAS_CGAL = _IMP_isd.IMP_CONTAINER_HAS_CGAL
366 
367 IMP_CONTAINER_HAS_HDF5 = _IMP_isd.IMP_CONTAINER_HAS_HDF5
368 
369 IMP_CONTAINER_HAS_NUMPY = _IMP_isd.IMP_CONTAINER_HAS_NUMPY
370 
371 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_isd.IMP_CONTAINER_HAS_PYTHON_IHM
372 
373 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_isd.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
374 
375 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_isd.IMP_CONTAINER_HAS_ROBIN_MAP
376 
377 IMPCONTAINER_SHOW_WARNINGS = _IMP_isd.IMPCONTAINER_SHOW_WARNINGS
378 
379 import IMP.container
380 IMP_ATOM_HAS_IMP_CGAL = _IMP_isd.IMP_ATOM_HAS_IMP_CGAL
381 
382 IMP_ATOM_HAS_IMP_KERNEL = _IMP_isd.IMP_ATOM_HAS_IMP_KERNEL
383 
384 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
385 
386 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
387 
388 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_isd.IMP_ATOM_HAS_BOOST_RANDOM
389 
390 IMP_ATOM_HAS_BOOST_REGEX = _IMP_isd.IMP_ATOM_HAS_BOOST_REGEX
391 
392 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_isd.IMP_ATOM_HAS_BOOST_SYSTEM
393 
394 IMP_ATOM_HAS_CGAL = _IMP_isd.IMP_ATOM_HAS_CGAL
395 
396 IMP_ATOM_HAS_HDF5 = _IMP_isd.IMP_ATOM_HAS_HDF5
397 
398 IMP_ATOM_HAS_NUMPY = _IMP_isd.IMP_ATOM_HAS_NUMPY
399 
400 IMP_ATOM_HAS_PYTHON_IHM = _IMP_isd.IMP_ATOM_HAS_PYTHON_IHM
401 
402 IMPATOM_SHOW_WARNINGS = _IMP_isd.IMPATOM_SHOW_WARNINGS
403 
404 IMP_ATOM_TYPE_INDEX = _IMP_isd.IMP_ATOM_TYPE_INDEX
405 
406 IMP_RESIDUE_TYPE_INDEX = _IMP_isd.IMP_RESIDUE_TYPE_INDEX
407 
408 IMP_HIERARCHY_TYPE_INDEX = _IMP_isd.IMP_HIERARCHY_TYPE_INDEX
409 
410 IMP_CHAIN_TYPE_INDEX = _IMP_isd.IMP_CHAIN_TYPE_INDEX
411 
412 import IMP.atom
413 IMP_EM_HAS_IMP_CGAL = _IMP_isd.IMP_EM_HAS_IMP_CGAL
414 
415 IMP_EM_HAS_IMP_CONTAINER = _IMP_isd.IMP_EM_HAS_IMP_CONTAINER
416 
417 IMP_EM_HAS_IMP_DISPLAY = _IMP_isd.IMP_EM_HAS_IMP_DISPLAY
418 
419 IMP_EM_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_EM_HAS_IMP_SCORE_FUNCTOR
420 
421 IMP_EM_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_EM_HAS_BOOST_FILESYSTEM
422 
423 IMP_EM_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_EM_HAS_BOOST_PROGRAMOPTIONS
424 
425 IMP_EM_HAS_BOOST_RANDOM = _IMP_isd.IMP_EM_HAS_BOOST_RANDOM
426 
427 IMP_EM_HAS_BOOST_REGEX = _IMP_isd.IMP_EM_HAS_BOOST_REGEX
428 
429 IMP_EM_HAS_BOOST_SYSTEM = _IMP_isd.IMP_EM_HAS_BOOST_SYSTEM
430 
431 IMP_EM_HAS_CGAL = _IMP_isd.IMP_EM_HAS_CGAL
432 
433 IMP_EM_HAS_HDF5 = _IMP_isd.IMP_EM_HAS_HDF5
434 
435 IMP_EM_HAS_NUMPY = _IMP_isd.IMP_EM_HAS_NUMPY
436 
437 IMP_EM_HAS_PYTHON_IHM = _IMP_isd.IMP_EM_HAS_PYTHON_IHM
438 
439 IMPEM_SHOW_WARNINGS = _IMP_isd.IMPEM_SHOW_WARNINGS
440 
441 import IMP.em
442 IMP_SAXS_HAS_IMP_CGAL = _IMP_isd.IMP_SAXS_HAS_IMP_CGAL
443 
444 IMP_SAXS_HAS_IMP_CONTAINER = _IMP_isd.IMP_SAXS_HAS_IMP_CONTAINER
445 
446 IMP_SAXS_HAS_IMP_DISPLAY = _IMP_isd.IMP_SAXS_HAS_IMP_DISPLAY
447 
448 IMP_SAXS_HAS_IMP_KERNEL = _IMP_isd.IMP_SAXS_HAS_IMP_KERNEL
449 
450 IMP_SAXS_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_SAXS_HAS_IMP_SCORE_FUNCTOR
451 
452 IMP_SAXS_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_SAXS_HAS_BOOST_FILESYSTEM
453 
454 IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_SAXS_HAS_BOOST_PROGRAMOPTIONS
455 
456 IMP_SAXS_HAS_BOOST_RANDOM = _IMP_isd.IMP_SAXS_HAS_BOOST_RANDOM
457 
458 IMP_SAXS_HAS_BOOST_REGEX = _IMP_isd.IMP_SAXS_HAS_BOOST_REGEX
459 
460 IMP_SAXS_HAS_BOOST_SYSTEM = _IMP_isd.IMP_SAXS_HAS_BOOST_SYSTEM
461 
462 IMP_SAXS_HAS_CGAL = _IMP_isd.IMP_SAXS_HAS_CGAL
463 
464 IMP_SAXS_HAS_HDF5 = _IMP_isd.IMP_SAXS_HAS_HDF5
465 
466 IMP_SAXS_HAS_NUMPY = _IMP_isd.IMP_SAXS_HAS_NUMPY
467 
468 IMP_SAXS_HAS_PYTHON_IHM = _IMP_isd.IMP_SAXS_HAS_PYTHON_IHM
469 
470 IMPSAXS_SHOW_WARNINGS = _IMP_isd.IMPSAXS_SHOW_WARNINGS
471 
472 import IMP.saxs
473 IMP_ISD_HAS_IMP_CGAL = _IMP_isd.IMP_ISD_HAS_IMP_CGAL
474 
475 IMP_ISD_HAS_IMP_DISPLAY = _IMP_isd.IMP_ISD_HAS_IMP_DISPLAY
476 
477 IMP_ISD_HAS_IMP_SCORE_FUNCTOR = _IMP_isd.IMP_ISD_HAS_IMP_SCORE_FUNCTOR
478 
479 IMP_ISD_HAS_BOOST_FILESYSTEM = _IMP_isd.IMP_ISD_HAS_BOOST_FILESYSTEM
480 
481 IMP_ISD_HAS_BOOST_PROGRAMOPTIONS = _IMP_isd.IMP_ISD_HAS_BOOST_PROGRAMOPTIONS
482 
483 IMP_ISD_HAS_BOOST_RANDOM = _IMP_isd.IMP_ISD_HAS_BOOST_RANDOM
484 
485 IMP_ISD_HAS_BOOST_REGEX = _IMP_isd.IMP_ISD_HAS_BOOST_REGEX
486 
487 IMP_ISD_HAS_BOOST_SYSTEM = _IMP_isd.IMP_ISD_HAS_BOOST_SYSTEM
488 
489 IMP_ISD_HAS_CGAL = _IMP_isd.IMP_ISD_HAS_CGAL
490 
491 IMP_ISD_HAS_HDF5 = _IMP_isd.IMP_ISD_HAS_HDF5
492 
493 IMP_ISD_HAS_NUMPY = _IMP_isd.IMP_ISD_HAS_NUMPY
494 
495 IMP_ISD_HAS_PYTHON_IHM = _IMP_isd.IMP_ISD_HAS_PYTHON_IHM
496 
497 IMPISD_SHOW_WARNINGS = _IMP_isd.IMPISD_SHOW_WARNINGS
498 
499 
500 _object_types.append("ISDRestraint")
501 
502 
503 def _object_cast_to_ISDRestraint(o):
504  r"""_object_cast_to_ISDRestraint(Object o) -> ISDRestraint"""
505  return _IMP_isd._object_cast_to_ISDRestraint(o)
506 
507 _object_types.append("CrossLinkMSRestraint")
508 
509 
510 def _object_cast_to_CrossLinkMSRestraint(o):
511  r"""_object_cast_to_CrossLinkMSRestraint(Object o) -> CrossLinkMSRestraint"""
512  return _IMP_isd._object_cast_to_CrossLinkMSRestraint(o)
513 
514 _object_types.append("LogWrapper")
515 
516 
517 def _object_cast_to_LogWrapper(o):
518  r"""_object_cast_to_LogWrapper(Object o) -> LogWrapper"""
519  return _IMP_isd._object_cast_to_LogWrapper(o)
520 
521 _object_types.append("UniformPrior")
522 
523 
524 def _object_cast_to_UniformPrior(o):
525  r"""_object_cast_to_UniformPrior(Object o) -> UniformPrior"""
526  return _IMP_isd._object_cast_to_UniformPrior(o)
527 
528 _object_types.append("JeffreysRestraint")
529 
530 
531 def _object_cast_to_JeffreysRestraint(o):
532  r"""_object_cast_to_JeffreysRestraint(Object o) -> JeffreysRestraint"""
533  return _IMP_isd._object_cast_to_JeffreysRestraint(o)
534 
535 _object_types.append("NormalSigmaPCRestraint")
536 
537 
538 def _object_cast_to_NormalSigmaPCRestraint(o):
539  r"""_object_cast_to_NormalSigmaPCRestraint(Object o) -> NormalSigmaPCRestraint"""
540  return _IMP_isd._object_cast_to_NormalSigmaPCRestraint(o)
541 
542 _object_types.append("vonMisesKappaJeffreysRestraint")
543 
544 
545 def _object_cast_to_vonMisesKappaJeffreysRestraint(o):
546  r"""_object_cast_to_vonMisesKappaJeffreysRestraint(Object o) -> vonMisesKappaJeffreysRestraint"""
547  return _IMP_isd._object_cast_to_vonMisesKappaJeffreysRestraint(o)
548 
549 _object_types.append("vonMisesKappaConjugateRestraint")
550 
551 
552 def _object_cast_to_vonMisesKappaConjugateRestraint(o):
553  r"""_object_cast_to_vonMisesKappaConjugateRestraint(Object o) -> vonMisesKappaConjugateRestraint"""
554  return _IMP_isd._object_cast_to_vonMisesKappaConjugateRestraint(o)
555 
556 _object_types.append("Distribution")
557 
558 
559 def _object_cast_to_Distribution(o):
560  r"""_object_cast_to_Distribution(Object o) -> Distribution"""
561  return _IMP_isd._object_cast_to_Distribution(o)
562 
563 _object_types.append("OneDimensionalDistribution")
564 
565 
566 def _object_cast_to_OneDimensionalDistribution(o):
567  r"""_object_cast_to_OneDimensionalDistribution(Object o) -> OneDimensionalDistribution"""
568  return _IMP_isd._object_cast_to_OneDimensionalDistribution(o)
569 
570 _object_types.append("OneDimensionalSufficientDistribution")
571 
572 
573 def _object_cast_to_OneDimensionalSufficientDistribution(o):
574  r"""_object_cast_to_OneDimensionalSufficientDistribution(Object o) -> OneDimensionalSufficientDistribution"""
575  return _IMP_isd._object_cast_to_OneDimensionalSufficientDistribution(o)
576 
577 _object_types.append("FNormal")
578 
579 
580 def _object_cast_to_FNormal(o):
581  r"""_object_cast_to_FNormal(Object o) -> FNormal"""
582  return _IMP_isd._object_cast_to_FNormal(o)
583 
584 _object_types.append("FStudentT")
585 
586 
587 def _object_cast_to_FStudentT(o):
588  r"""_object_cast_to_FStudentT(Object o) -> FStudentT"""
589  return _IMP_isd._object_cast_to_FStudentT(o)
590 
591 _object_types.append("vonMises")
592 
593 
594 def _object_cast_to_vonMises(o):
595  r"""_object_cast_to_vonMises(Object o) -> vonMises"""
596  return _IMP_isd._object_cast_to_vonMises(o)
597 
598 _object_types.append("vonMisesSufficient")
599 
600 
601 def _object_cast_to_vonMisesSufficient(o):
602  r"""_object_cast_to_vonMisesSufficient(Object o) -> vonMisesSufficient"""
603  return _IMP_isd._object_cast_to_vonMisesSufficient(o)
604 
605 _object_types.append("PenalizedComplexityPrior")
606 
607 
608 def _object_cast_to_PenalizedComplexityPrior(o):
609  r"""_object_cast_to_PenalizedComplexityPrior(Object o) -> PenalizedComplexityPrior"""
610  return _IMP_isd._object_cast_to_PenalizedComplexityPrior(o)
611 
612 def Nuisances(l=[]):
613  return [Nuisance(x) for x in l]
614 _plural_types.append("Nuisances")
615 
616 
617 _value_types.append("Nuisance")
618 
619 
620 def Scales(l=[]):
621  return [Scale(x) for x in l]
622 _plural_types.append("Scales")
623 
624 
625 _value_types.append("Scale")
626 
627 
628 def Switchings(l=[]):
629  return [Switching(x) for x in l]
630 _plural_types.append("Switchings")
631 
632 
633 _value_types.append("Switching")
634 
635 
636 _object_types.append("NOERestraint")
637 
638 
639 def _object_cast_to_NOERestraint(o):
640  r"""_object_cast_to_NOERestraint(Object o) -> NOERestraint"""
641  return _IMP_isd._object_cast_to_NOERestraint(o)
642 
643 def Weights(l=[]):
644  return [Weight(x) for x in l]
645 _plural_types.append("Weights")
646 
647 
648 _value_types.append("Weight")
649 
650 
651 _object_types.append("GaussianRestraint")
652 
653 
654 def _object_cast_to_GaussianRestraint(o):
655  r"""_object_cast_to_GaussianRestraint(Object o) -> GaussianRestraint"""
656  return _IMP_isd._object_cast_to_GaussianRestraint(o)
657 
658 _object_types.append("StudentTRestraint")
659 
660 
661 def _object_cast_to_StudentTRestraint(o):
662  r"""_object_cast_to_StudentTRestraint(Object o) -> StudentTRestraint"""
663  return _IMP_isd._object_cast_to_StudentTRestraint(o)
664 
665 _object_types.append("LognormalRestraint")
666 
667 
668 def _object_cast_to_LognormalRestraint(o):
669  r"""_object_cast_to_LognormalRestraint(Object o) -> LognormalRestraint"""
670  return _IMP_isd._object_cast_to_LognormalRestraint(o)
671 
672 _object_types.append("LognormalAmbiguousRestraint")
673 
674 
675 def _object_cast_to_LognormalAmbiguousRestraint(o):
676  r"""_object_cast_to_LognormalAmbiguousRestraint(Object o) -> LognormalAmbiguousRestraint"""
677  return _IMP_isd._object_cast_to_LognormalAmbiguousRestraint(o)
678 
679 _object_types.append("AmbiguousNOERestraint")
680 
681 
682 def _object_cast_to_AmbiguousNOERestraint(o):
683  r"""_object_cast_to_AmbiguousNOERestraint(Object o) -> AmbiguousNOERestraint"""
684  return _IMP_isd._object_cast_to_AmbiguousNOERestraint(o)
685 
686 _object_types.append("MarginalNOERestraint")
687 
688 
689 def _object_cast_to_MarginalNOERestraint(o):
690  r"""_object_cast_to_MarginalNOERestraint(Object o) -> MarginalNOERestraint"""
691  return _IMP_isd._object_cast_to_MarginalNOERestraint(o)
692 
693 _object_types.append("MarginalHBondRestraint")
694 
695 
696 def _object_cast_to_MarginalHBondRestraint(o):
697  r"""_object_cast_to_MarginalHBondRestraint(Object o) -> MarginalHBondRestraint"""
698  return _IMP_isd._object_cast_to_MarginalHBondRestraint(o)
699 
700 _object_types.append("TALOSRestraint")
701 
702 
703 def _object_cast_to_TALOSRestraint(o):
704  r"""_object_cast_to_TALOSRestraint(Object o) -> TALOSRestraint"""
705  return _IMP_isd._object_cast_to_TALOSRestraint(o)
706 
707 _object_types.append("RepulsiveDistancePairScore")
708 
709 
710 def _object_cast_to_RepulsiveDistancePairScore(o):
711  r"""_object_cast_to_RepulsiveDistancePairScore(Object o) -> RepulsiveDistancePairScore"""
712  return _IMP_isd._object_cast_to_RepulsiveDistancePairScore(o)
713 
714 _object_types.append("AmbiguousRestraint")
715 
716 
717 def _object_cast_to_AmbiguousRestraint(o):
718  r"""_object_cast_to_AmbiguousRestraint(Object o) -> AmbiguousRestraint"""
719  return _IMP_isd._object_cast_to_AmbiguousRestraint(o)
720 
721 _object_types.append("UnivariateFunction")
722 
723 
724 def _object_cast_to_UnivariateFunction(o):
725  r"""_object_cast_to_UnivariateFunction(Object o) -> UnivariateFunction"""
726  return _IMP_isd._object_cast_to_UnivariateFunction(o)
727 
728 _object_types.append("Linear1DFunction")
729 
730 
731 def _object_cast_to_Linear1DFunction(o):
732  r"""_object_cast_to_Linear1DFunction(Object o) -> Linear1DFunction"""
733  return _IMP_isd._object_cast_to_Linear1DFunction(o)
734 
735 _object_types.append("GeneralizedGuinierPorodFunction")
736 
737 
738 def _object_cast_to_GeneralizedGuinierPorodFunction(o):
739  r"""_object_cast_to_GeneralizedGuinierPorodFunction(Object o) -> GeneralizedGuinierPorodFunction"""
740  return _IMP_isd._object_cast_to_GeneralizedGuinierPorodFunction(o)
741 
742 _object_types.append("BivariateFunction")
743 
744 
745 def _object_cast_to_BivariateFunction(o):
746  r"""_object_cast_to_BivariateFunction(Object o) -> BivariateFunction"""
747  return _IMP_isd._object_cast_to_BivariateFunction(o)
748 
749 _object_types.append("Covariance1DFunction")
750 
751 
752 def _object_cast_to_Covariance1DFunction(o):
753  r"""_object_cast_to_Covariance1DFunction(Object o) -> Covariance1DFunction"""
754  return _IMP_isd._object_cast_to_Covariance1DFunction(o)
755 
756 _object_types.append("GaussianProcessInterpolation")
757 
758 
759 def _object_cast_to_GaussianProcessInterpolation(o):
760  r"""_object_cast_to_GaussianProcessInterpolation(Object o) -> GaussianProcessInterpolation"""
761  return _IMP_isd._object_cast_to_GaussianProcessInterpolation(o)
762 
763 _object_types.append("GaussianProcessInterpolationRestraint")
764 
765 
766 def _object_cast_to_GaussianProcessInterpolationRestraint(o):
767  r"""_object_cast_to_GaussianProcessInterpolationRestraint(Object o) -> GaussianProcessInterpolationRestraint"""
768  return _IMP_isd._object_cast_to_GaussianProcessInterpolationRestraint(o)
769 
770 _object_types.append("MolecularDynamics")
771 
772 
773 _object_types.append("MolecularDynamicsMover")
774 
775 
776 def _object_cast_to_MolecularDynamicsMover(o):
777  r"""_object_cast_to_MolecularDynamicsMover(Object o) -> MolecularDynamicsMover"""
778  return _IMP_isd._object_cast_to_MolecularDynamicsMover(o)
779 
780 _object_types.append("HybridMonteCarlo")
781 
782 
783 def _object_cast_to_HybridMonteCarlo(o):
784  r"""_object_cast_to_HybridMonteCarlo(Object o) -> HybridMonteCarlo"""
785  return _IMP_isd._object_cast_to_HybridMonteCarlo(o)
786 
787 _object_types.append("FretData")
788 
789 
790 def _object_cast_to_FretData(o):
791  r"""_object_cast_to_FretData(Object o) -> FretData"""
792  return _IMP_isd._object_cast_to_FretData(o)
793 
794 _object_types.append("FretRestraint")
795 
796 
797 def _object_cast_to_FretRestraint(o):
798  r"""_object_cast_to_FretRestraint(Object o) -> FretRestraint"""
799  return _IMP_isd._object_cast_to_FretRestraint(o)
800 
801 _object_types.append("CrossLinkData")
802 
803 
804 def _object_cast_to_CrossLinkData(o):
805  r"""_object_cast_to_CrossLinkData(Object o) -> CrossLinkData"""
806  return _IMP_isd._object_cast_to_CrossLinkData(o)
807 
808 _object_types.append("CysteineCrossLinkData")
809 
810 
811 def _object_cast_to_CysteineCrossLinkData(o):
812  r"""_object_cast_to_CysteineCrossLinkData(Object o) -> CysteineCrossLinkData"""
813  return _IMP_isd._object_cast_to_CysteineCrossLinkData(o)
814 
815 _object_types.append("CysteineCrossLinkRestraint")
816 
817 
818 def _object_cast_to_CysteineCrossLinkRestraint(o):
819  r"""_object_cast_to_CysteineCrossLinkRestraint(Object o) -> CysteineCrossLinkRestraint"""
820  return _IMP_isd._object_cast_to_CysteineCrossLinkRestraint(o)
821 
822 _object_types.append("WeightMover")
823 
824 
825 def _object_cast_to_WeightMover(o):
826  r"""_object_cast_to_WeightMover(Object o) -> WeightMover"""
827  return _IMP_isd._object_cast_to_WeightMover(o)
828 
829 _object_types.append("WeightRestraint")
830 
831 
832 def _object_cast_to_WeightRestraint(o):
833  r"""_object_cast_to_WeightRestraint(Object o) -> WeightRestraint"""
834  return _IMP_isd._object_cast_to_WeightRestraint(o)
835 
836 _object_types.append("AtomicCrossLinkMSRestraint")
837 
838 
839 def _object_cast_to_AtomicCrossLinkMSRestraint(o):
840  r"""_object_cast_to_AtomicCrossLinkMSRestraint(Object o) -> AtomicCrossLinkMSRestraint"""
841  return _IMP_isd._object_cast_to_AtomicCrossLinkMSRestraint(o)
842 
843 _object_types.append("GaussianEMRestraint")
844 
845 
846 def _object_cast_to_GaussianEMRestraint(o):
847  r"""_object_cast_to_GaussianEMRestraint(Object o) -> GaussianEMRestraint"""
848  return _IMP_isd._object_cast_to_GaussianEMRestraint(o)
849 
850 _object_types.append("GaussianAnchorEMRestraint")
851 
852 
853 def _object_cast_to_GaussianAnchorEMRestraint(o):
854  r"""_object_cast_to_GaussianAnchorEMRestraint(Object o) -> GaussianAnchorEMRestraint"""
855  return _IMP_isd._object_cast_to_GaussianAnchorEMRestraint(o)
856 
857 _object_types.append("GammaPrior")
858 
859 
860 def _object_cast_to_GammaPrior(o):
861  r"""_object_cast_to_GammaPrior(Object o) -> GammaPrior"""
862  return _IMP_isd._object_cast_to_GammaPrior(o)
863 
864 _object_types.append("ResidueProteinProximityRestraint")
865 
866 
867 def _object_cast_to_ResidueProteinProximityRestraint(o):
868  r"""_object_cast_to_ResidueProteinProximityRestraint(Object o) -> ResidueProteinProximityRestraint"""
869  return _IMP_isd._object_cast_to_ResidueProteinProximityRestraint(o)
870 
871 def create_model_and_particles():
872  m= IMP.Model()
875  IMP.algebra.Vector3D(10,10,10))
876  for i in range(0,100):
877  p= IMP.Particle(m)
878  sc.add_particle(p)
880  d.set_coordinates_are_optimized(True)
881  return (m, sc)
882 
883 class ISDRestraint(IMP.Restraint):
884  r"""Proxy of C++ IMP::isd::ISDRestraint class."""
885 
886  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
887 
888  def __init__(self, m, name):
889  r"""__init__(ISDRestraint self, Model m, std::string name) -> ISDRestraint"""
890  if self.__class__ == ISDRestraint:
891  _self = None
892  else:
893  _self = self
894  _IMP_isd.ISDRestraint_swiginit(self, _IMP_isd.new_ISDRestraint(_self, m, name))
895 
896  if self.__class__ != ISDRestraint:
897  _director_objects.register(self)
898 
899 
900 
901 
902  def get_probability(self):
903  r"""get_probability(ISDRestraint self) -> double"""
904  return _IMP_isd.ISDRestraint_get_probability(self)
905 
906  def unprotected_evaluate(self, accum):
907  r"""unprotected_evaluate(ISDRestraint self, DerivativeAccumulator accum) -> double"""
908  return _IMP_isd.ISDRestraint_unprotected_evaluate(self, accum)
909 
910  def do_get_inputs(self):
911  r"""do_get_inputs(ISDRestraint self) -> IMP::ModelObjectsTemp"""
912  return _IMP_isd.ISDRestraint_do_get_inputs(self)
913 
914  def get_type_name(self):
915  r"""get_type_name(ISDRestraint self) -> std::string"""
916  return _IMP_isd.ISDRestraint_get_type_name(self)
917 
918  def get_version_info(self):
919  r"""get_version_info(ISDRestraint self) -> VersionInfo"""
920  return _IMP_isd.ISDRestraint_get_version_info(self)
921  __swig_destroy__ = _IMP_isd.delete_ISDRestraint
922 
923  def __str__(self):
924  r"""__str__(ISDRestraint self) -> std::string"""
925  return _IMP_isd.ISDRestraint___str__(self)
926 
927  def __repr__(self):
928  r"""__repr__(ISDRestraint self) -> std::string"""
929  return _IMP_isd.ISDRestraint___repr__(self)
930 
931  @staticmethod
932  def get_from(o):
933  return _object_cast_to_ISDRestraint(o)
934 
935 
936  def get_type_name(self):
937  return self.__class__.__name__
938  def do_show(self, out):
939  pass
940  def get_version_info(self):
941  if"IMP::isd" == "IMP":
942  return VersionInfo(self.__module__,
943  __import__(self.__module__).get_module_version())
944  else:
945  return IMP.VersionInfo(self.__module__,
946  __import__(self.__module__).get_module_version())
947  @staticmethod
948  def get_from(o):
949  return _object_cast_to_ISDRestraint(o)
950 
951  def __disown__(self):
952  self.this.disown()
953  _IMP_isd.disown_ISDRestraint(self)
954  return weakref.proxy(self)
955 
956  def do_destroy(self):
957  r"""do_destroy(ISDRestraint self)"""
958  return _IMP_isd.ISDRestraint_do_destroy(self)
959 
960  def handle_set_has_required_score_states(self, arg0):
961  r"""handle_set_has_required_score_states(ISDRestraint self, bool arg0)"""
962  return _IMP_isd.ISDRestraint_handle_set_has_required_score_states(self, arg0)
963 
964  def do_get_outputs(self):
965  r"""do_get_outputs(ISDRestraint self) -> IMP::ModelObjectsTemp"""
966  return _IMP_isd.ISDRestraint_do_get_outputs(self)
967 
968  def do_get_interactions(self):
969  r"""do_get_interactions(ISDRestraint self) -> IMP::ModelObjectsTemps"""
970  return _IMP_isd.ISDRestraint_do_get_interactions(self)
971 
972  def do_create_decomposition(self):
973  r"""do_create_decomposition(ISDRestraint self) -> IMP::Restraints"""
974  return _IMP_isd.ISDRestraint_do_create_decomposition(self)
975 
976  def do_create_current_decomposition(self):
977  r"""do_create_current_decomposition(ISDRestraint self) -> IMP::Restraints"""
978  return _IMP_isd.ISDRestraint_do_create_current_decomposition(self)
979 
980  def do_add_score_and_derivatives(self, sa):
981  r"""do_add_score_and_derivatives(ISDRestraint self, ScoreAccumulator sa)"""
982  return _IMP_isd.ISDRestraint_do_add_score_and_derivatives(self, sa)
983 
984  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
985  r"""do_add_score_and_derivatives_moved(ISDRestraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
986  return _IMP_isd.ISDRestraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
987 
988 # Register ISDRestraint in _IMP_isd:
989 _IMP_isd.ISDRestraint_swigregister(ISDRestraint)
990 class CrossLinkMSRestraint(IMP.Restraint):
991  r"""Proxy of C++ IMP::isd::CrossLinkMSRestraint class."""
992 
993  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
994 
995  def __init__(self, *args):
996  r"""
997  __init__(CrossLinkMSRestraint self, Model m, double length, bool get_log_prob=False, std::string name="CrossLinkMSRestraint%1%") -> CrossLinkMSRestraint
998  __init__(CrossLinkMSRestraint self, Model m, _ParticleIndexAdaptor lengthi, bool get_log_prob=False, std::string name="CrossLinkMSRestraint%1%") -> CrossLinkMSRestraint
999  __init__(CrossLinkMSRestraint self, Model m, double length, double slope, bool get_log_prob=False, std::string name="CrossLinkMSRestraint%1%") -> CrossLinkMSRestraint
1000  __init__(CrossLinkMSRestraint self) -> CrossLinkMSRestraint
1001  """
1002  _IMP_isd.CrossLinkMSRestraint_swiginit(self, _IMP_isd.new_CrossLinkMSRestraint(*args))
1003 
1004  def set_source_protein1(self, protein1):
1005  r"""set_source_protein1(CrossLinkMSRestraint self, std::string protein1)"""
1006  return _IMP_isd.CrossLinkMSRestraint_set_source_protein1(self, protein1)
1007 
1008  def get_source_protein1(self):
1009  r"""get_source_protein1(CrossLinkMSRestraint self) -> std::string"""
1010  return _IMP_isd.CrossLinkMSRestraint_get_source_protein1(self)
1011 
1012  def set_source_protein2(self, protein2):
1013  r"""set_source_protein2(CrossLinkMSRestraint self, std::string protein2)"""
1014  return _IMP_isd.CrossLinkMSRestraint_set_source_protein2(self, protein2)
1015 
1016  def get_source_protein2(self):
1017  r"""get_source_protein2(CrossLinkMSRestraint self) -> std::string"""
1018  return _IMP_isd.CrossLinkMSRestraint_get_source_protein2(self)
1019 
1020  def set_source_residue1(self, residue1):
1021  r"""set_source_residue1(CrossLinkMSRestraint self, int residue1)"""
1022  return _IMP_isd.CrossLinkMSRestraint_set_source_residue1(self, residue1)
1023 
1024  def get_source_residue1(self):
1025  r"""get_source_residue1(CrossLinkMSRestraint self) -> int"""
1026  return _IMP_isd.CrossLinkMSRestraint_get_source_residue1(self)
1027 
1028  def set_source_residue2(self, residue2):
1029  r"""set_source_residue2(CrossLinkMSRestraint self, int residue2)"""
1030  return _IMP_isd.CrossLinkMSRestraint_set_source_residue2(self, residue2)
1031 
1032  def get_source_residue2(self):
1033  r"""get_source_residue2(CrossLinkMSRestraint self) -> int"""
1034  return _IMP_isd.CrossLinkMSRestraint_get_source_residue2(self)
1035 
1036  def add_contribution(self, pps, sigmas, psi):
1037  r"""add_contribution(CrossLinkMSRestraint self, IMP::ParticleIndexPair const & pps, IMP::ParticleIndexPair const & sigmas, ParticleIndex psi)"""
1038  return _IMP_isd.CrossLinkMSRestraint_add_contribution(self, pps, sigmas, psi)
1039 
1040  def get_probability(self):
1041  r"""get_probability(CrossLinkMSRestraint self) -> double"""
1042  return _IMP_isd.CrossLinkMSRestraint_get_probability(self)
1043 
1044  def get_length(self):
1045  r"""get_length(CrossLinkMSRestraint self) -> double"""
1046  return _IMP_isd.CrossLinkMSRestraint_get_length(self)
1047 
1048  def get_is_length_variable(self):
1049  r"""get_is_length_variable(CrossLinkMSRestraint self) -> bool"""
1050  return _IMP_isd.CrossLinkMSRestraint_get_is_length_variable(self)
1051 
1052  def get_has_slope(self):
1053  r"""get_has_slope(CrossLinkMSRestraint self) -> bool"""
1054  return _IMP_isd.CrossLinkMSRestraint_get_has_slope(self)
1055 
1056  def get_slope(self):
1057  r"""get_slope(CrossLinkMSRestraint self) -> double"""
1058  return _IMP_isd.CrossLinkMSRestraint_get_slope(self)
1059 
1060  def get_log_prob(self):
1061  r"""get_log_prob(CrossLinkMSRestraint self) -> bool"""
1062  return _IMP_isd.CrossLinkMSRestraint_get_log_prob(self)
1063 
1064  def get_contribution_sigma_indexes(self, i):
1065  r"""get_contribution_sigma_indexes(CrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
1066  return _IMP_isd.CrossLinkMSRestraint_get_contribution_sigma_indexes(self, i)
1067 
1068  def get_contribution_psi_index(self, i):
1069  r"""get_contribution_psi_index(CrossLinkMSRestraint self, int i) -> ParticleIndex"""
1070  return _IMP_isd.CrossLinkMSRestraint_get_contribution_psi_index(self, i)
1071 
1072  def get_contribution_particle_indexes(self, i):
1073  r"""get_contribution_particle_indexes(CrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
1074  return _IMP_isd.CrossLinkMSRestraint_get_contribution_particle_indexes(self, i)
1075 
1076  def get_number_of_contributions(self):
1077  r"""get_number_of_contributions(CrossLinkMSRestraint self) -> unsigned int"""
1078  return _IMP_isd.CrossLinkMSRestraint_get_number_of_contributions(self)
1079 
1080  def do_get_inputs(self):
1081  r"""do_get_inputs(CrossLinkMSRestraint self) -> IMP::ModelObjectsTemp"""
1082  return _IMP_isd.CrossLinkMSRestraint_do_get_inputs(self)
1083 
1084  def get_version_info(self):
1085  r"""get_version_info(CrossLinkMSRestraint self) -> VersionInfo"""
1086  return _IMP_isd.CrossLinkMSRestraint_get_version_info(self)
1087  __swig_destroy__ = _IMP_isd.delete_CrossLinkMSRestraint
1088 
1089  def __str__(self):
1090  r"""__str__(CrossLinkMSRestraint self) -> std::string"""
1091  return _IMP_isd.CrossLinkMSRestraint___str__(self)
1092 
1093  def __repr__(self):
1094  r"""__repr__(CrossLinkMSRestraint self) -> std::string"""
1095  return _IMP_isd.CrossLinkMSRestraint___repr__(self)
1096 
1097  @staticmethod
1098  def get_from(o):
1099  return _object_cast_to_CrossLinkMSRestraint(o)
1100 
1101 
1102  def _get_as_binary(self):
1103  r"""_get_as_binary(CrossLinkMSRestraint self) -> PyObject *"""
1104  return _IMP_isd.CrossLinkMSRestraint__get_as_binary(self)
1105 
1106  def _set_from_binary(self, p):
1107  r"""_set_from_binary(CrossLinkMSRestraint self, PyObject * p)"""
1108  return _IMP_isd.CrossLinkMSRestraint__set_from_binary(self, p)
1109 
1110  def __getstate__(self):
1111  p = self._get_as_binary()
1112  if len(self.__dict__) > 1:
1113  d = self.__dict__.copy()
1114  del d['this']
1115  p = (d, p)
1116  return p
1117 
1118  def __setstate__(self, p):
1119  if not hasattr(self, 'this'):
1120  self.__init__()
1121  if isinstance(p, tuple):
1122  d, p = p
1123  self.__dict__.update(d)
1124  return self._set_from_binary(p)
1125 
1126 
1127  def _get_contributions_sigma_numpy(self):
1128  import numpy
1129  n = self.get_number_of_contributions()
1130  ret = numpy.empty((n, 2), int)
1131  for i in range(n):
1132  ret[i] = self.get_contribution_sigma_indexes(i)
1133  return ret
1134 
1135  def _get_contributions_psi_numpy(self):
1136  import numpy
1137  n = self.get_number_of_contributions()
1138  ret = numpy.empty(n, int)
1139  for i in range(n):
1140  ret[i] = self.get_contribution_psi_index(i)
1141  return ret
1142 
1143  def _get_contributions_particles_numpy(self):
1144  import numpy
1145  n = self.get_number_of_contributions()
1146  ret = numpy.empty((n, 2), int)
1147  for i in range(n):
1148  ret[i] = self.get_contribution_particle_indexes(i)
1149  return ret
1150 
1151  def _get_python_evaluate(self):
1152  from numba import njit
1153  import numpy.linalg
1154  import math
1155 
1156  @njit
1157  def sphere_cap(r1, r2, d):
1158  sc = 0.
1159  if d <= max(r1, r2) - min(r1, r2):
1160  sc = min(4.0 / 3.0 * math.pi * r1 * r1 * r1,
1161  4.0 / 3.0 * math.pi * r2 * r2 * r2)
1162  elif d >= r1 + r2:
1163  sc = 0.
1164  else:
1165  sc = ((math.pi / 12 / d * (r1 + r2 - d) * (r1 + r2 - d)) *
1166  (d * d + 2 * d * r1 - 3 * r1 * r1 + 2 * d * r2
1167  + 6 * r1 * r2 - 3 * r2 * r2))
1168  return sc
1169 
1170  @njit
1171  def get_probability(xyz, scale, ps, ncontrib, sigma, psi, length,
1172  slope):
1173  onemprob = 1.0
1174  for k in range(ncontrib):
1175  dist = numpy.linalg.norm(xyz[ps[k, 0]] - xyz[ps[k, 1]])
1176  if dist < 0.0001:
1177  dist = 0.0001
1178  psik = scale[psi[k]]
1179  sigmai = scale[sigma[k, 0]]
1180  sigmaj = scale[sigma[k, 1]]
1181 
1182  voli = 4.0 / 3.0 * math.pi * sigmai * sigmai * sigmai
1183  volj = 4.0 / 3.0 * math.pi * sigmaj * sigmaj * sigmaj
1184 
1185  if dist < sigmai + sigmaj:
1186  xlvol = (4.0 / 3.0 * math.pi * (length / 2.)
1187  * (length / 2.) * (length / 2))
1188  fi = min(voli, xlvol)
1189  fj = min(volj, xlvol)
1190  else:
1191  di = dist - sigmaj - length / 2.
1192  dj = dist - sigmai - length / 2.
1193  fi = sphere_cap(sigmai, length / 2., abs(di))
1194  fj = sphere_cap(sigmaj, length / 2., abs(dj))
1195 
1196  pofr = fi * fj / voli / volj
1197  if slope is not None:
1198  prior = math.exp(slope * dist)
1199  onemprob = onemprob * (1.0 - (psik * (1.0 - pofr)
1200  + pofr * (1 - psik)) * prior)
1201  else:
1202  onemprob = onemprob * (1.0 - (psik * (1.0 - pofr)
1203  + pofr * (1 - psik)))
1204  return 1.0 - onemprob
1205 
1206  if self.get_is_length_variable():
1207  raise NotImplementedError("Only implemented for fixed-length")
1208  m = self.get_model()
1209  xyz, radius = m.get_spheres_numpy()
1210  scale = m.get_floats_numpy(IMP.isd.Scale.get_scale_key())
1211  sigma = self._get_contributions_sigma_numpy()
1212  psi = self._get_contributions_psi_numpy()
1213  pis = self._get_contributions_particles_numpy()
1214  get_log_prob = self.get_log_prob()
1215  length = self.get_length()
1216  ncontrib = len(sigma)
1217  slope = self.get_slope() if self.get_has_slope() else None
1218 
1219  @njit
1220  def scorefunc():
1221  prob = get_probability(xyz, scale, pis, ncontrib, sigma, psi,
1222  length, slope)
1223  if get_log_prob:
1224  return -math.log(prob)
1225  else:
1226  return prob
1227 
1228  return scorefunc
1229 
1230 
1231 # Register CrossLinkMSRestraint in _IMP_isd:
1232 _IMP_isd.CrossLinkMSRestraint_swigregister(CrossLinkMSRestraint)
1233 class LogWrapper(IMP.RestraintSet):
1234  r"""Proxy of C++ IMP::isd::LogWrapper class."""
1235 
1236  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1237 
1238  def __init__(self, *args):
1239  r"""
1240  __init__(LogWrapper self, Model m, double weight, std::string const & name="LogWrapper %1%") -> LogWrapper
1241  __init__(LogWrapper self, Model m, std::string const & name="LogWrapper %1%") -> LogWrapper
1242  __init__(LogWrapper self, IMP::RestraintsTemp const & rs, double weight, std::string const & name="LogWrapper %1%") -> LogWrapper
1243  __init__(LogWrapper self) -> LogWrapper
1244  """
1245  _IMP_isd.LogWrapper_swiginit(self, _IMP_isd.new_LogWrapper(*args))
1246 
1247  def do_add_score_and_derivatives(self, sa):
1248  r"""do_add_score_and_derivatives(LogWrapper self, ScoreAccumulator sa)"""
1249  return _IMP_isd.LogWrapper_do_add_score_and_derivatives(self, sa)
1250 
1251  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
1252  r"""do_add_score_and_derivatives_moved(LogWrapper self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1253  return _IMP_isd.LogWrapper_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
1254  __swig_destroy__ = _IMP_isd.delete_LogWrapper
1255 
1256  def __str__(self):
1257  r"""__str__(LogWrapper self) -> std::string"""
1258  return _IMP_isd.LogWrapper___str__(self)
1259 
1260  def __repr__(self):
1261  r"""__repr__(LogWrapper self) -> std::string"""
1262  return _IMP_isd.LogWrapper___repr__(self)
1263 
1264  @staticmethod
1265  def get_from(o):
1266  return _object_cast_to_LogWrapper(o)
1267 
1268 
1269  def _get_as_binary(self):
1270  r"""_get_as_binary(LogWrapper self) -> PyObject *"""
1271  return _IMP_isd.LogWrapper__get_as_binary(self)
1272 
1273  def _set_from_binary(self, p):
1274  r"""_set_from_binary(LogWrapper self, PyObject * p)"""
1275  return _IMP_isd.LogWrapper__set_from_binary(self, p)
1276 
1277  def __getstate__(self):
1278  p = self._get_as_binary()
1279  if len(self.__dict__) > 1:
1280  d = self.__dict__.copy()
1281  del d['this']
1282  p = (d, p)
1283  return p
1284 
1285  def __setstate__(self, p):
1286  if not hasattr(self, 'this'):
1287  self.__init__()
1288  if isinstance(p, tuple):
1289  d, p = p
1290  self.__dict__.update(d)
1291  return self._set_from_binary(p)
1292 
1293 
1294 # Register LogWrapper in _IMP_isd:
1295 _IMP_isd.LogWrapper_swigregister(LogWrapper)
1296 class UniformPrior(IMP.Restraint):
1297  r"""Proxy of C++ IMP::isd::UniformPrior class."""
1298 
1299  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1300 
1301  def __init__(self, *args):
1302  r"""
1303  __init__(UniformPrior self, Model m, Particle p, double k, double upperb, double lowerb, std::string name="UniformPrior%1%") -> UniformPrior
1304  __init__(UniformPrior self) -> UniformPrior
1305  """
1306  _IMP_isd.UniformPrior_swiginit(self, _IMP_isd.new_UniformPrior(*args))
1307 
1308  def do_get_inputs(self):
1309  r"""do_get_inputs(UniformPrior self) -> IMP::ModelObjectsTemp"""
1310  return _IMP_isd.UniformPrior_do_get_inputs(self)
1311 
1312  def get_version_info(self):
1313  r"""get_version_info(UniformPrior self) -> VersionInfo"""
1314  return _IMP_isd.UniformPrior_get_version_info(self)
1315  __swig_destroy__ = _IMP_isd.delete_UniformPrior
1316 
1317  def get_probability(self):
1318  r"""get_probability(UniformPrior self) -> double"""
1319  return _IMP_isd.UniformPrior_get_probability(self)
1320 
1321  def __str__(self):
1322  r"""__str__(UniformPrior self) -> std::string"""
1323  return _IMP_isd.UniformPrior___str__(self)
1324 
1325  def __repr__(self):
1326  r"""__repr__(UniformPrior self) -> std::string"""
1327  return _IMP_isd.UniformPrior___repr__(self)
1328 
1329  @staticmethod
1330  def get_from(o):
1331  return _object_cast_to_UniformPrior(o)
1332 
1333 
1334  def _get_as_binary(self):
1335  r"""_get_as_binary(UniformPrior self) -> PyObject *"""
1336  return _IMP_isd.UniformPrior__get_as_binary(self)
1337 
1338  def _set_from_binary(self, p):
1339  r"""_set_from_binary(UniformPrior self, PyObject * p)"""
1340  return _IMP_isd.UniformPrior__set_from_binary(self, p)
1341 
1342  def __getstate__(self):
1343  p = self._get_as_binary()
1344  if len(self.__dict__) > 1:
1345  d = self.__dict__.copy()
1346  del d['this']
1347  p = (d, p)
1348  return p
1349 
1350  def __setstate__(self, p):
1351  if not hasattr(self, 'this'):
1352  self.__init__()
1353  if isinstance(p, tuple):
1354  d, p = p
1355  self.__dict__.update(d)
1356  return self._set_from_binary(p)
1357 
1358 
1359 # Register UniformPrior in _IMP_isd:
1360 _IMP_isd.UniformPrior_swigregister(UniformPrior)
1361 class Nuisance(IMP.Decorator):
1362  r"""Proxy of C++ IMP::isd::Nuisance class."""
1363 
1364  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1365 
1366  def __init__(self, *args):
1367  r"""
1368  __init__(Nuisance self) -> Nuisance
1369  __init__(Nuisance self, Model m, ParticleIndex id) -> Nuisance
1370  __init__(Nuisance self, _ParticleAdaptor d) -> Nuisance
1371  """
1372  _IMP_isd.Nuisance_swiginit(self, _IMP_isd.new_Nuisance(*args))
1373 
1374  def show(self, *args):
1375  r"""show(Nuisance self, _ostream out=std::cout)"""
1376  return _IMP_isd.Nuisance_show(self, *args)
1377 
1378  @staticmethod
1379  def setup_particle(*args):
1380  r"""
1381  setup_particle(Model m, ParticleIndex pi) -> Nuisance
1382  setup_particle(_ParticleAdaptor pa) -> Nuisance
1383  setup_particle(Model m, ParticleIndex pi, double nuisance) -> Nuisance
1384  setup_particle(_ParticleAdaptor pa, double nuisance) -> Nuisance
1385  """
1386  return _IMP_isd.Nuisance_setup_particle(*args)
1387 
1388  @staticmethod
1389  def get_is_setup(*args):
1390  r"""
1391  get_is_setup(_ParticleAdaptor p) -> bool
1392  get_is_setup(Model m, ParticleIndex pi) -> bool
1393  """
1394  return _IMP_isd.Nuisance_get_is_setup(*args)
1395 
1396  @staticmethod
1397  def get_nuisance_key():
1398  r"""get_nuisance_key() -> FloatKey"""
1399  return _IMP_isd.Nuisance_get_nuisance_key()
1400 
1401  def get_nuisance(self):
1402  r"""get_nuisance(Nuisance self) -> IMP::Float"""
1403  return _IMP_isd.Nuisance_get_nuisance(self)
1404 
1405  def set_nuisance(self, d):
1406  r"""set_nuisance(Nuisance self, IMP::Float d)"""
1407  return _IMP_isd.Nuisance_set_nuisance(self, d)
1408 
1409  def get_has_lower(self):
1410  r"""get_has_lower(Nuisance self) -> bool"""
1411  return _IMP_isd.Nuisance_get_has_lower(self)
1412 
1413  def get_lower(self):
1414  r"""get_lower(Nuisance self) -> IMP::Float"""
1415  return _IMP_isd.Nuisance_get_lower(self)
1416 
1417  @staticmethod
1418  def get_lower_key():
1419  r"""get_lower_key() -> FloatKey"""
1420  return _IMP_isd.Nuisance_get_lower_key()
1421 
1422  @staticmethod
1423  def get_lower_particle_key():
1424  r"""get_lower_particle_key() -> ParticleIndexKey"""
1425  return _IMP_isd.Nuisance_get_lower_particle_key()
1426 
1427  def set_lower(self, *args):
1428  r"""
1429  set_lower(Nuisance self, IMP::Float d)
1430  set_lower(Nuisance self, Particle d)
1431  """
1432  return _IMP_isd.Nuisance_set_lower(self, *args)
1433 
1434  def remove_lower(self):
1435  r"""remove_lower(Nuisance self)"""
1436  return _IMP_isd.Nuisance_remove_lower(self)
1437 
1438  def get_has_upper(self):
1439  r"""get_has_upper(Nuisance self) -> bool"""
1440  return _IMP_isd.Nuisance_get_has_upper(self)
1441 
1442  def get_upper(self):
1443  r"""get_upper(Nuisance self) -> IMP::Float"""
1444  return _IMP_isd.Nuisance_get_upper(self)
1445 
1446  @staticmethod
1447  def get_upper_key():
1448  r"""get_upper_key() -> FloatKey"""
1449  return _IMP_isd.Nuisance_get_upper_key()
1450 
1451  @staticmethod
1452  def get_upper_particle_key():
1453  r"""get_upper_particle_key() -> ParticleIndexKey"""
1454  return _IMP_isd.Nuisance_get_upper_particle_key()
1455 
1456  def set_upper(self, *args):
1457  r"""
1458  set_upper(Nuisance self, IMP::Float d)
1459  set_upper(Nuisance self, Particle d)
1460  """
1461  return _IMP_isd.Nuisance_set_upper(self, *args)
1462 
1463  def remove_upper(self):
1464  r"""remove_upper(Nuisance self)"""
1465  return _IMP_isd.Nuisance_remove_upper(self)
1466 
1467  def get_nuisance_derivative(self):
1468  r"""get_nuisance_derivative(Nuisance self) -> IMP::Float"""
1469  return _IMP_isd.Nuisance_get_nuisance_derivative(self)
1470 
1471  def add_to_nuisance_derivative(self, d, accum):
1472  r"""add_to_nuisance_derivative(Nuisance self, IMP::Float d, DerivativeAccumulator accum)"""
1473  return _IMP_isd.Nuisance_add_to_nuisance_derivative(self, d, accum)
1474 
1475  def get_nuisance_is_optimized(self):
1476  r"""get_nuisance_is_optimized(Nuisance self) -> bool"""
1477  return _IMP_isd.Nuisance_get_nuisance_is_optimized(self)
1478 
1479  def set_nuisance_is_optimized(self, val):
1480  r"""set_nuisance_is_optimized(Nuisance self, bool val)"""
1481  return _IMP_isd.Nuisance_set_nuisance_is_optimized(self, val)
1482 
1483  def add_attribute(self, *args):
1484  r"""
1485  add_attribute(Nuisance self, FloatKey k, IMP::Float v, bool opt)
1486  add_attribute(Nuisance self, FloatKey a0, IMP::Float a1)
1487  add_attribute(Nuisance self, IntKey a0, IMP::Int a1)
1488  add_attribute(Nuisance self, FloatsKey a0, IMP::Floats a1)
1489  add_attribute(Nuisance self, IntsKey a0, IMP::Ints a1)
1490  add_attribute(Nuisance self, StringKey a0, IMP::String a1)
1491  add_attribute(Nuisance self, ParticleIndexKey a0, Particle a1)
1492  add_attribute(Nuisance self, ObjectKey a0, Object a1)
1493  """
1494  return _IMP_isd.Nuisance_add_attribute(self, *args)
1495 
1496  def get_value(self, *args):
1497  r"""
1498  get_value(Nuisance self, FloatKey a0) -> IMP::Float
1499  get_value(Nuisance self, IntKey a0) -> IMP::Int
1500  get_value(Nuisance self, FloatsKey a0) -> IMP::Floats
1501  get_value(Nuisance self, IntsKey a0) -> IMP::Ints
1502  get_value(Nuisance self, StringKey a0) -> IMP::String
1503  get_value(Nuisance self, ParticleIndexKey a0) -> Particle
1504  get_value(Nuisance self, ObjectKey a0) -> Object
1505  """
1506  return _IMP_isd.Nuisance_get_value(self, *args)
1507 
1508  def set_value(self, *args):
1509  r"""
1510  set_value(Nuisance self, FloatKey a0, IMP::Float a1)
1511  set_value(Nuisance self, IntKey a0, IMP::Int a1)
1512  set_value(Nuisance self, FloatsKey a0, IMP::Floats a1)
1513  set_value(Nuisance self, IntsKey a0, IMP::Ints a1)
1514  set_value(Nuisance self, StringKey a0, IMP::String a1)
1515  set_value(Nuisance self, ParticleIndexKey a0, Particle a1)
1516  set_value(Nuisance self, ObjectKey a0, Object a1)
1517  """
1518  return _IMP_isd.Nuisance_set_value(self, *args)
1519 
1520  def remove_attribute(self, *args):
1521  r"""
1522  remove_attribute(Nuisance self, FloatKey a0)
1523  remove_attribute(Nuisance self, IntKey a0)
1524  remove_attribute(Nuisance self, FloatsKey a0)
1525  remove_attribute(Nuisance self, IntsKey a0)
1526  remove_attribute(Nuisance self, StringKey a0)
1527  remove_attribute(Nuisance self, ParticleIndexKey a0)
1528  remove_attribute(Nuisance self, ObjectKey a0)
1529  """
1530  return _IMP_isd.Nuisance_remove_attribute(self, *args)
1531 
1532  def has_attribute(self, *args):
1533  r"""
1534  has_attribute(Nuisance self, FloatKey a0) -> bool
1535  has_attribute(Nuisance self, IntKey a0) -> bool
1536  has_attribute(Nuisance self, FloatsKey a0) -> bool
1537  has_attribute(Nuisance self, IntsKey a0) -> bool
1538  has_attribute(Nuisance self, StringKey a0) -> bool
1539  has_attribute(Nuisance self, ParticleIndexKey a0) -> bool
1540  has_attribute(Nuisance self, ObjectKey a0) -> bool
1541  """
1542  return _IMP_isd.Nuisance_has_attribute(self, *args)
1543 
1544  def get_derivative(self, a0):
1545  r"""get_derivative(Nuisance self, FloatKey a0) -> double"""
1546  return _IMP_isd.Nuisance_get_derivative(self, a0)
1547 
1548  def get_name(self):
1549  r"""get_name(Nuisance self) -> std::string"""
1550  return _IMP_isd.Nuisance_get_name(self)
1551 
1552  def clear_caches(self):
1553  r"""clear_caches(Nuisance self)"""
1554  return _IMP_isd.Nuisance_clear_caches(self)
1555 
1556  def set_name(self, a0):
1557  r"""set_name(Nuisance self, std::string a0)"""
1558  return _IMP_isd.Nuisance_set_name(self, a0)
1559 
1560  def set_check_level(self, a0):
1561  r"""set_check_level(Nuisance self, IMP::CheckLevel a0)"""
1562  return _IMP_isd.Nuisance_set_check_level(self, a0)
1563 
1564  def add_to_derivative(self, a0, a1, a2):
1565  r"""add_to_derivative(Nuisance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1566  return _IMP_isd.Nuisance_add_to_derivative(self, a0, a1, a2)
1567 
1568  def set_is_optimized(self, a0, a1):
1569  r"""set_is_optimized(Nuisance self, FloatKey a0, bool a1)"""
1570  return _IMP_isd.Nuisance_set_is_optimized(self, a0, a1)
1571 
1572  def get_is_optimized(self, a0):
1573  r"""get_is_optimized(Nuisance self, FloatKey a0) -> bool"""
1574  return _IMP_isd.Nuisance_get_is_optimized(self, a0)
1575 
1576  def get_check_level(self):
1577  r"""get_check_level(Nuisance self) -> IMP::CheckLevel"""
1578  return _IMP_isd.Nuisance_get_check_level(self)
1579 
1580  def __eq__(self, *args):
1581  r"""
1582  __eq__(Nuisance self, Nuisance o) -> bool
1583  __eq__(Nuisance self, Particle d) -> bool
1584  """
1585  return _IMP_isd.Nuisance___eq__(self, *args)
1586 
1587  def __ne__(self, *args):
1588  r"""
1589  __ne__(Nuisance self, Nuisance o) -> bool
1590  __ne__(Nuisance self, Particle d) -> bool
1591  """
1592  return _IMP_isd.Nuisance___ne__(self, *args)
1593 
1594  def __le__(self, *args):
1595  r"""
1596  __le__(Nuisance self, Nuisance o) -> bool
1597  __le__(Nuisance self, Particle d) -> bool
1598  """
1599  return _IMP_isd.Nuisance___le__(self, *args)
1600 
1601  def __lt__(self, *args):
1602  r"""
1603  __lt__(Nuisance self, Nuisance o) -> bool
1604  __lt__(Nuisance self, Particle d) -> bool
1605  """
1606  return _IMP_isd.Nuisance___lt__(self, *args)
1607 
1608  def __ge__(self, *args):
1609  r"""
1610  __ge__(Nuisance self, Nuisance o) -> bool
1611  __ge__(Nuisance self, Particle d) -> bool
1612  """
1613  return _IMP_isd.Nuisance___ge__(self, *args)
1614 
1615  def __gt__(self, *args):
1616  r"""
1617  __gt__(Nuisance self, Nuisance o) -> bool
1618  __gt__(Nuisance self, Particle d) -> bool
1619  """
1620  return _IMP_isd.Nuisance___gt__(self, *args)
1621 
1622  def __hash__(self):
1623  r"""__hash__(Nuisance self) -> std::size_t"""
1624  return _IMP_isd.Nuisance___hash__(self)
1625 
1626  def __str__(self):
1627  r"""__str__(Nuisance self) -> std::string"""
1628  return _IMP_isd.Nuisance___str__(self)
1629 
1630  def __repr__(self):
1631  r"""__repr__(Nuisance self) -> std::string"""
1632  return _IMP_isd.Nuisance___repr__(self)
1633 
1634  def _get_as_binary(self):
1635  r"""_get_as_binary(Nuisance self) -> PyObject *"""
1636  return _IMP_isd.Nuisance__get_as_binary(self)
1637 
1638  def _set_from_binary(self, p):
1639  r"""_set_from_binary(Nuisance self, PyObject * p)"""
1640  return _IMP_isd.Nuisance__set_from_binary(self, p)
1641 
1642  def __getstate__(self):
1643  p = self._get_as_binary()
1644  if len(self.__dict__) > 1:
1645  d = self.__dict__.copy()
1646  del d['this']
1647  p = (d, p)
1648  return p
1649 
1650  def __setstate__(self, p):
1651  if not hasattr(self, 'this'):
1652  self.__init__()
1653  if isinstance(p, tuple):
1654  d, p = p
1655  self.__dict__.update(d)
1656  return self._set_from_binary(p)
1657 
1658  __swig_destroy__ = _IMP_isd.delete_Nuisance
1659 
1660 # Register Nuisance in _IMP_isd:
1661 _IMP_isd.Nuisance_swigregister(Nuisance)
1662 class Scale(Nuisance):
1663  r"""Proxy of C++ IMP::isd::Scale class."""
1664 
1665  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1666 
1667  def __init__(self, *args):
1668  r"""
1669  __init__(Scale self) -> Scale
1670  __init__(Scale self, Model m, ParticleIndex id) -> Scale
1671  __init__(Scale self, _ParticleAdaptor d) -> Scale
1672  """
1673  _IMP_isd.Scale_swiginit(self, _IMP_isd.new_Scale(*args))
1674 
1675  def show(self, *args):
1676  r"""show(Scale self, _ostream out=std::cout)"""
1677  return _IMP_isd.Scale_show(self, *args)
1678 
1679  @staticmethod
1680  def setup_particle(*args):
1681  r"""
1682  setup_particle(Model m, ParticleIndex pi) -> Scale
1683  setup_particle(_ParticleAdaptor pa) -> Scale
1684  setup_particle(Model m, ParticleIndex pi, double scale) -> Scale
1685  setup_particle(_ParticleAdaptor pa, double scale) -> Scale
1686  """
1687  return _IMP_isd.Scale_setup_particle(*args)
1688 
1689  @staticmethod
1690  def get_is_setup(*args):
1691  r"""
1692  get_is_setup(_ParticleAdaptor p) -> bool
1693  get_is_setup(Model m, ParticleIndex pi) -> bool
1694  """
1695  return _IMP_isd.Scale_get_is_setup(*args)
1696 
1697  def get_scale(self):
1698  r"""get_scale(Scale self) -> IMP::Float"""
1699  return _IMP_isd.Scale_get_scale(self)
1700 
1701  def set_scale(self, d):
1702  r"""set_scale(Scale self, IMP::Float d)"""
1703  return _IMP_isd.Scale_set_scale(self, d)
1704 
1705  def add_to_scale_derivative(self, d, accum):
1706  r"""add_to_scale_derivative(Scale self, IMP::Float d, DerivativeAccumulator accum)"""
1707  return _IMP_isd.Scale_add_to_scale_derivative(self, d, accum)
1708 
1709  def get_scale_derivative(self):
1710  r"""get_scale_derivative(Scale self) -> IMP::Float"""
1711  return _IMP_isd.Scale_get_scale_derivative(self)
1712 
1713  @staticmethod
1714  def get_scale_key():
1715  r"""get_scale_key() -> FloatKey"""
1716  return _IMP_isd.Scale_get_scale_key()
1717 
1718  def get_scale_is_optimized(self):
1719  r"""get_scale_is_optimized(Scale self) -> bool"""
1720  return _IMP_isd.Scale_get_scale_is_optimized(self)
1721 
1722  def set_scale_is_optimized(self, val):
1723  r"""set_scale_is_optimized(Scale self, bool val)"""
1724  return _IMP_isd.Scale_set_scale_is_optimized(self, val)
1725 
1726  def add_attribute(self, *args):
1727  r"""
1728  add_attribute(Scale self, FloatKey k, IMP::Float v, bool opt)
1729  add_attribute(Scale self, FloatKey a0, IMP::Float a1)
1730  add_attribute(Scale self, IntKey a0, IMP::Int a1)
1731  add_attribute(Scale self, FloatsKey a0, IMP::Floats a1)
1732  add_attribute(Scale self, IntsKey a0, IMP::Ints a1)
1733  add_attribute(Scale self, StringKey a0, IMP::String a1)
1734  add_attribute(Scale self, ParticleIndexKey a0, Particle a1)
1735  add_attribute(Scale self, ObjectKey a0, Object a1)
1736  """
1737  return _IMP_isd.Scale_add_attribute(self, *args)
1738 
1739  def get_value(self, *args):
1740  r"""
1741  get_value(Scale self, FloatKey a0) -> IMP::Float
1742  get_value(Scale self, IntKey a0) -> IMP::Int
1743  get_value(Scale self, FloatsKey a0) -> IMP::Floats
1744  get_value(Scale self, IntsKey a0) -> IMP::Ints
1745  get_value(Scale self, StringKey a0) -> IMP::String
1746  get_value(Scale self, ParticleIndexKey a0) -> Particle
1747  get_value(Scale self, ObjectKey a0) -> Object
1748  """
1749  return _IMP_isd.Scale_get_value(self, *args)
1750 
1751  def set_value(self, *args):
1752  r"""
1753  set_value(Scale self, FloatKey a0, IMP::Float a1)
1754  set_value(Scale self, IntKey a0, IMP::Int a1)
1755  set_value(Scale self, FloatsKey a0, IMP::Floats a1)
1756  set_value(Scale self, IntsKey a0, IMP::Ints a1)
1757  set_value(Scale self, StringKey a0, IMP::String a1)
1758  set_value(Scale self, ParticleIndexKey a0, Particle a1)
1759  set_value(Scale self, ObjectKey a0, Object a1)
1760  """
1761  return _IMP_isd.Scale_set_value(self, *args)
1762 
1763  def remove_attribute(self, *args):
1764  r"""
1765  remove_attribute(Scale self, FloatKey a0)
1766  remove_attribute(Scale self, IntKey a0)
1767  remove_attribute(Scale self, FloatsKey a0)
1768  remove_attribute(Scale self, IntsKey a0)
1769  remove_attribute(Scale self, StringKey a0)
1770  remove_attribute(Scale self, ParticleIndexKey a0)
1771  remove_attribute(Scale self, ObjectKey a0)
1772  """
1773  return _IMP_isd.Scale_remove_attribute(self, *args)
1774 
1775  def has_attribute(self, *args):
1776  r"""
1777  has_attribute(Scale self, FloatKey a0) -> bool
1778  has_attribute(Scale self, IntKey a0) -> bool
1779  has_attribute(Scale self, FloatsKey a0) -> bool
1780  has_attribute(Scale self, IntsKey a0) -> bool
1781  has_attribute(Scale self, StringKey a0) -> bool
1782  has_attribute(Scale self, ParticleIndexKey a0) -> bool
1783  has_attribute(Scale self, ObjectKey a0) -> bool
1784  """
1785  return _IMP_isd.Scale_has_attribute(self, *args)
1786 
1787  def get_derivative(self, a0):
1788  r"""get_derivative(Scale self, FloatKey a0) -> double"""
1789  return _IMP_isd.Scale_get_derivative(self, a0)
1790 
1791  def get_name(self):
1792  r"""get_name(Scale self) -> std::string"""
1793  return _IMP_isd.Scale_get_name(self)
1794 
1795  def clear_caches(self):
1796  r"""clear_caches(Scale self)"""
1797  return _IMP_isd.Scale_clear_caches(self)
1798 
1799  def set_name(self, a0):
1800  r"""set_name(Scale self, std::string a0)"""
1801  return _IMP_isd.Scale_set_name(self, a0)
1802 
1803  def set_check_level(self, a0):
1804  r"""set_check_level(Scale self, IMP::CheckLevel a0)"""
1805  return _IMP_isd.Scale_set_check_level(self, a0)
1806 
1807  def add_to_derivative(self, a0, a1, a2):
1808  r"""add_to_derivative(Scale self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1809  return _IMP_isd.Scale_add_to_derivative(self, a0, a1, a2)
1810 
1811  def set_is_optimized(self, a0, a1):
1812  r"""set_is_optimized(Scale self, FloatKey a0, bool a1)"""
1813  return _IMP_isd.Scale_set_is_optimized(self, a0, a1)
1814 
1815  def get_is_optimized(self, a0):
1816  r"""get_is_optimized(Scale self, FloatKey a0) -> bool"""
1817  return _IMP_isd.Scale_get_is_optimized(self, a0)
1818 
1819  def get_check_level(self):
1820  r"""get_check_level(Scale self) -> IMP::CheckLevel"""
1821  return _IMP_isd.Scale_get_check_level(self)
1822 
1823  def __eq__(self, *args):
1824  r"""
1825  __eq__(Scale self, Scale o) -> bool
1826  __eq__(Scale self, Particle d) -> bool
1827  """
1828  return _IMP_isd.Scale___eq__(self, *args)
1829 
1830  def __ne__(self, *args):
1831  r"""
1832  __ne__(Scale self, Scale o) -> bool
1833  __ne__(Scale self, Particle d) -> bool
1834  """
1835  return _IMP_isd.Scale___ne__(self, *args)
1836 
1837  def __le__(self, *args):
1838  r"""
1839  __le__(Scale self, Scale o) -> bool
1840  __le__(Scale self, Particle d) -> bool
1841  """
1842  return _IMP_isd.Scale___le__(self, *args)
1843 
1844  def __lt__(self, *args):
1845  r"""
1846  __lt__(Scale self, Scale o) -> bool
1847  __lt__(Scale self, Particle d) -> bool
1848  """
1849  return _IMP_isd.Scale___lt__(self, *args)
1850 
1851  def __ge__(self, *args):
1852  r"""
1853  __ge__(Scale self, Scale o) -> bool
1854  __ge__(Scale self, Particle d) -> bool
1855  """
1856  return _IMP_isd.Scale___ge__(self, *args)
1857 
1858  def __gt__(self, *args):
1859  r"""
1860  __gt__(Scale self, Scale o) -> bool
1861  __gt__(Scale self, Particle d) -> bool
1862  """
1863  return _IMP_isd.Scale___gt__(self, *args)
1864 
1865  def __hash__(self):
1866  r"""__hash__(Scale self) -> std::size_t"""
1867  return _IMP_isd.Scale___hash__(self)
1868 
1869  def __str__(self):
1870  r"""__str__(Scale self) -> std::string"""
1871  return _IMP_isd.Scale___str__(self)
1872 
1873  def __repr__(self):
1874  r"""__repr__(Scale self) -> std::string"""
1875  return _IMP_isd.Scale___repr__(self)
1876 
1877  def _get_as_binary(self):
1878  r"""_get_as_binary(Scale self) -> PyObject *"""
1879  return _IMP_isd.Scale__get_as_binary(self)
1880 
1881  def _set_from_binary(self, p):
1882  r"""_set_from_binary(Scale self, PyObject * p)"""
1883  return _IMP_isd.Scale__set_from_binary(self, p)
1884 
1885  def __getstate__(self):
1886  p = self._get_as_binary()
1887  if len(self.__dict__) > 1:
1888  d = self.__dict__.copy()
1889  del d['this']
1890  p = (d, p)
1891  return p
1892 
1893  def __setstate__(self, p):
1894  if not hasattr(self, 'this'):
1895  self.__init__()
1896  if isinstance(p, tuple):
1897  d, p = p
1898  self.__dict__.update(d)
1899  return self._set_from_binary(p)
1900 
1901  __swig_destroy__ = _IMP_isd.delete_Scale
1902 
1903 # Register Scale in _IMP_isd:
1904 _IMP_isd.Scale_swigregister(Scale)
1905 class Switching(Nuisance):
1906  r"""Proxy of C++ IMP::isd::Switching class."""
1907 
1908  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1909 
1910  def __init__(self, *args):
1911  r"""
1912  __init__(Switching self) -> Switching
1913  __init__(Switching self, Model m, ParticleIndex id) -> Switching
1914  __init__(Switching self, _ParticleAdaptor d) -> Switching
1915  """
1916  _IMP_isd.Switching_swiginit(self, _IMP_isd.new_Switching(*args))
1917 
1918  def show(self, *args):
1919  r"""show(Switching self, _ostream out=std::cout)"""
1920  return _IMP_isd.Switching_show(self, *args)
1921 
1922  @staticmethod
1923  def setup_particle(*args):
1924  r"""
1925  setup_particle(Model m, ParticleIndex pi) -> Switching
1926  setup_particle(_ParticleAdaptor pa) -> Switching
1927  setup_particle(Model m, ParticleIndex pi, double switching) -> Switching
1928  setup_particle(_ParticleAdaptor pa, double switching) -> Switching
1929  """
1930  return _IMP_isd.Switching_setup_particle(*args)
1931 
1932  @staticmethod
1933  def get_is_setup(*args):
1934  r"""
1935  get_is_setup(_ParticleAdaptor p) -> bool
1936  get_is_setup(Model m, ParticleIndex pi) -> bool
1937  """
1938  return _IMP_isd.Switching_get_is_setup(*args)
1939 
1940  def get_switching(self):
1941  r"""get_switching(Switching self) -> IMP::Float"""
1942  return _IMP_isd.Switching_get_switching(self)
1943 
1944  def set_switching(self, d):
1945  r"""set_switching(Switching self, IMP::Float d)"""
1946  return _IMP_isd.Switching_set_switching(self, d)
1947 
1948  def add_to_switching_derivative(self, d, accum):
1949  r"""add_to_switching_derivative(Switching self, IMP::Float d, DerivativeAccumulator accum)"""
1950  return _IMP_isd.Switching_add_to_switching_derivative(self, d, accum)
1951 
1952  def get_switching_derivative(self):
1953  r"""get_switching_derivative(Switching self) -> IMP::Float"""
1954  return _IMP_isd.Switching_get_switching_derivative(self)
1955 
1956  @staticmethod
1957  def get_switching_key():
1958  r"""get_switching_key() -> FloatKey"""
1959  return _IMP_isd.Switching_get_switching_key()
1960 
1961  def get_switching_is_optimized(self):
1962  r"""get_switching_is_optimized(Switching self) -> bool"""
1963  return _IMP_isd.Switching_get_switching_is_optimized(self)
1964 
1965  def set_switching_is_optimized(self, val):
1966  r"""set_switching_is_optimized(Switching self, bool val)"""
1967  return _IMP_isd.Switching_set_switching_is_optimized(self, val)
1968 
1969  def add_attribute(self, *args):
1970  r"""
1971  add_attribute(Switching self, FloatKey k, IMP::Float v, bool opt)
1972  add_attribute(Switching self, FloatKey a0, IMP::Float a1)
1973  add_attribute(Switching self, IntKey a0, IMP::Int a1)
1974  add_attribute(Switching self, FloatsKey a0, IMP::Floats a1)
1975  add_attribute(Switching self, IntsKey a0, IMP::Ints a1)
1976  add_attribute(Switching self, StringKey a0, IMP::String a1)
1977  add_attribute(Switching self, ParticleIndexKey a0, Particle a1)
1978  add_attribute(Switching self, ObjectKey a0, Object a1)
1979  """
1980  return _IMP_isd.Switching_add_attribute(self, *args)
1981 
1982  def get_value(self, *args):
1983  r"""
1984  get_value(Switching self, FloatKey a0) -> IMP::Float
1985  get_value(Switching self, IntKey a0) -> IMP::Int
1986  get_value(Switching self, FloatsKey a0) -> IMP::Floats
1987  get_value(Switching self, IntsKey a0) -> IMP::Ints
1988  get_value(Switching self, StringKey a0) -> IMP::String
1989  get_value(Switching self, ParticleIndexKey a0) -> Particle
1990  get_value(Switching self, ObjectKey a0) -> Object
1991  """
1992  return _IMP_isd.Switching_get_value(self, *args)
1993 
1994  def set_value(self, *args):
1995  r"""
1996  set_value(Switching self, FloatKey a0, IMP::Float a1)
1997  set_value(Switching self, IntKey a0, IMP::Int a1)
1998  set_value(Switching self, FloatsKey a0, IMP::Floats a1)
1999  set_value(Switching self, IntsKey a0, IMP::Ints a1)
2000  set_value(Switching self, StringKey a0, IMP::String a1)
2001  set_value(Switching self, ParticleIndexKey a0, Particle a1)
2002  set_value(Switching self, ObjectKey a0, Object a1)
2003  """
2004  return _IMP_isd.Switching_set_value(self, *args)
2005 
2006  def remove_attribute(self, *args):
2007  r"""
2008  remove_attribute(Switching self, FloatKey a0)
2009  remove_attribute(Switching self, IntKey a0)
2010  remove_attribute(Switching self, FloatsKey a0)
2011  remove_attribute(Switching self, IntsKey a0)
2012  remove_attribute(Switching self, StringKey a0)
2013  remove_attribute(Switching self, ParticleIndexKey a0)
2014  remove_attribute(Switching self, ObjectKey a0)
2015  """
2016  return _IMP_isd.Switching_remove_attribute(self, *args)
2017 
2018  def has_attribute(self, *args):
2019  r"""
2020  has_attribute(Switching self, FloatKey a0) -> bool
2021  has_attribute(Switching self, IntKey a0) -> bool
2022  has_attribute(Switching self, FloatsKey a0) -> bool
2023  has_attribute(Switching self, IntsKey a0) -> bool
2024  has_attribute(Switching self, StringKey a0) -> bool
2025  has_attribute(Switching self, ParticleIndexKey a0) -> bool
2026  has_attribute(Switching self, ObjectKey a0) -> bool
2027  """
2028  return _IMP_isd.Switching_has_attribute(self, *args)
2029 
2030  def get_derivative(self, a0):
2031  r"""get_derivative(Switching self, FloatKey a0) -> double"""
2032  return _IMP_isd.Switching_get_derivative(self, a0)
2033 
2034  def get_name(self):
2035  r"""get_name(Switching self) -> std::string"""
2036  return _IMP_isd.Switching_get_name(self)
2037 
2038  def clear_caches(self):
2039  r"""clear_caches(Switching self)"""
2040  return _IMP_isd.Switching_clear_caches(self)
2041 
2042  def set_name(self, a0):
2043  r"""set_name(Switching self, std::string a0)"""
2044  return _IMP_isd.Switching_set_name(self, a0)
2045 
2046  def set_check_level(self, a0):
2047  r"""set_check_level(Switching self, IMP::CheckLevel a0)"""
2048  return _IMP_isd.Switching_set_check_level(self, a0)
2049 
2050  def add_to_derivative(self, a0, a1, a2):
2051  r"""add_to_derivative(Switching self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2052  return _IMP_isd.Switching_add_to_derivative(self, a0, a1, a2)
2053 
2054  def set_is_optimized(self, a0, a1):
2055  r"""set_is_optimized(Switching self, FloatKey a0, bool a1)"""
2056  return _IMP_isd.Switching_set_is_optimized(self, a0, a1)
2057 
2058  def get_is_optimized(self, a0):
2059  r"""get_is_optimized(Switching self, FloatKey a0) -> bool"""
2060  return _IMP_isd.Switching_get_is_optimized(self, a0)
2061 
2062  def get_check_level(self):
2063  r"""get_check_level(Switching self) -> IMP::CheckLevel"""
2064  return _IMP_isd.Switching_get_check_level(self)
2065 
2066  def __eq__(self, *args):
2067  r"""
2068  __eq__(Switching self, Switching o) -> bool
2069  __eq__(Switching self, Particle d) -> bool
2070  """
2071  return _IMP_isd.Switching___eq__(self, *args)
2072 
2073  def __ne__(self, *args):
2074  r"""
2075  __ne__(Switching self, Switching o) -> bool
2076  __ne__(Switching self, Particle d) -> bool
2077  """
2078  return _IMP_isd.Switching___ne__(self, *args)
2079 
2080  def __le__(self, *args):
2081  r"""
2082  __le__(Switching self, Switching o) -> bool
2083  __le__(Switching self, Particle d) -> bool
2084  """
2085  return _IMP_isd.Switching___le__(self, *args)
2086 
2087  def __lt__(self, *args):
2088  r"""
2089  __lt__(Switching self, Switching o) -> bool
2090  __lt__(Switching self, Particle d) -> bool
2091  """
2092  return _IMP_isd.Switching___lt__(self, *args)
2093 
2094  def __ge__(self, *args):
2095  r"""
2096  __ge__(Switching self, Switching o) -> bool
2097  __ge__(Switching self, Particle d) -> bool
2098  """
2099  return _IMP_isd.Switching___ge__(self, *args)
2100 
2101  def __gt__(self, *args):
2102  r"""
2103  __gt__(Switching self, Switching o) -> bool
2104  __gt__(Switching self, Particle d) -> bool
2105  """
2106  return _IMP_isd.Switching___gt__(self, *args)
2107 
2108  def __hash__(self):
2109  r"""__hash__(Switching self) -> std::size_t"""
2110  return _IMP_isd.Switching___hash__(self)
2111 
2112  def __str__(self):
2113  r"""__str__(Switching self) -> std::string"""
2114  return _IMP_isd.Switching___str__(self)
2115 
2116  def __repr__(self):
2117  r"""__repr__(Switching self) -> std::string"""
2118  return _IMP_isd.Switching___repr__(self)
2119 
2120  def _get_as_binary(self):
2121  r"""_get_as_binary(Switching self) -> PyObject *"""
2122  return _IMP_isd.Switching__get_as_binary(self)
2123 
2124  def _set_from_binary(self, p):
2125  r"""_set_from_binary(Switching self, PyObject * p)"""
2126  return _IMP_isd.Switching__set_from_binary(self, p)
2127 
2128  def __getstate__(self):
2129  p = self._get_as_binary()
2130  if len(self.__dict__) > 1:
2131  d = self.__dict__.copy()
2132  del d['this']
2133  p = (d, p)
2134  return p
2135 
2136  def __setstate__(self, p):
2137  if not hasattr(self, 'this'):
2138  self.__init__()
2139  if isinstance(p, tuple):
2140  d, p = p
2141  self.__dict__.update(d)
2142  return self._set_from_binary(p)
2143 
2144  __swig_destroy__ = _IMP_isd.delete_Switching
2145 
2146 # Register Switching in _IMP_isd:
2147 _IMP_isd.Switching_swigregister(Switching)
2148 class Weight(IMP.Decorator):
2149  r"""Proxy of C++ IMP::isd::Weight class."""
2150 
2151  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2152 
2153  def __init__(self, *args):
2154  r"""
2155  __init__(Weight self) -> Weight
2156  __init__(Weight self, Model m, ParticleIndex id) -> Weight
2157  __init__(Weight self, _ParticleAdaptor d) -> Weight
2158  """
2159  _IMP_isd.Weight_swiginit(self, _IMP_isd.new_Weight(*args))
2160 
2161  def show(self, *args):
2162  r"""show(Weight self, _ostream out=std::cout)"""
2163  return _IMP_isd.Weight_show(self, *args)
2164 
2165  @staticmethod
2166  def setup_particle(*args):
2167  r"""
2168  setup_particle(Model m, ParticleIndex pi) -> Weight
2169  setup_particle(_ParticleAdaptor pa) -> Weight
2170  setup_particle(Model m, ParticleIndex pi, IMP::Int nweights) -> Weight
2171  setup_particle(_ParticleAdaptor pa, IMP::Int nweights) -> Weight
2172  setup_particle(Model m, ParticleIndex pi, VectorKD w) -> Weight
2173  setup_particle(_ParticleAdaptor pa, VectorKD w) -> Weight
2174  """
2175  return _IMP_isd.Weight_setup_particle(*args)
2176 
2177  @staticmethod
2178  def get_number_of_weights_key():
2179  r"""get_number_of_weights_key() -> IntKey"""
2180  return _IMP_isd.Weight_get_number_of_weights_key()
2181 
2182  @staticmethod
2183  def get_weight_key(i):
2184  r"""get_weight_key(int i) -> FloatKey"""
2185  return _IMP_isd.Weight_get_weight_key(i)
2186 
2187  def get_weight_keys(self):
2188  r"""get_weight_keys(Weight self) -> IMP::FloatKeys"""
2189  return _IMP_isd.Weight_get_weight_keys(self)
2190 
2191  def get_weight(self, i):
2192  r"""get_weight(Weight self, int i) -> IMP::Float"""
2193  return _IMP_isd.Weight_get_weight(self, i)
2194 
2195  def get_weights(self):
2196  r"""get_weights(Weight self) -> VectorKD"""
2197  return _IMP_isd.Weight_get_weights(self)
2198 
2199  def set_weight_lazy(self, i, wi):
2200  r"""set_weight_lazy(Weight self, int i, IMP::Float wi)"""
2201  return _IMP_isd.Weight_set_weight_lazy(self, i, wi)
2202 
2203  def set_weights_lazy(self, w):
2204  r"""set_weights_lazy(Weight self, VectorKD w)"""
2205  return _IMP_isd.Weight_set_weights_lazy(self, w)
2206 
2207  def set_weights(self, w):
2208  r"""set_weights(Weight self, VectorKD w)"""
2209  return _IMP_isd.Weight_set_weights(self, w)
2210 
2211  def get_weights_are_optimized(self):
2212  r"""get_weights_are_optimized(Weight self) -> bool"""
2213  return _IMP_isd.Weight_get_weights_are_optimized(self)
2214 
2215  def set_weights_are_optimized(self, tf):
2216  r"""set_weights_are_optimized(Weight self, bool tf)"""
2217  return _IMP_isd.Weight_set_weights_are_optimized(self, tf)
2218 
2219  def get_weight_derivative(self, i):
2220  r"""get_weight_derivative(Weight self, int i) -> IMP::Float"""
2221  return _IMP_isd.Weight_get_weight_derivative(self, i)
2222 
2223  def get_weights_derivatives(self):
2224  r"""get_weights_derivatives(Weight self) -> VectorKD"""
2225  return _IMP_isd.Weight_get_weights_derivatives(self)
2226 
2227  def add_to_weight_derivative(self, i, dwi, da):
2228  r"""add_to_weight_derivative(Weight self, int i, IMP::Float dwi, DerivativeAccumulator da)"""
2229  return _IMP_isd.Weight_add_to_weight_derivative(self, i, dwi, da)
2230 
2231  def add_to_weights_derivatives(self, dw, da):
2232  r"""add_to_weights_derivatives(Weight self, VectorKD dw, DerivativeAccumulator da)"""
2233  return _IMP_isd.Weight_add_to_weights_derivatives(self, dw, da)
2234 
2235  def add_weight_lazy(self, wi=0):
2236  r"""add_weight_lazy(Weight self, IMP::Float wi=0)"""
2237  return _IMP_isd.Weight_add_weight_lazy(self, wi)
2238 
2239  def add_weight(self, wi=0):
2240  r"""add_weight(Weight self, IMP::Float wi=0)"""
2241  return _IMP_isd.Weight_add_weight(self, wi)
2242 
2243  def get_number_of_weights(self):
2244  r"""get_number_of_weights(Weight self) -> IMP::Int"""
2245  return _IMP_isd.Weight_get_number_of_weights(self)
2246 
2247  def get_unit_simplex(self):
2248  r"""get_unit_simplex(Weight self) -> UnitSimplexKD"""
2249  return _IMP_isd.Weight_get_unit_simplex(self)
2250 
2251  def set_number_of_weights_lazy(self, nweights):
2252  r"""set_number_of_weights_lazy(Weight self, IMP::Int nweights)"""
2253  return _IMP_isd.Weight_set_number_of_weights_lazy(self, nweights)
2254 
2255  def set_number_of_weights(self, nweights):
2256  r"""set_number_of_weights(Weight self, IMP::Int nweights)"""
2257  return _IMP_isd.Weight_set_number_of_weights(self, nweights)
2258 
2259  @staticmethod
2260  def get_is_setup(*args):
2261  r"""
2262  get_is_setup(_ParticleAdaptor p) -> bool
2263  get_is_setup(Model m, ParticleIndex pi) -> bool
2264  """
2265  return _IMP_isd.Weight_get_is_setup(*args)
2266 
2267  def add_attribute(self, *args):
2268  r"""
2269  add_attribute(Weight self, FloatKey k, IMP::Float v, bool opt)
2270  add_attribute(Weight self, FloatKey a0, IMP::Float a1)
2271  add_attribute(Weight self, IntKey a0, IMP::Int a1)
2272  add_attribute(Weight self, FloatsKey a0, IMP::Floats a1)
2273  add_attribute(Weight self, IntsKey a0, IMP::Ints a1)
2274  add_attribute(Weight self, StringKey a0, IMP::String a1)
2275  add_attribute(Weight self, ParticleIndexKey a0, Particle a1)
2276  add_attribute(Weight self, ObjectKey a0, Object a1)
2277  """
2278  return _IMP_isd.Weight_add_attribute(self, *args)
2279 
2280  def get_value(self, *args):
2281  r"""
2282  get_value(Weight self, FloatKey a0) -> IMP::Float
2283  get_value(Weight self, IntKey a0) -> IMP::Int
2284  get_value(Weight self, FloatsKey a0) -> IMP::Floats
2285  get_value(Weight self, IntsKey a0) -> IMP::Ints
2286  get_value(Weight self, StringKey a0) -> IMP::String
2287  get_value(Weight self, ParticleIndexKey a0) -> Particle
2288  get_value(Weight self, ObjectKey a0) -> Object
2289  """
2290  return _IMP_isd.Weight_get_value(self, *args)
2291 
2292  def set_value(self, *args):
2293  r"""
2294  set_value(Weight self, FloatKey a0, IMP::Float a1)
2295  set_value(Weight self, IntKey a0, IMP::Int a1)
2296  set_value(Weight self, FloatsKey a0, IMP::Floats a1)
2297  set_value(Weight self, IntsKey a0, IMP::Ints a1)
2298  set_value(Weight self, StringKey a0, IMP::String a1)
2299  set_value(Weight self, ParticleIndexKey a0, Particle a1)
2300  set_value(Weight self, ObjectKey a0, Object a1)
2301  """
2302  return _IMP_isd.Weight_set_value(self, *args)
2303 
2304  def remove_attribute(self, *args):
2305  r"""
2306  remove_attribute(Weight self, FloatKey a0)
2307  remove_attribute(Weight self, IntKey a0)
2308  remove_attribute(Weight self, FloatsKey a0)
2309  remove_attribute(Weight self, IntsKey a0)
2310  remove_attribute(Weight self, StringKey a0)
2311  remove_attribute(Weight self, ParticleIndexKey a0)
2312  remove_attribute(Weight self, ObjectKey a0)
2313  """
2314  return _IMP_isd.Weight_remove_attribute(self, *args)
2315 
2316  def has_attribute(self, *args):
2317  r"""
2318  has_attribute(Weight self, FloatKey a0) -> bool
2319  has_attribute(Weight self, IntKey a0) -> bool
2320  has_attribute(Weight self, FloatsKey a0) -> bool
2321  has_attribute(Weight self, IntsKey a0) -> bool
2322  has_attribute(Weight self, StringKey a0) -> bool
2323  has_attribute(Weight self, ParticleIndexKey a0) -> bool
2324  has_attribute(Weight self, ObjectKey a0) -> bool
2325  """
2326  return _IMP_isd.Weight_has_attribute(self, *args)
2327 
2328  def get_derivative(self, a0):
2329  r"""get_derivative(Weight self, FloatKey a0) -> double"""
2330  return _IMP_isd.Weight_get_derivative(self, a0)
2331 
2332  def get_name(self):
2333  r"""get_name(Weight self) -> std::string"""
2334  return _IMP_isd.Weight_get_name(self)
2335 
2336  def clear_caches(self):
2337  r"""clear_caches(Weight self)"""
2338  return _IMP_isd.Weight_clear_caches(self)
2339 
2340  def set_name(self, a0):
2341  r"""set_name(Weight self, std::string a0)"""
2342  return _IMP_isd.Weight_set_name(self, a0)
2343 
2344  def set_check_level(self, a0):
2345  r"""set_check_level(Weight self, IMP::CheckLevel a0)"""
2346  return _IMP_isd.Weight_set_check_level(self, a0)
2347 
2348  def add_to_derivative(self, a0, a1, a2):
2349  r"""add_to_derivative(Weight self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2350  return _IMP_isd.Weight_add_to_derivative(self, a0, a1, a2)
2351 
2352  def set_is_optimized(self, a0, a1):
2353  r"""set_is_optimized(Weight self, FloatKey a0, bool a1)"""
2354  return _IMP_isd.Weight_set_is_optimized(self, a0, a1)
2355 
2356  def get_is_optimized(self, a0):
2357  r"""get_is_optimized(Weight self, FloatKey a0) -> bool"""
2358  return _IMP_isd.Weight_get_is_optimized(self, a0)
2359 
2360  def get_check_level(self):
2361  r"""get_check_level(Weight self) -> IMP::CheckLevel"""
2362  return _IMP_isd.Weight_get_check_level(self)
2363 
2364  def __eq__(self, *args):
2365  r"""
2366  __eq__(Weight self, Weight o) -> bool
2367  __eq__(Weight self, Particle d) -> bool
2368  """
2369  return _IMP_isd.Weight___eq__(self, *args)
2370 
2371  def __ne__(self, *args):
2372  r"""
2373  __ne__(Weight self, Weight o) -> bool
2374  __ne__(Weight self, Particle d) -> bool
2375  """
2376  return _IMP_isd.Weight___ne__(self, *args)
2377 
2378  def __le__(self, *args):
2379  r"""
2380  __le__(Weight self, Weight o) -> bool
2381  __le__(Weight self, Particle d) -> bool
2382  """
2383  return _IMP_isd.Weight___le__(self, *args)
2384 
2385  def __lt__(self, *args):
2386  r"""
2387  __lt__(Weight self, Weight o) -> bool
2388  __lt__(Weight self, Particle d) -> bool
2389  """
2390  return _IMP_isd.Weight___lt__(self, *args)
2391 
2392  def __ge__(self, *args):
2393  r"""
2394  __ge__(Weight self, Weight o) -> bool
2395  __ge__(Weight self, Particle d) -> bool
2396  """
2397  return _IMP_isd.Weight___ge__(self, *args)
2398 
2399  def __gt__(self, *args):
2400  r"""
2401  __gt__(Weight self, Weight o) -> bool
2402  __gt__(Weight self, Particle d) -> bool
2403  """
2404  return _IMP_isd.Weight___gt__(self, *args)
2405 
2406  def __hash__(self):
2407  r"""__hash__(Weight self) -> std::size_t"""
2408  return _IMP_isd.Weight___hash__(self)
2409 
2410  def __str__(self):
2411  r"""__str__(Weight self) -> std::string"""
2412  return _IMP_isd.Weight___str__(self)
2413 
2414  def __repr__(self):
2415  r"""__repr__(Weight self) -> std::string"""
2416  return _IMP_isd.Weight___repr__(self)
2417 
2418  def _get_as_binary(self):
2419  r"""_get_as_binary(Weight self) -> PyObject *"""
2420  return _IMP_isd.Weight__get_as_binary(self)
2421 
2422  def _set_from_binary(self, p):
2423  r"""_set_from_binary(Weight self, PyObject * p)"""
2424  return _IMP_isd.Weight__set_from_binary(self, p)
2425 
2426  def __getstate__(self):
2427  p = self._get_as_binary()
2428  if len(self.__dict__) > 1:
2429  d = self.__dict__.copy()
2430  del d['this']
2431  p = (d, p)
2432  return p
2433 
2434  def __setstate__(self, p):
2435  if not hasattr(self, 'this'):
2436  self.__init__()
2437  if isinstance(p, tuple):
2438  d, p = p
2439  self.__dict__.update(d)
2440  return self._set_from_binary(p)
2441 
2442  __swig_destroy__ = _IMP_isd.delete_Weight
2443 
2444 # Register Weight in _IMP_isd:
2445 _IMP_isd.Weight_swigregister(Weight)
2446 cvar = _IMP_isd.cvar
2447 IMPISD_MAX_WEIGHTS = cvar.IMPISD_MAX_WEIGHTS
2448 
2449 
2450 def __lshift__(*args):
2451  r"""
2452  __lshift__(_ostream out, Nuisance n) -> _ostream
2453  __lshift__(_ostream out, Scale n) -> _ostream
2454  __lshift__(_ostream out, Switching n) -> _ostream
2455  __lshift__(_ostream out, Weight n) -> _ostream
2456  """
2457  return _IMP_isd.__lshift__(*args)
2458 class JeffreysRestraint(IMP.Restraint):
2459  r"""Proxy of C++ IMP::isd::JeffreysRestraint class."""
2460 
2461  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2462 
2463  def __init__(self, *args):
2464  r"""
2465  __init__(JeffreysRestraint self, Model m, Particle p) -> JeffreysRestraint
2466  __init__(JeffreysRestraint self) -> JeffreysRestraint
2467  """
2468  _IMP_isd.JeffreysRestraint_swiginit(self, _IMP_isd.new_JeffreysRestraint(*args))
2469 
2470  def do_get_inputs(self):
2471  r"""do_get_inputs(JeffreysRestraint self) -> IMP::ModelObjectsTemp"""
2472  return _IMP_isd.JeffreysRestraint_do_get_inputs(self)
2473 
2474  def get_version_info(self):
2475  r"""get_version_info(JeffreysRestraint self) -> VersionInfo"""
2476  return _IMP_isd.JeffreysRestraint_get_version_info(self)
2477  __swig_destroy__ = _IMP_isd.delete_JeffreysRestraint
2478 
2479  def get_probability(self):
2480  r"""get_probability(JeffreysRestraint self) -> double"""
2481  return _IMP_isd.JeffreysRestraint_get_probability(self)
2482 
2483  def __str__(self):
2484  r"""__str__(JeffreysRestraint self) -> std::string"""
2485  return _IMP_isd.JeffreysRestraint___str__(self)
2486 
2487  def __repr__(self):
2488  r"""__repr__(JeffreysRestraint self) -> std::string"""
2489  return _IMP_isd.JeffreysRestraint___repr__(self)
2490 
2491  @staticmethod
2492  def get_from(o):
2493  return _object_cast_to_JeffreysRestraint(o)
2494 
2495 
2496  def _get_as_binary(self):
2497  r"""_get_as_binary(JeffreysRestraint self) -> PyObject *"""
2498  return _IMP_isd.JeffreysRestraint__get_as_binary(self)
2499 
2500  def _set_from_binary(self, p):
2501  r"""_set_from_binary(JeffreysRestraint self, PyObject * p)"""
2502  return _IMP_isd.JeffreysRestraint__set_from_binary(self, p)
2503 
2504  def __getstate__(self):
2505  p = self._get_as_binary()
2506  if len(self.__dict__) > 1:
2507  d = self.__dict__.copy()
2508  del d['this']
2509  p = (d, p)
2510  return p
2511 
2512  def __setstate__(self, p):
2513  if not hasattr(self, 'this'):
2514  self.__init__()
2515  if isinstance(p, tuple):
2516  d, p = p
2517  self.__dict__.update(d)
2518  return self._set_from_binary(p)
2519 
2520 
2521 # Register JeffreysRestraint in _IMP_isd:
2522 _IMP_isd.JeffreysRestraint_swigregister(JeffreysRestraint)
2523 class NormalSigmaPCRestraint(IMP.Restraint):
2524  r"""Proxy of C++ IMP::isd::NormalSigmaPCRestraint class."""
2525 
2526  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2527 
2528  def __init__(self, *args):
2529  r"""
2530  __init__(NormalSigmaPCRestraint self, Model m, ParticleIndex spi, double su, double alpha, std::string name="NormalSigmaPCRestraint%1%") -> NormalSigmaPCRestraint
2531  __init__(NormalSigmaPCRestraint self, Scale s, double su, double alpha, std::string name="NormalSigmaPCRestraint%1%") -> NormalSigmaPCRestraint
2532  """
2533  _IMP_isd.NormalSigmaPCRestraint_swiginit(self, _IMP_isd.new_NormalSigmaPCRestraint(*args))
2534 
2535  def get_sigma(self):
2536  r"""get_sigma(NormalSigmaPCRestraint self) -> Scale"""
2537  return _IMP_isd.NormalSigmaPCRestraint_get_sigma(self)
2538 
2539  def get_alpha(self):
2540  r"""get_alpha(NormalSigmaPCRestraint self) -> double"""
2541  return _IMP_isd.NormalSigmaPCRestraint_get_alpha(self)
2542 
2543  def get_sigma_upper(self):
2544  r"""get_sigma_upper(NormalSigmaPCRestraint self) -> double"""
2545  return _IMP_isd.NormalSigmaPCRestraint_get_sigma_upper(self)
2546 
2547  def get_probability(self):
2548  r"""get_probability(NormalSigmaPCRestraint self) -> double"""
2549  return _IMP_isd.NormalSigmaPCRestraint_get_probability(self)
2550 
2551  def do_get_inputs(self):
2552  r"""do_get_inputs(NormalSigmaPCRestraint self) -> IMP::ModelObjectsTemp"""
2553  return _IMP_isd.NormalSigmaPCRestraint_do_get_inputs(self)
2554 
2555  def get_version_info(self):
2556  r"""get_version_info(NormalSigmaPCRestraint self) -> VersionInfo"""
2557  return _IMP_isd.NormalSigmaPCRestraint_get_version_info(self)
2558  __swig_destroy__ = _IMP_isd.delete_NormalSigmaPCRestraint
2559 
2560  def __str__(self):
2561  r"""__str__(NormalSigmaPCRestraint self) -> std::string"""
2562  return _IMP_isd.NormalSigmaPCRestraint___str__(self)
2563 
2564  def __repr__(self):
2565  r"""__repr__(NormalSigmaPCRestraint self) -> std::string"""
2566  return _IMP_isd.NormalSigmaPCRestraint___repr__(self)
2567 
2568  @staticmethod
2569  def get_from(o):
2570  return _object_cast_to_NormalSigmaPCRestraint(o)
2571 
2572 
2573 # Register NormalSigmaPCRestraint in _IMP_isd:
2574 _IMP_isd.NormalSigmaPCRestraint_swigregister(NormalSigmaPCRestraint)
2575 class Distribution(IMP.Object):
2576  r"""Proxy of C++ IMP::isd::Distribution class."""
2577 
2578  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2579 
2580  def __init__(self, *args):
2581  r"""__init__(Distribution self, std::string name="Distribution %1%") -> Distribution"""
2582  if self.__class__ == Distribution:
2583  _self = None
2584  else:
2585  _self = self
2586  _IMP_isd.Distribution_swiginit(self, _IMP_isd.new_Distribution(_self, *args))
2587 
2588  if self.__class__ != Distribution:
2589  _director_objects.register(self)
2590 
2591 
2592 
2593 
2594  def get_type_name(self):
2595  r"""get_type_name(Distribution self) -> std::string"""
2596  return _IMP_isd.Distribution_get_type_name(self)
2597 
2598  def get_version_info(self):
2599  r"""get_version_info(Distribution self) -> VersionInfo"""
2600  return _IMP_isd.Distribution_get_version_info(self)
2601  __swig_destroy__ = _IMP_isd.delete_Distribution
2602 
2603  def __str__(self):
2604  r"""__str__(Distribution self) -> std::string"""
2605  return _IMP_isd.Distribution___str__(self)
2606 
2607  def __repr__(self):
2608  r"""__repr__(Distribution self) -> std::string"""
2609  return _IMP_isd.Distribution___repr__(self)
2610 
2611  @staticmethod
2612  def get_from(o):
2613  return _object_cast_to_Distribution(o)
2614 
2615 
2616  def get_type_name(self):
2617  return self.__class__.__name__
2618  def do_show(self, out):
2619  pass
2620  def get_version_info(self):
2621  if"IMP::isd" == "IMP":
2622  return VersionInfo(self.__module__,
2623  __import__(self.__module__).get_module_version())
2624  else:
2625  return IMP.VersionInfo(self.__module__,
2626  __import__(self.__module__).get_module_version())
2627  @staticmethod
2628  def get_from(o):
2629  return _object_cast_to_Distribution(o)
2630 
2631  def __disown__(self):
2632  self.this.disown()
2633  _IMP_isd.disown_Distribution(self)
2634  return weakref.proxy(self)
2635 
2636  def do_destroy(self):
2637  r"""do_destroy(Distribution self)"""
2638  return _IMP_isd.Distribution_do_destroy(self)
2639 
2640 # Register Distribution in _IMP_isd:
2641 _IMP_isd.Distribution_swigregister(Distribution)
2642 class OneDimensionalDistribution(Distribution):
2643  r"""Proxy of C++ IMP::isd::OneDimensionalDistribution class."""
2644 
2645  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2646 
2647  def do_evaluate(self, *args):
2648  r"""
2649  do_evaluate(OneDimensionalDistribution self, double v) -> double
2650  do_evaluate(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2651  """
2652  return _IMP_isd.OneDimensionalDistribution_do_evaluate(self, *args)
2653 
2654  def do_get_density(self, *args):
2655  r"""
2656  do_get_density(OneDimensionalDistribution self, double v) -> double
2657  do_get_density(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2658  """
2659  return _IMP_isd.OneDimensionalDistribution_do_get_density(self, *args)
2660 
2661  def __init__(self, *args):
2662  r"""__init__(OneDimensionalDistribution self, std::string name="OneDimensionalDistribution %1%") -> OneDimensionalDistribution"""
2663  if self.__class__ == OneDimensionalDistribution:
2664  _self = None
2665  else:
2666  _self = self
2667  _IMP_isd.OneDimensionalDistribution_swiginit(self, _IMP_isd.new_OneDimensionalDistribution(_self, *args))
2668 
2669  if self.__class__ != OneDimensionalDistribution:
2670  _director_objects.register(self)
2671 
2672 
2673 
2674 
2675  def evaluate(self, *args):
2676  r"""
2677  evaluate(OneDimensionalDistribution self, double v) -> double
2678  evaluate(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2679  """
2680  return _IMP_isd.OneDimensionalDistribution_evaluate(self, *args)
2681 
2682  def get_density(self, *args):
2683  r"""
2684  get_density(OneDimensionalDistribution self, double v) -> double
2685  get_density(OneDimensionalDistribution self, IMP::Floats const & vs) -> IMP::Floats
2686  """
2687  return _IMP_isd.OneDimensionalDistribution_get_density(self, *args)
2688 
2689  def get_type_name(self):
2690  r"""get_type_name(OneDimensionalDistribution self) -> std::string"""
2691  return _IMP_isd.OneDimensionalDistribution_get_type_name(self)
2692 
2693  def get_version_info(self):
2694  r"""get_version_info(OneDimensionalDistribution self) -> VersionInfo"""
2695  return _IMP_isd.OneDimensionalDistribution_get_version_info(self)
2696  __swig_destroy__ = _IMP_isd.delete_OneDimensionalDistribution
2697 
2698  def __str__(self):
2699  r"""__str__(OneDimensionalDistribution self) -> std::string"""
2700  return _IMP_isd.OneDimensionalDistribution___str__(self)
2701 
2702  def __repr__(self):
2703  r"""__repr__(OneDimensionalDistribution self) -> std::string"""
2704  return _IMP_isd.OneDimensionalDistribution___repr__(self)
2705 
2706  @staticmethod
2707  def get_from(o):
2708  return _object_cast_to_OneDimensionalDistribution(o)
2709 
2710 
2711  def get_type_name(self):
2712  return self.__class__.__name__
2713  def do_show(self, out):
2714  pass
2715  def get_version_info(self):
2716  if"IMP::isd" == "IMP":
2717  return VersionInfo(self.__module__,
2718  __import__(self.__module__).get_module_version())
2719  else:
2720  return IMP.VersionInfo(self.__module__,
2721  __import__(self.__module__).get_module_version())
2722  @staticmethod
2723  def get_from(o):
2724  return _object_cast_to_OneDimensionalDistribution(o)
2725 
2726  def __disown__(self):
2727  self.this.disown()
2728  _IMP_isd.disown_OneDimensionalDistribution(self)
2729  return weakref.proxy(self)
2730 
2731  def do_destroy(self):
2732  r"""do_destroy(OneDimensionalDistribution self)"""
2733  return _IMP_isd.OneDimensionalDistribution_do_destroy(self)
2734 
2735 # Register OneDimensionalDistribution in _IMP_isd:
2736 _IMP_isd.OneDimensionalDistribution_swigregister(OneDimensionalDistribution)
2737 class OneDimensionalSufficientDistribution(Distribution):
2738  r"""Proxy of C++ IMP::isd::OneDimensionalSufficientDistribution class."""
2739 
2740  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2741 
2742  def do_update_sufficient_statistics(self, vs):
2743  r"""do_update_sufficient_statistics(OneDimensionalSufficientDistribution self, IMP::Floats vs)"""
2744  return _IMP_isd.OneDimensionalSufficientDistribution_do_update_sufficient_statistics(self, vs)
2745 
2746  def do_get_sufficient_statistics(self):
2747  r"""do_get_sufficient_statistics(OneDimensionalSufficientDistribution self) -> IMP::Floats"""
2748  return _IMP_isd.OneDimensionalSufficientDistribution_do_get_sufficient_statistics(self)
2749 
2750  def do_evaluate(self):
2751  r"""do_evaluate(OneDimensionalSufficientDistribution self) -> double"""
2752  return _IMP_isd.OneDimensionalSufficientDistribution_do_evaluate(self)
2753 
2754  def do_get_density(self):
2755  r"""do_get_density(OneDimensionalSufficientDistribution self) -> double"""
2756  return _IMP_isd.OneDimensionalSufficientDistribution_do_get_density(self)
2757 
2758  def __init__(self, *args):
2759  r"""__init__(OneDimensionalSufficientDistribution self, std::string name="OneDimensionalSufficientDistribution %1%") -> OneDimensionalSufficientDistribution"""
2760  if self.__class__ == OneDimensionalSufficientDistribution:
2761  _self = None
2762  else:
2763  _self = self
2764  _IMP_isd.OneDimensionalSufficientDistribution_swiginit(self, _IMP_isd.new_OneDimensionalSufficientDistribution(_self, *args))
2765 
2766  if self.__class__ != OneDimensionalSufficientDistribution:
2767  _director_objects.register(self)
2768 
2769 
2770 
2771 
2772  def update_sufficient_statistics(self, vs):
2773  r"""update_sufficient_statistics(OneDimensionalSufficientDistribution self, IMP::Floats vs)"""
2774  return _IMP_isd.OneDimensionalSufficientDistribution_update_sufficient_statistics(self, vs)
2775 
2776  def get_sufficient_statistics(self):
2777  r"""get_sufficient_statistics(OneDimensionalSufficientDistribution self) -> IMP::Floats"""
2778  return _IMP_isd.OneDimensionalSufficientDistribution_get_sufficient_statistics(self)
2779 
2780  def evaluate(self):
2781  r"""evaluate(OneDimensionalSufficientDistribution self) -> double"""
2782  return _IMP_isd.OneDimensionalSufficientDistribution_evaluate(self)
2783 
2784  def get_density(self):
2785  r"""get_density(OneDimensionalSufficientDistribution self) -> double"""
2786  return _IMP_isd.OneDimensionalSufficientDistribution_get_density(self)
2787 
2788  def get_type_name(self):
2789  r"""get_type_name(OneDimensionalSufficientDistribution self) -> std::string"""
2790  return _IMP_isd.OneDimensionalSufficientDistribution_get_type_name(self)
2791 
2792  def get_version_info(self):
2793  r"""get_version_info(OneDimensionalSufficientDistribution self) -> VersionInfo"""
2794  return _IMP_isd.OneDimensionalSufficientDistribution_get_version_info(self)
2795  __swig_destroy__ = _IMP_isd.delete_OneDimensionalSufficientDistribution
2796 
2797  def __str__(self):
2798  r"""__str__(OneDimensionalSufficientDistribution self) -> std::string"""
2799  return _IMP_isd.OneDimensionalSufficientDistribution___str__(self)
2800 
2801  def __repr__(self):
2802  r"""__repr__(OneDimensionalSufficientDistribution self) -> std::string"""
2803  return _IMP_isd.OneDimensionalSufficientDistribution___repr__(self)
2804 
2805  @staticmethod
2806  def get_from(o):
2807  return _object_cast_to_OneDimensionalSufficientDistribution(o)
2808 
2809 
2810  def get_type_name(self):
2811  return self.__class__.__name__
2812  def do_show(self, out):
2813  pass
2814  def get_version_info(self):
2815  if"IMP::isd" == "IMP":
2816  return VersionInfo(self.__module__,
2817  __import__(self.__module__).get_module_version())
2818  else:
2819  return IMP.VersionInfo(self.__module__,
2820  __import__(self.__module__).get_module_version())
2821  @staticmethod
2822  def get_from(o):
2823  return _object_cast_to_OneDimensionalSufficientDistribution(o)
2824 
2825  def __disown__(self):
2826  self.this.disown()
2827  _IMP_isd.disown_OneDimensionalSufficientDistribution(self)
2828  return weakref.proxy(self)
2829 
2830  def do_destroy(self):
2831  r"""do_destroy(OneDimensionalSufficientDistribution self)"""
2832  return _IMP_isd.OneDimensionalSufficientDistribution_do_destroy(self)
2833 
2834 # Register OneDimensionalSufficientDistribution in _IMP_isd:
2835 _IMP_isd.OneDimensionalSufficientDistribution_swigregister(OneDimensionalSufficientDistribution)
2836 class FNormal(OneDimensionalSufficientDistribution):
2837  r"""Proxy of C++ IMP::isd::FNormal class."""
2838 
2839  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2840 
2841  def __init__(self, FA, JA, FM, sigma):
2842  r"""__init__(FNormal self, double FA, double JA, double FM, double sigma) -> FNormal"""
2843  _IMP_isd.FNormal_swiginit(self, _IMP_isd.new_FNormal(FA, JA, FM, sigma))
2844 
2845  def update_sufficient_statistics(self, FA):
2846  r"""update_sufficient_statistics(FNormal self, double FA)"""
2847  return _IMP_isd.FNormal_update_sufficient_statistics(self, FA)
2848 
2849  def do_update_sufficient_statistics(self, data):
2850  r"""do_update_sufficient_statistics(FNormal self, IMP::Floats data)"""
2851  return _IMP_isd.FNormal_do_update_sufficient_statistics(self, data)
2852 
2853  def do_get_sufficient_statistics(self):
2854  r"""do_get_sufficient_statistics(FNormal self) -> IMP::Floats"""
2855  return _IMP_isd.FNormal_do_get_sufficient_statistics(self)
2856 
2857  def do_evaluate(self):
2858  r"""do_evaluate(FNormal self) -> double"""
2859  return _IMP_isd.FNormal_do_evaluate(self)
2860 
2861  def evaluate_derivative_FA(self):
2862  r"""evaluate_derivative_FA(FNormal self) -> double"""
2863  return _IMP_isd.FNormal_evaluate_derivative_FA(self)
2864 
2865  def evaluate_derivative_JA(self):
2866  r"""evaluate_derivative_JA(FNormal self) -> double"""
2867  return _IMP_isd.FNormal_evaluate_derivative_JA(self)
2868 
2869  def evaluate_derivative_FM(self):
2870  r"""evaluate_derivative_FM(FNormal self) -> double"""
2871  return _IMP_isd.FNormal_evaluate_derivative_FM(self)
2872 
2873  def evaluate_derivative_sigma(self):
2874  r"""evaluate_derivative_sigma(FNormal self) -> double"""
2875  return _IMP_isd.FNormal_evaluate_derivative_sigma(self)
2876 
2877  def do_get_density(self):
2878  r"""do_get_density(FNormal self) -> double"""
2879  return _IMP_isd.FNormal_do_get_density(self)
2880 
2881  def set_FA(self, f):
2882  r"""set_FA(FNormal self, double f)"""
2883  return _IMP_isd.FNormal_set_FA(self, f)
2884 
2885  def set_JA(self, f):
2886  r"""set_JA(FNormal self, double f)"""
2887  return _IMP_isd.FNormal_set_JA(self, f)
2888 
2889  def set_FM(self, f):
2890  r"""set_FM(FNormal self, double f)"""
2891  return _IMP_isd.FNormal_set_FM(self, f)
2892 
2893  def set_sigma(self, f):
2894  r"""set_sigma(FNormal self, double f)"""
2895  return _IMP_isd.FNormal_set_sigma(self, f)
2896  __swig_destroy__ = _IMP_isd.delete_FNormal
2897 
2898  def __str__(self):
2899  r"""__str__(FNormal self) -> std::string"""
2900  return _IMP_isd.FNormal___str__(self)
2901 
2902  def __repr__(self):
2903  r"""__repr__(FNormal self) -> std::string"""
2904  return _IMP_isd.FNormal___repr__(self)
2905 
2906  @staticmethod
2907  def get_from(o):
2908  return _object_cast_to_FNormal(o)
2909 
2910 
2911 # Register FNormal in _IMP_isd:
2912 _IMP_isd.FNormal_swigregister(FNormal)
2913 class FStudentT(OneDimensionalSufficientDistribution):
2914  r"""Proxy of C++ IMP::isd::FStudentT class."""
2915 
2916  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2917 
2918  def __init__(self, *args):
2919  r"""
2920  __init__(FStudentT self, IMP::Floats FXs, IMP::Floats JXs, double FM, double sigma, double nu, std::string name="FStudentT %1%") -> FStudentT
2921  __init__(FStudentT self, double sumFX, double sumFX2, unsigned int N, double LogJX, double FM, double sigma, double nu, std::string name="FStudentT %1%") -> FStudentT
2922  """
2923  _IMP_isd.FStudentT_swiginit(self, _IMP_isd.new_FStudentT(*args))
2924 
2925  def update_sufficient_statistics(self, FXs, JXs):
2926  r"""update_sufficient_statistics(FStudentT self, IMP::Floats FXs, IMP::Floats JXs)"""
2927  return _IMP_isd.FStudentT_update_sufficient_statistics(self, FXs, JXs)
2928 
2929  def evaluate_derivative_Fx(self, Fx):
2930  r"""evaluate_derivative_Fx(FStudentT self, double Fx) -> double"""
2931  return _IMP_isd.FStudentT_evaluate_derivative_Fx(self, Fx)
2932 
2933  def evaluate_derivative_FX(self, FXs):
2934  r"""evaluate_derivative_FX(FStudentT self, IMP::Floats const FXs) -> IMP::Floats"""
2935  return _IMP_isd.FStudentT_evaluate_derivative_FX(self, FXs)
2936 
2937  def evaluate_derivative_LogJX(self):
2938  r"""evaluate_derivative_LogJX(FStudentT self) -> double"""
2939  return _IMP_isd.FStudentT_evaluate_derivative_LogJX(self)
2940 
2941  def evaluate_derivative_FM(self):
2942  r"""evaluate_derivative_FM(FStudentT self) -> double"""
2943  return _IMP_isd.FStudentT_evaluate_derivative_FM(self)
2944 
2945  def evaluate_derivative_sigma(self):
2946  r"""evaluate_derivative_sigma(FStudentT self) -> double"""
2947  return _IMP_isd.FStudentT_evaluate_derivative_sigma(self)
2948 
2949  def evaluate_derivative_nu(self):
2950  r"""evaluate_derivative_nu(FStudentT self) -> double"""
2951  return _IMP_isd.FStudentT_evaluate_derivative_nu(self)
2952 
2953  def update_cached_values(self):
2954  r"""update_cached_values(FStudentT self)"""
2955  return _IMP_isd.FStudentT_update_cached_values(self)
2956 
2957  def set_sumFX(self, v):
2958  r"""set_sumFX(FStudentT self, double v)"""
2959  return _IMP_isd.FStudentT_set_sumFX(self, v)
2960 
2961  def set_sumFX2(self, v):
2962  r"""set_sumFX2(FStudentT self, double v)"""
2963  return _IMP_isd.FStudentT_set_sumFX2(self, v)
2964 
2965  def set_N(self, v):
2966  r"""set_N(FStudentT self, unsigned int v)"""
2967  return _IMP_isd.FStudentT_set_N(self, v)
2968 
2969  def set_LogJX(self, v):
2970  r"""set_LogJX(FStudentT self, double v)"""
2971  return _IMP_isd.FStudentT_set_LogJX(self, v)
2972 
2973  def set_FM(self, v):
2974  r"""set_FM(FStudentT self, double v)"""
2975  return _IMP_isd.FStudentT_set_FM(self, v)
2976 
2977  def set_sigma(self, v):
2978  r"""set_sigma(FStudentT self, double v)"""
2979  return _IMP_isd.FStudentT_set_sigma(self, v)
2980 
2981  def set_nu(self, v):
2982  r"""set_nu(FStudentT self, double v)"""
2983  return _IMP_isd.FStudentT_set_nu(self, v)
2984 
2985  def get_sumFX(self):
2986  r"""get_sumFX(FStudentT self) -> double"""
2987  return _IMP_isd.FStudentT_get_sumFX(self)
2988 
2989  def get_sumFX2(self):
2990  r"""get_sumFX2(FStudentT self) -> double"""
2991  return _IMP_isd.FStudentT_get_sumFX2(self)
2992 
2993  def get_N(self):
2994  r"""get_N(FStudentT self) -> unsigned int"""
2995  return _IMP_isd.FStudentT_get_N(self)
2996 
2997  def get_LogJX(self):
2998  r"""get_LogJX(FStudentT self) -> double"""
2999  return _IMP_isd.FStudentT_get_LogJX(self)
3000 
3001  def get_FM(self):
3002  r"""get_FM(FStudentT self) -> double"""
3003  return _IMP_isd.FStudentT_get_FM(self)
3004 
3005  def get_sigma(self):
3006  r"""get_sigma(FStudentT self) -> double"""
3007  return _IMP_isd.FStudentT_get_sigma(self)
3008 
3009  def get_nu(self):
3010  r"""get_nu(FStudentT self) -> double"""
3011  return _IMP_isd.FStudentT_get_nu(self)
3012  __swig_destroy__ = _IMP_isd.delete_FStudentT
3013 
3014  def __str__(self):
3015  r"""__str__(FStudentT self) -> std::string"""
3016  return _IMP_isd.FStudentT___str__(self)
3017 
3018  def __repr__(self):
3019  r"""__repr__(FStudentT self) -> std::string"""
3020  return _IMP_isd.FStudentT___repr__(self)
3021 
3022  @staticmethod
3023  def get_from(o):
3024  return _object_cast_to_FStudentT(o)
3025 
3026 
3027 # Register FStudentT in _IMP_isd:
3028 _IMP_isd.FStudentT_swigregister(FStudentT)
3029 class vonMises(IMP.Object):
3030  r"""Proxy of C++ IMP::isd::vonMises class."""
3031 
3032  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3033 
3034  def __init__(self, x, mu, kappa):
3035  r"""__init__(vonMises self, double x, double mu, double kappa) -> vonMises"""
3036  _IMP_isd.vonMises_swiginit(self, _IMP_isd.new_vonMises(x, mu, kappa))
3037 
3038  def evaluate(self):
3039  r"""evaluate(vonMises self) -> double"""
3040  return _IMP_isd.vonMises_evaluate(self)
3041 
3042  def evaluate_derivative_x(self):
3043  r"""evaluate_derivative_x(vonMises self) -> double"""
3044  return _IMP_isd.vonMises_evaluate_derivative_x(self)
3045 
3046  def evaluate_derivative_mu(self):
3047  r"""evaluate_derivative_mu(vonMises self) -> double"""
3048  return _IMP_isd.vonMises_evaluate_derivative_mu(self)
3049 
3050  def evaluate_derivative_kappa(self):
3051  r"""evaluate_derivative_kappa(vonMises self) -> double"""
3052  return _IMP_isd.vonMises_evaluate_derivative_kappa(self)
3053 
3054  def density(self):
3055  r"""density(vonMises self) -> double"""
3056  return _IMP_isd.vonMises_density(self)
3057 
3058  def set_x(self, x):
3059  r"""set_x(vonMises self, double x)"""
3060  return _IMP_isd.vonMises_set_x(self, x)
3061 
3062  def set_mu(self, mu):
3063  r"""set_mu(vonMises self, double mu)"""
3064  return _IMP_isd.vonMises_set_mu(self, mu)
3065 
3066  def set_kappa(self, kappa):
3067  r"""set_kappa(vonMises self, double kappa)"""
3068  return _IMP_isd.vonMises_set_kappa(self, kappa)
3069 
3070  def get_version_info(self):
3071  r"""get_version_info(vonMises self) -> VersionInfo"""
3072  return _IMP_isd.vonMises_get_version_info(self)
3073  __swig_destroy__ = _IMP_isd.delete_vonMises
3074 
3075  def __str__(self):
3076  r"""__str__(vonMises self) -> std::string"""
3077  return _IMP_isd.vonMises___str__(self)
3078 
3079  def __repr__(self):
3080  r"""__repr__(vonMises self) -> std::string"""
3081  return _IMP_isd.vonMises___repr__(self)
3082 
3083  @staticmethod
3084  def get_from(o):
3085  return _object_cast_to_vonMises(o)
3086 
3087 
3088 # Register vonMises in _IMP_isd:
3089 _IMP_isd.vonMises_swigregister(vonMises)
3090 class vonMisesSufficient(IMP.Object):
3091  r"""Proxy of C++ IMP::isd::vonMisesSufficient class."""
3092 
3093  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3094 
3095  def __init__(self, *args):
3096  r"""
3097  __init__(vonMisesSufficient self, double chi, unsigned int N, double R0, double chiexp, double kappa) -> vonMisesSufficient
3098  __init__(vonMisesSufficient self, double chi, IMP::Floats obs, double kappa) -> vonMisesSufficient
3099  """
3100  _IMP_isd.vonMisesSufficient_swiginit(self, _IMP_isd.new_vonMisesSufficient(*args))
3101 
3102  def evaluate(self):
3103  r"""evaluate(vonMisesSufficient self) -> double"""
3104  return _IMP_isd.vonMisesSufficient_evaluate(self)
3105 
3106  def evaluate_derivative_x(self):
3107  r"""evaluate_derivative_x(vonMisesSufficient self) -> double"""
3108  return _IMP_isd.vonMisesSufficient_evaluate_derivative_x(self)
3109 
3110  def evaluate_derivative_kappa(self):
3111  r"""evaluate_derivative_kappa(vonMisesSufficient self) -> double"""
3112  return _IMP_isd.vonMisesSufficient_evaluate_derivative_kappa(self)
3113 
3114  def density(self):
3115  r"""density(vonMisesSufficient self) -> double"""
3116  return _IMP_isd.vonMisesSufficient_density(self)
3117 
3118  def get_x(self):
3119  r"""get_x(vonMisesSufficient self) -> double"""
3120  return _IMP_isd.vonMisesSufficient_get_x(self)
3121 
3122  def get_R0(self):
3123  r"""get_R0(vonMisesSufficient self) -> double"""
3124  return _IMP_isd.vonMisesSufficient_get_R0(self)
3125 
3126  def get_chiexp(self):
3127  r"""get_chiexp(vonMisesSufficient self) -> double"""
3128  return _IMP_isd.vonMisesSufficient_get_chiexp(self)
3129 
3130  def get_N(self):
3131  r"""get_N(vonMisesSufficient self) -> double"""
3132  return _IMP_isd.vonMisesSufficient_get_N(self)
3133 
3134  def get_kappa(self):
3135  r"""get_kappa(vonMisesSufficient self) -> double"""
3136  return _IMP_isd.vonMisesSufficient_get_kappa(self)
3137 
3138  def set_x(self, x):
3139  r"""set_x(vonMisesSufficient self, double x)"""
3140  return _IMP_isd.vonMisesSufficient_set_x(self, x)
3141 
3142  def set_R0(self, R0):
3143  r"""set_R0(vonMisesSufficient self, double R0)"""
3144  return _IMP_isd.vonMisesSufficient_set_R0(self, R0)
3145 
3146  def set_chiexp(self, chiexp):
3147  r"""set_chiexp(vonMisesSufficient self, double chiexp)"""
3148  return _IMP_isd.vonMisesSufficient_set_chiexp(self, chiexp)
3149 
3150  def set_N(self, N):
3151  r"""set_N(vonMisesSufficient self, unsigned int N)"""
3152  return _IMP_isd.vonMisesSufficient_set_N(self, N)
3153 
3154  def set_kappa(self, kappa):
3155  r"""set_kappa(vonMisesSufficient self, double kappa)"""
3156  return _IMP_isd.vonMisesSufficient_set_kappa(self, kappa)
3157 
3158  @staticmethod
3159  def get_sufficient_statistics(data):
3160  r"""get_sufficient_statistics(IMP::Floats data) -> IMP::Floats"""
3161  return _IMP_isd.vonMisesSufficient_get_sufficient_statistics(data)
3162 
3163  def get_version_info(self):
3164  r"""get_version_info(vonMisesSufficient self) -> VersionInfo"""
3165  return _IMP_isd.vonMisesSufficient_get_version_info(self)
3166  __swig_destroy__ = _IMP_isd.delete_vonMisesSufficient
3167 
3168  def __str__(self):
3169  r"""__str__(vonMisesSufficient self) -> std::string"""
3170  return _IMP_isd.vonMisesSufficient___str__(self)
3171 
3172  def __repr__(self):
3173  r"""__repr__(vonMisesSufficient self) -> std::string"""
3174  return _IMP_isd.vonMisesSufficient___repr__(self)
3175 
3176  @staticmethod
3177  def get_from(o):
3178  return _object_cast_to_vonMisesSufficient(o)
3179 
3180 
3181 # Register vonMisesSufficient in _IMP_isd:
3182 _IMP_isd.vonMisesSufficient_swigregister(vonMisesSufficient)
3183 class PenalizedComplexityPrior(OneDimensionalSufficientDistribution):
3184  r"""Proxy of C++ IMP::isd::PenalizedComplexityPrior class."""
3185 
3186  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3187 
3188  def __init__(self, *args):
3189  r"""__init__(PenalizedComplexityPrior self, double Dxi, double Jxi, double alpha, std::string name="PenalizedComplexityPrior %1%") -> PenalizedComplexityPrior"""
3190  _IMP_isd.PenalizedComplexityPrior_swiginit(self, _IMP_isd.new_PenalizedComplexityPrior(*args))
3191 
3192  def update_sufficient_statistics(self, Dxis, Jxis):
3193  r"""update_sufficient_statistics(PenalizedComplexityPrior self, IMP::Floats Dxis, IMP::Floats Jxis)"""
3194  return _IMP_isd.PenalizedComplexityPrior_update_sufficient_statistics(self, Dxis, Jxis)
3195 
3196  def evaluate_derivative_Dxi(self):
3197  r"""evaluate_derivative_Dxi(PenalizedComplexityPrior self) -> double"""
3198  return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_Dxi(self)
3199 
3200  def evaluate_derivative_Jxi(self):
3201  r"""evaluate_derivative_Jxi(PenalizedComplexityPrior self) -> double"""
3202  return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_Jxi(self)
3203 
3204  def evaluate_derivative_alpha(self):
3205  r"""evaluate_derivative_alpha(PenalizedComplexityPrior self) -> double"""
3206  return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_alpha(self)
3207 
3208  def evaluate_derivative_xi(self, JJxi):
3209  r"""evaluate_derivative_xi(PenalizedComplexityPrior self, double JJxi) -> double"""
3210  return _IMP_isd.PenalizedComplexityPrior_evaluate_derivative_xi(self, JJxi)
3211 
3212  def set_Dxi(self, v):
3213  r"""set_Dxi(PenalizedComplexityPrior self, double v)"""
3214  return _IMP_isd.PenalizedComplexityPrior_set_Dxi(self, v)
3215 
3216  def set_Jxi(self, v):
3217  r"""set_Jxi(PenalizedComplexityPrior self, double v)"""
3218  return _IMP_isd.PenalizedComplexityPrior_set_Jxi(self, v)
3219 
3220  def set_alpha(self, v):
3221  r"""set_alpha(PenalizedComplexityPrior self, double v)"""
3222  return _IMP_isd.PenalizedComplexityPrior_set_alpha(self, v)
3223 
3224  def get_Dxi(self):
3225  r"""get_Dxi(PenalizedComplexityPrior self) -> double"""
3226  return _IMP_isd.PenalizedComplexityPrior_get_Dxi(self)
3227 
3228  def get_Jxi(self):
3229  r"""get_Jxi(PenalizedComplexityPrior self) -> double"""
3230  return _IMP_isd.PenalizedComplexityPrior_get_Jxi(self)
3231 
3232  def get_alpha(self):
3233  r"""get_alpha(PenalizedComplexityPrior self) -> double"""
3234  return _IMP_isd.PenalizedComplexityPrior_get_alpha(self)
3235  __swig_destroy__ = _IMP_isd.delete_PenalizedComplexityPrior
3236 
3237  def __str__(self):
3238  r"""__str__(PenalizedComplexityPrior self) -> std::string"""
3239  return _IMP_isd.PenalizedComplexityPrior___str__(self)
3240 
3241  def __repr__(self):
3242  r"""__repr__(PenalizedComplexityPrior self) -> std::string"""
3243  return _IMP_isd.PenalizedComplexityPrior___repr__(self)
3244 
3245  @staticmethod
3246  def get_from(o):
3247  return _object_cast_to_PenalizedComplexityPrior(o)
3248 
3249 
3250 # Register PenalizedComplexityPrior in _IMP_isd:
3251 _IMP_isd.PenalizedComplexityPrior_swigregister(PenalizedComplexityPrior)
3252 class vonMisesKappaJeffreysRestraint(IMP.Restraint):
3253  r"""Proxy of C++ IMP::isd::vonMisesKappaJeffreysRestraint class."""
3254 
3255  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3256 
3257  def __init__(self, m, kappa):
3258  r"""__init__(vonMisesKappaJeffreysRestraint self, Model m, Particle kappa) -> vonMisesKappaJeffreysRestraint"""
3259  _IMP_isd.vonMisesKappaJeffreysRestraint_swiginit(self, _IMP_isd.new_vonMisesKappaJeffreysRestraint(m, kappa))
3260 
3261  def do_get_inputs(self):
3262  r"""do_get_inputs(vonMisesKappaJeffreysRestraint self) -> IMP::ModelObjectsTemp"""
3263  return _IMP_isd.vonMisesKappaJeffreysRestraint_do_get_inputs(self)
3264 
3265  def get_version_info(self):
3266  r"""get_version_info(vonMisesKappaJeffreysRestraint self) -> VersionInfo"""
3267  return _IMP_isd.vonMisesKappaJeffreysRestraint_get_version_info(self)
3268  __swig_destroy__ = _IMP_isd.delete_vonMisesKappaJeffreysRestraint
3269 
3270  def get_probability(self):
3271  r"""get_probability(vonMisesKappaJeffreysRestraint self) -> double"""
3272  return _IMP_isd.vonMisesKappaJeffreysRestraint_get_probability(self)
3273 
3274  def __str__(self):
3275  r"""__str__(vonMisesKappaJeffreysRestraint self) -> std::string"""
3276  return _IMP_isd.vonMisesKappaJeffreysRestraint___str__(self)
3277 
3278  def __repr__(self):
3279  r"""__repr__(vonMisesKappaJeffreysRestraint self) -> std::string"""
3280  return _IMP_isd.vonMisesKappaJeffreysRestraint___repr__(self)
3281 
3282  @staticmethod
3283  def get_from(o):
3284  return _object_cast_to_vonMisesKappaJeffreysRestraint(o)
3285 
3286 
3287 # Register vonMisesKappaJeffreysRestraint in _IMP_isd:
3288 _IMP_isd.vonMisesKappaJeffreysRestraint_swigregister(vonMisesKappaJeffreysRestraint)
3289 class vonMisesKappaConjugateRestraint(IMP.Restraint):
3290  r"""Proxy of C++ IMP::isd::vonMisesKappaConjugateRestraint class."""
3291 
3292  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3293 
3294  def __init__(self, m, kappa, c=10.0, R0=0.0):
3295  r"""__init__(vonMisesKappaConjugateRestraint self, Model m, Particle kappa, double c=10.0, double R0=0.0) -> vonMisesKappaConjugateRestraint"""
3296  _IMP_isd.vonMisesKappaConjugateRestraint_swiginit(self, _IMP_isd.new_vonMisesKappaConjugateRestraint(m, kappa, c, R0))
3297 
3298  def do_get_inputs(self):
3299  r"""do_get_inputs(vonMisesKappaConjugateRestraint self) -> IMP::ModelObjectsTemp"""
3300  return _IMP_isd.vonMisesKappaConjugateRestraint_do_get_inputs(self)
3301 
3302  def get_version_info(self):
3303  r"""get_version_info(vonMisesKappaConjugateRestraint self) -> VersionInfo"""
3304  return _IMP_isd.vonMisesKappaConjugateRestraint_get_version_info(self)
3305  __swig_destroy__ = _IMP_isd.delete_vonMisesKappaConjugateRestraint
3306 
3307  def get_probability(self):
3308  r"""get_probability(vonMisesKappaConjugateRestraint self) -> double"""
3309  return _IMP_isd.vonMisesKappaConjugateRestraint_get_probability(self)
3310 
3311  def __str__(self):
3312  r"""__str__(vonMisesKappaConjugateRestraint self) -> std::string"""
3313  return _IMP_isd.vonMisesKappaConjugateRestraint___str__(self)
3314 
3315  def __repr__(self):
3316  r"""__repr__(vonMisesKappaConjugateRestraint self) -> std::string"""
3317  return _IMP_isd.vonMisesKappaConjugateRestraint___repr__(self)
3318 
3319  @staticmethod
3320  def get_from(o):
3321  return _object_cast_to_vonMisesKappaConjugateRestraint(o)
3322 
3323 
3324 # Register vonMisesKappaConjugateRestraint in _IMP_isd:
3325 _IMP_isd.vonMisesKappaConjugateRestraint_swigregister(vonMisesKappaConjugateRestraint)
3326 class NOERestraint(IMP.Restraint):
3327  r"""Proxy of C++ IMP::isd::NOERestraint class."""
3328 
3329  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3330 
3331  def __init__(self, m, p0, p1, sigma, gamma, Iexp):
3332  r"""__init__(NOERestraint self, Model m, Particle p0, Particle p1, Particle sigma, Particle gamma, double Iexp) -> NOERestraint"""
3333  _IMP_isd.NOERestraint_swiginit(self, _IMP_isd.new_NOERestraint(m, p0, p1, sigma, gamma, Iexp))
3334 
3335  def get_probability(self):
3336  r"""get_probability(NOERestraint self) -> double"""
3337  return _IMP_isd.NOERestraint_get_probability(self)
3338 
3339  def get_chi(self):
3340  r"""get_chi(NOERestraint self) -> double"""
3341  return _IMP_isd.NOERestraint_get_chi(self)
3342 
3343  def do_get_inputs(self):
3344  r"""do_get_inputs(NOERestraint self) -> IMP::ModelObjectsTemp"""
3345  return _IMP_isd.NOERestraint_do_get_inputs(self)
3346 
3347  def get_version_info(self):
3348  r"""get_version_info(NOERestraint self) -> VersionInfo"""
3349  return _IMP_isd.NOERestraint_get_version_info(self)
3350  __swig_destroy__ = _IMP_isd.delete_NOERestraint
3351 
3352  def __str__(self):
3353  r"""__str__(NOERestraint self) -> std::string"""
3354  return _IMP_isd.NOERestraint___str__(self)
3355 
3356  def __repr__(self):
3357  r"""__repr__(NOERestraint self) -> std::string"""
3358  return _IMP_isd.NOERestraint___repr__(self)
3359 
3360  @staticmethod
3361  def get_from(o):
3362  return _object_cast_to_NOERestraint(o)
3363 
3364 
3365 # Register NOERestraint in _IMP_isd:
3366 _IMP_isd.NOERestraint_swigregister(NOERestraint)
3367 class GaussianRestraint(IMP.Restraint):
3368  r"""Proxy of C++ IMP::isd::GaussianRestraint class."""
3369 
3370  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3371 
3372  def __init__(self, *args):
3373  r"""
3374  __init__(GaussianRestraint self, Particle x, Particle mu, Particle sigma) -> GaussianRestraint
3375  __init__(GaussianRestraint self, double x, Particle mu, Particle sigma) -> GaussianRestraint
3376  __init__(GaussianRestraint self, Particle x, double mu, Particle sigma) -> GaussianRestraint
3377  __init__(GaussianRestraint self, Particle x, Particle mu, double sigma) -> GaussianRestraint
3378  __init__(GaussianRestraint self, double x, double mu, Particle sigma) -> GaussianRestraint
3379  __init__(GaussianRestraint self, Particle x, double mu, double sigma) -> GaussianRestraint
3380  __init__(GaussianRestraint self, double x, Particle mu, double sigma) -> GaussianRestraint
3381  """
3382  _IMP_isd.GaussianRestraint_swiginit(self, _IMP_isd.new_GaussianRestraint(*args))
3383 
3384  def get_probability(self):
3385  r"""get_probability(GaussianRestraint self) -> double"""
3386  return _IMP_isd.GaussianRestraint_get_probability(self)
3387 
3388  def get_chi(self):
3389  r"""get_chi(GaussianRestraint self) -> double"""
3390  return _IMP_isd.GaussianRestraint_get_chi(self)
3391 
3392  def do_get_inputs(self):
3393  r"""do_get_inputs(GaussianRestraint self) -> IMP::ModelObjectsTemp"""
3394  return _IMP_isd.GaussianRestraint_do_get_inputs(self)
3395 
3396  def get_version_info(self):
3397  r"""get_version_info(GaussianRestraint self) -> VersionInfo"""
3398  return _IMP_isd.GaussianRestraint_get_version_info(self)
3399  __swig_destroy__ = _IMP_isd.delete_GaussianRestraint
3400 
3401  def __str__(self):
3402  r"""__str__(GaussianRestraint self) -> std::string"""
3403  return _IMP_isd.GaussianRestraint___str__(self)
3404 
3405  def __repr__(self):
3406  r"""__repr__(GaussianRestraint self) -> std::string"""
3407  return _IMP_isd.GaussianRestraint___repr__(self)
3408 
3409  @staticmethod
3410  def get_from(o):
3411  return _object_cast_to_GaussianRestraint(o)
3412 
3413 
3414 # Register GaussianRestraint in _IMP_isd:
3415 _IMP_isd.GaussianRestraint_swigregister(GaussianRestraint)
3416 class StudentTRestraint(IMP.Restraint):
3417  r"""Proxy of C++ IMP::isd::StudentTRestraint class."""
3418 
3419  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3420 
3421  def __init__(self, *args):
3422  r"""
3423  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3424  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3425  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3426  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3427  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3428  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3429  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, _ParticleIndexAdaptor mu, double sigma, double nu) -> StudentTRestraint
3430  __init__(StudentTRestraint self, Model m, _ParticleIndexAdaptor x, double mu, double sigma, double nu) -> StudentTRestraint
3431  __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3432  __init__(StudentTRestraint self, Model m, double x, double mu, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3433  __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3434  __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3435  __init__(StudentTRestraint self, Model m, double x, double mu, double sigma, _ParticleIndexAdaptor nu) -> StudentTRestraint
3436  __init__(StudentTRestraint self, Model m, double x, double mu, _ParticleIndexAdaptor sigma, double nu) -> StudentTRestraint
3437  __init__(StudentTRestraint self, Model m, double x, _ParticleIndexAdaptor mu, double sigma, double nu) -> StudentTRestraint
3438  """
3439  _IMP_isd.StudentTRestraint_swiginit(self, _IMP_isd.new_StudentTRestraint(*args))
3440 
3441  def get_probability(self):
3442  r"""get_probability(StudentTRestraint self) -> double"""
3443  return _IMP_isd.StudentTRestraint_get_probability(self)
3444 
3445  def do_get_inputs(self):
3446  r"""do_get_inputs(StudentTRestraint self) -> IMP::ModelObjectsTemp"""
3447  return _IMP_isd.StudentTRestraint_do_get_inputs(self)
3448 
3449  def get_version_info(self):
3450  r"""get_version_info(StudentTRestraint self) -> VersionInfo"""
3451  return _IMP_isd.StudentTRestraint_get_version_info(self)
3452  __swig_destroy__ = _IMP_isd.delete_StudentTRestraint
3453 
3454  def __str__(self):
3455  r"""__str__(StudentTRestraint self) -> std::string"""
3456  return _IMP_isd.StudentTRestraint___str__(self)
3457 
3458  def __repr__(self):
3459  r"""__repr__(StudentTRestraint self) -> std::string"""
3460  return _IMP_isd.StudentTRestraint___repr__(self)
3461 
3462  @staticmethod
3463  def get_from(o):
3464  return _object_cast_to_StudentTRestraint(o)
3465 
3466 
3467 # Register StudentTRestraint in _IMP_isd:
3468 _IMP_isd.StudentTRestraint_swigregister(StudentTRestraint)
3469 class LognormalRestraint(IMP.Restraint):
3470  r"""Proxy of C++ IMP::isd::LognormalRestraint class."""
3471 
3472  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3473 
3474  def __init__(self, *args):
3475  r"""
3476  __init__(LognormalRestraint self, Particle x, Particle mu, Particle sigma) -> LognormalRestraint
3477  __init__(LognormalRestraint self, double x, Particle mu, Particle sigma) -> LognormalRestraint
3478  __init__(LognormalRestraint self, Particle x, double mu, Particle sigma) -> LognormalRestraint
3479  __init__(LognormalRestraint self, Particle x, Particle mu, double sigma) -> LognormalRestraint
3480  __init__(LognormalRestraint self, double x, double mu, Particle sigma) -> LognormalRestraint
3481  __init__(LognormalRestraint self, Particle x, double mu, double sigma) -> LognormalRestraint
3482  __init__(LognormalRestraint self, double x, Particle mu, double sigma) -> LognormalRestraint
3483  """
3484  _IMP_isd.LognormalRestraint_swiginit(self, _IMP_isd.new_LognormalRestraint(*args))
3485 
3486  def get_probability(self):
3487  r"""get_probability(LognormalRestraint self) -> double"""
3488  return _IMP_isd.LognormalRestraint_get_probability(self)
3489 
3490  def get_chi(self):
3491  r"""get_chi(LognormalRestraint self) -> double"""
3492  return _IMP_isd.LognormalRestraint_get_chi(self)
3493 
3494  def do_get_inputs(self):
3495  r"""do_get_inputs(LognormalRestraint self) -> IMP::ModelObjectsTemp"""
3496  return _IMP_isd.LognormalRestraint_do_get_inputs(self)
3497 
3498  def get_version_info(self):
3499  r"""get_version_info(LognormalRestraint self) -> VersionInfo"""
3500  return _IMP_isd.LognormalRestraint_get_version_info(self)
3501  __swig_destroy__ = _IMP_isd.delete_LognormalRestraint
3502 
3503  def __str__(self):
3504  r"""__str__(LognormalRestraint self) -> std::string"""
3505  return _IMP_isd.LognormalRestraint___str__(self)
3506 
3507  def __repr__(self):
3508  r"""__repr__(LognormalRestraint self) -> std::string"""
3509  return _IMP_isd.LognormalRestraint___repr__(self)
3510 
3511  @staticmethod
3512  def get_from(o):
3513  return _object_cast_to_LognormalRestraint(o)
3514 
3515 
3516 # Register LognormalRestraint in _IMP_isd:
3517 _IMP_isd.LognormalRestraint_swigregister(LognormalRestraint)
3518 class LognormalAmbiguousRestraint(IMP.Restraint):
3519  r"""Proxy of C++ IMP::isd::LognormalAmbiguousRestraint class."""
3520 
3521  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3522 
3523  def __init__(self, p1, p2, ki, sigmaG):
3524  r"""__init__(LognormalAmbiguousRestraint self, Particle p1, Particle p2, Particle ki, Particle sigmaG) -> LognormalAmbiguousRestraint"""
3525  _IMP_isd.LognormalAmbiguousRestraint_swiginit(self, _IMP_isd.new_LognormalAmbiguousRestraint(p1, p2, ki, sigmaG))
3526 
3527  def add_contribution(self, lexp, omega):
3528  r"""add_contribution(LognormalAmbiguousRestraint self, double lexp, Particle omega)"""
3529  return _IMP_isd.LognormalAmbiguousRestraint_add_contribution(self, lexp, omega)
3530 
3531  def get_number_of_contributions(self):
3532  r"""get_number_of_contributions(LognormalAmbiguousRestraint self) -> unsigned int"""
3533  return _IMP_isd.LognormalAmbiguousRestraint_get_number_of_contributions(self)
3534 
3535  def draw_k_from_posterior(self, kt):
3536  r"""draw_k_from_posterior(LognormalAmbiguousRestraint self, double kt)"""
3537  return _IMP_isd.LognormalAmbiguousRestraint_draw_k_from_posterior(self, kt)
3538 
3539  def get_probability(self):
3540  r"""get_probability(LognormalAmbiguousRestraint self) -> double"""
3541  return _IMP_isd.LognormalAmbiguousRestraint_get_probability(self)
3542 
3543  def do_get_inputs(self):
3544  r"""do_get_inputs(LognormalAmbiguousRestraint self) -> IMP::ModelObjectsTemp"""
3545  return _IMP_isd.LognormalAmbiguousRestraint_do_get_inputs(self)
3546 
3547  def get_version_info(self):
3548  r"""get_version_info(LognormalAmbiguousRestraint self) -> VersionInfo"""
3549  return _IMP_isd.LognormalAmbiguousRestraint_get_version_info(self)
3550  __swig_destroy__ = _IMP_isd.delete_LognormalAmbiguousRestraint
3551 
3552  def __str__(self):
3553  r"""__str__(LognormalAmbiguousRestraint self) -> std::string"""
3554  return _IMP_isd.LognormalAmbiguousRestraint___str__(self)
3555 
3556  def __repr__(self):
3557  r"""__repr__(LognormalAmbiguousRestraint self) -> std::string"""
3558  return _IMP_isd.LognormalAmbiguousRestraint___repr__(self)
3559 
3560  @staticmethod
3561  def get_from(o):
3562  return _object_cast_to_LognormalAmbiguousRestraint(o)
3563 
3564 
3565 # Register LognormalAmbiguousRestraint in _IMP_isd:
3566 _IMP_isd.LognormalAmbiguousRestraint_swigregister(LognormalAmbiguousRestraint)
3567 class AmbiguousNOERestraint(IMP.Restraint):
3568  r"""Proxy of C++ IMP::isd::AmbiguousNOERestraint class."""
3569 
3570  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3571 
3572  def __init__(self, *args):
3573  r"""
3574  __init__(AmbiguousNOERestraint self, Model m, PairContainer pc, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor gamma, double Iexp) -> AmbiguousNOERestraint
3575  __init__(AmbiguousNOERestraint self) -> AmbiguousNOERestraint
3576  """
3577  _IMP_isd.AmbiguousNOERestraint_swiginit(self, _IMP_isd.new_AmbiguousNOERestraint(*args))
3578 
3579  def get_probability(self):
3580  r"""get_probability(AmbiguousNOERestraint self) -> double"""
3581  return _IMP_isd.AmbiguousNOERestraint_get_probability(self)
3582 
3583  def get_chi(self):
3584  r"""get_chi(AmbiguousNOERestraint self) -> double"""
3585  return _IMP_isd.AmbiguousNOERestraint_get_chi(self)
3586 
3587  def do_get_inputs(self):
3588  r"""do_get_inputs(AmbiguousNOERestraint self) -> IMP::ModelObjectsTemp"""
3589  return _IMP_isd.AmbiguousNOERestraint_do_get_inputs(self)
3590 
3591  def get_version_info(self):
3592  r"""get_version_info(AmbiguousNOERestraint self) -> VersionInfo"""
3593  return _IMP_isd.AmbiguousNOERestraint_get_version_info(self)
3594  __swig_destroy__ = _IMP_isd.delete_AmbiguousNOERestraint
3595 
3596  def __str__(self):
3597  r"""__str__(AmbiguousNOERestraint self) -> std::string"""
3598  return _IMP_isd.AmbiguousNOERestraint___str__(self)
3599 
3600  def __repr__(self):
3601  r"""__repr__(AmbiguousNOERestraint self) -> std::string"""
3602  return _IMP_isd.AmbiguousNOERestraint___repr__(self)
3603 
3604  @staticmethod
3605  def get_from(o):
3606  return _object_cast_to_AmbiguousNOERestraint(o)
3607 
3608 
3609  def _get_as_binary(self):
3610  r"""_get_as_binary(AmbiguousNOERestraint self) -> PyObject *"""
3611  return _IMP_isd.AmbiguousNOERestraint__get_as_binary(self)
3612 
3613  def _set_from_binary(self, p):
3614  r"""_set_from_binary(AmbiguousNOERestraint self, PyObject * p)"""
3615  return _IMP_isd.AmbiguousNOERestraint__set_from_binary(self, p)
3616 
3617  def __getstate__(self):
3618  p = self._get_as_binary()
3619  if len(self.__dict__) > 1:
3620  d = self.__dict__.copy()
3621  del d['this']
3622  p = (d, p)
3623  return p
3624 
3625  def __setstate__(self, p):
3626  if not hasattr(self, 'this'):
3627  self.__init__()
3628  if isinstance(p, tuple):
3629  d, p = p
3630  self.__dict__.update(d)
3631  return self._set_from_binary(p)
3632 
3633 
3634 # Register AmbiguousNOERestraint in _IMP_isd:
3635 _IMP_isd.AmbiguousNOERestraint_swigregister(AmbiguousNOERestraint)
3636 class MarginalNOERestraint(IMP.Restraint):
3637  r"""Proxy of C++ IMP::isd::MarginalNOERestraint class."""
3638 
3639  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3640 
3641  def __init__(self, m):
3642  r"""__init__(MarginalNOERestraint self, Model m) -> MarginalNOERestraint"""
3643  _IMP_isd.MarginalNOERestraint_swiginit(self, _IMP_isd.new_MarginalNOERestraint(m))
3644 
3645  def add_contribution(self, *args):
3646  r"""
3647  add_contribution(MarginalNOERestraint self, Particle p1, Particle p2, double Iexp)
3648  add_contribution(MarginalNOERestraint self, PairContainer pc, double Iexp)
3649  """
3650  return _IMP_isd.MarginalNOERestraint_add_contribution(self, *args)
3651 
3652  def get_log_gammahat(self):
3653  r"""get_log_gammahat(MarginalNOERestraint self) -> double"""
3654  return _IMP_isd.MarginalNOERestraint_get_log_gammahat(self)
3655 
3656  def get_SS(self):
3657  r"""get_SS(MarginalNOERestraint self) -> double"""
3658  return _IMP_isd.MarginalNOERestraint_get_SS(self)
3659 
3660  def get_number_of_contributions(self):
3661  r"""get_number_of_contributions(MarginalNOERestraint self) -> unsigned int"""
3662  return _IMP_isd.MarginalNOERestraint_get_number_of_contributions(self)
3663 
3664  def get_probability(self):
3665  r"""get_probability(MarginalNOERestraint self) -> double"""
3666  return _IMP_isd.MarginalNOERestraint_get_probability(self)
3667 
3668  def do_get_inputs(self):
3669  r"""do_get_inputs(MarginalNOERestraint self) -> IMP::ModelObjectsTemp"""
3670  return _IMP_isd.MarginalNOERestraint_do_get_inputs(self)
3671 
3672  def get_version_info(self):
3673  r"""get_version_info(MarginalNOERestraint self) -> VersionInfo"""
3674  return _IMP_isd.MarginalNOERestraint_get_version_info(self)
3675  __swig_destroy__ = _IMP_isd.delete_MarginalNOERestraint
3676 
3677  def __str__(self):
3678  r"""__str__(MarginalNOERestraint self) -> std::string"""
3679  return _IMP_isd.MarginalNOERestraint___str__(self)
3680 
3681  def __repr__(self):
3682  r"""__repr__(MarginalNOERestraint self) -> std::string"""
3683  return _IMP_isd.MarginalNOERestraint___repr__(self)
3684 
3685  @staticmethod
3686  def get_from(o):
3687  return _object_cast_to_MarginalNOERestraint(o)
3688 
3689 
3690 # Register MarginalNOERestraint in _IMP_isd:
3691 _IMP_isd.MarginalNOERestraint_swigregister(MarginalNOERestraint)
3692 class MarginalHBondRestraint(IMP.Restraint):
3693  r"""Proxy of C++ IMP::isd::MarginalHBondRestraint class."""
3694 
3695  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3696 
3697  def __init__(self, m):
3698  r"""__init__(MarginalHBondRestraint self, Model m) -> MarginalHBondRestraint"""
3699  _IMP_isd.MarginalHBondRestraint_swiginit(self, _IMP_isd.new_MarginalHBondRestraint(m))
3700 
3701  def add_contribution(self, *args):
3702  r"""
3703  add_contribution(MarginalHBondRestraint self, Particle p1, Particle p2, double Iexp)
3704  add_contribution(MarginalHBondRestraint self, PairContainer pc, double Iexp)
3705  """
3706  return _IMP_isd.MarginalHBondRestraint_add_contribution(self, *args)
3707 
3708  def get_logsquares(self):
3709  r"""get_logsquares(MarginalHBondRestraint self) -> double"""
3710  return _IMP_isd.MarginalHBondRestraint_get_logsquares(self)
3711 
3712  def get_number_of_contributions(self):
3713  r"""get_number_of_contributions(MarginalHBondRestraint self) -> unsigned int"""
3714  return _IMP_isd.MarginalHBondRestraint_get_number_of_contributions(self)
3715 
3716  def get_probability(self):
3717  r"""get_probability(MarginalHBondRestraint self) -> double"""
3718  return _IMP_isd.MarginalHBondRestraint_get_probability(self)
3719 
3720  def do_get_inputs(self):
3721  r"""do_get_inputs(MarginalHBondRestraint self) -> IMP::ModelObjectsTemp"""
3722  return _IMP_isd.MarginalHBondRestraint_do_get_inputs(self)
3723 
3724  def get_version_info(self):
3725  r"""get_version_info(MarginalHBondRestraint self) -> VersionInfo"""
3726  return _IMP_isd.MarginalHBondRestraint_get_version_info(self)
3727  __swig_destroy__ = _IMP_isd.delete_MarginalHBondRestraint
3728 
3729  def __str__(self):
3730  r"""__str__(MarginalHBondRestraint self) -> std::string"""
3731  return _IMP_isd.MarginalHBondRestraint___str__(self)
3732 
3733  def __repr__(self):
3734  r"""__repr__(MarginalHBondRestraint self) -> std::string"""
3735  return _IMP_isd.MarginalHBondRestraint___repr__(self)
3736 
3737  @staticmethod
3738  def get_from(o):
3739  return _object_cast_to_MarginalHBondRestraint(o)
3740 
3741 
3742 # Register MarginalHBondRestraint in _IMP_isd:
3743 _IMP_isd.MarginalHBondRestraint_swigregister(MarginalHBondRestraint)
3744 class TALOSRestraint(IMP.Restraint):
3745  r"""Proxy of C++ IMP::isd::TALOSRestraint class."""
3746 
3747  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3748 
3749  def __init__(self, *args):
3750  r"""
3751  __init__(TALOSRestraint self, Model m, IMP::Particles p, IMP::Floats data, Particle kappa) -> TALOSRestraint
3752  __init__(TALOSRestraint self, Model m, Particle p1, Particle p2, Particle p3, Particle p4, IMP::Floats data, Particle kappa) -> TALOSRestraint
3753  __init__(TALOSRestraint self, Model m, IMP::Particles p, unsigned int N, double R0, double chiexp, Particle kappa) -> TALOSRestraint
3754  __init__(TALOSRestraint self, Model m, Particle p1, Particle p2, Particle p3, Particle p4, unsigned int N, double R0, double chiexp, Particle kappa) -> TALOSRestraint
3755  """
3756  _IMP_isd.TALOSRestraint_swiginit(self, _IMP_isd.new_TALOSRestraint(*args))
3757 
3758  def get_probability(self):
3759  r"""get_probability(TALOSRestraint self) -> double"""
3760  return _IMP_isd.TALOSRestraint_get_probability(self)
3761 
3762  def get_R0(self):
3763  r"""get_R0(TALOSRestraint self) -> double"""
3764  return _IMP_isd.TALOSRestraint_get_R0(self)
3765 
3766  def get_chiexp(self):
3767  r"""get_chiexp(TALOSRestraint self) -> double"""
3768  return _IMP_isd.TALOSRestraint_get_chiexp(self)
3769 
3770  def do_get_inputs(self):
3771  r"""do_get_inputs(TALOSRestraint self) -> IMP::ModelObjectsTemp"""
3772  return _IMP_isd.TALOSRestraint_do_get_inputs(self)
3773 
3774  def get_version_info(self):
3775  r"""get_version_info(TALOSRestraint self) -> VersionInfo"""
3776  return _IMP_isd.TALOSRestraint_get_version_info(self)
3777  __swig_destroy__ = _IMP_isd.delete_TALOSRestraint
3778 
3779  def __str__(self):
3780  r"""__str__(TALOSRestraint self) -> std::string"""
3781  return _IMP_isd.TALOSRestraint___str__(self)
3782 
3783  def __repr__(self):
3784  r"""__repr__(TALOSRestraint self) -> std::string"""
3785  return _IMP_isd.TALOSRestraint___repr__(self)
3786 
3787  @staticmethod
3788  def get_from(o):
3789  return _object_cast_to_TALOSRestraint(o)
3790 
3791 
3792 # Register TALOSRestraint in _IMP_isd:
3793 _IMP_isd.TALOSRestraint_swigregister(TALOSRestraint)
3794 class RepulsiveDistancePairScore(IMP.PairScore):
3795  r"""Proxy of C++ IMP::isd::RepulsiveDistancePairScore class."""
3796 
3797  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3798 
3799  def __init__(self, d0, k):
3800  r"""__init__(RepulsiveDistancePairScore self, double d0, double k) -> RepulsiveDistancePairScore"""
3801  _IMP_isd.RepulsiveDistancePairScore_swiginit(self, _IMP_isd.new_RepulsiveDistancePairScore(d0, k))
3802 
3803  def get_rest_length(self):
3804  r"""get_rest_length(RepulsiveDistancePairScore self) -> double"""
3805  return _IMP_isd.RepulsiveDistancePairScore_get_rest_length(self)
3806 
3807  def get_stiffness(self):
3808  r"""get_stiffness(RepulsiveDistancePairScore self) -> double"""
3809  return _IMP_isd.RepulsiveDistancePairScore_get_stiffness(self)
3810 
3811  def do_get_inputs(self, m, pis):
3812  r"""do_get_inputs(RepulsiveDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3813  return _IMP_isd.RepulsiveDistancePairScore_do_get_inputs(self, m, pis)
3814 
3815  def get_version_info(self):
3816  r"""get_version_info(RepulsiveDistancePairScore self) -> VersionInfo"""
3817  return _IMP_isd.RepulsiveDistancePairScore_get_version_info(self)
3818  __swig_destroy__ = _IMP_isd.delete_RepulsiveDistancePairScore
3819 
3820  def __str__(self):
3821  r"""__str__(RepulsiveDistancePairScore self) -> std::string"""
3822  return _IMP_isd.RepulsiveDistancePairScore___str__(self)
3823 
3824  def __repr__(self):
3825  r"""__repr__(RepulsiveDistancePairScore self) -> std::string"""
3826  return _IMP_isd.RepulsiveDistancePairScore___repr__(self)
3827 
3828  @staticmethod
3829  def get_from(o):
3830  return _object_cast_to_RepulsiveDistancePairScore(o)
3831 
3832 
3833 # Register RepulsiveDistancePairScore in _IMP_isd:
3834 _IMP_isd.RepulsiveDistancePairScore_swigregister(RepulsiveDistancePairScore)
3835 class AmbiguousRestraint(IMP.Restraint):
3836  r"""Proxy of C++ IMP::isd::AmbiguousRestraint class."""
3837 
3838  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3839 
3840  def __init__(self, *args):
3841  r"""
3842  __init__(AmbiguousRestraint self, Model m, int d, Restraint r0, Restraint r1) -> AmbiguousRestraint
3843  __init__(AmbiguousRestraint self, Model m, int d, IMP::Restraints rs) -> AmbiguousRestraint
3844  __init__(AmbiguousRestraint self) -> AmbiguousRestraint
3845  """
3846  _IMP_isd.AmbiguousRestraint_swiginit(self, _IMP_isd.new_AmbiguousRestraint(*args))
3847 
3848  def get_probability(self):
3849  r"""get_probability(AmbiguousRestraint self) -> double"""
3850  return _IMP_isd.AmbiguousRestraint_get_probability(self)
3851 
3852  def do_get_inputs(self):
3853  r"""do_get_inputs(AmbiguousRestraint self) -> IMP::ModelObjectsTemp"""
3854  return _IMP_isd.AmbiguousRestraint_do_get_inputs(self)
3855 
3856  def get_version_info(self):
3857  r"""get_version_info(AmbiguousRestraint self) -> VersionInfo"""
3858  return _IMP_isd.AmbiguousRestraint_get_version_info(self)
3859  __swig_destroy__ = _IMP_isd.delete_AmbiguousRestraint
3860 
3861  def __str__(self):
3862  r"""__str__(AmbiguousRestraint self) -> std::string"""
3863  return _IMP_isd.AmbiguousRestraint___str__(self)
3864 
3865  def __repr__(self):
3866  r"""__repr__(AmbiguousRestraint self) -> std::string"""
3867  return _IMP_isd.AmbiguousRestraint___repr__(self)
3868 
3869  @staticmethod
3870  def get_from(o):
3871  return _object_cast_to_AmbiguousRestraint(o)
3872 
3873 
3874  def _get_as_binary(self):
3875  r"""_get_as_binary(AmbiguousRestraint self) -> PyObject *"""
3876  return _IMP_isd.AmbiguousRestraint__get_as_binary(self)
3877 
3878  def _set_from_binary(self, p):
3879  r"""_set_from_binary(AmbiguousRestraint self, PyObject * p)"""
3880  return _IMP_isd.AmbiguousRestraint__set_from_binary(self, p)
3881 
3882  def __getstate__(self):
3883  p = self._get_as_binary()
3884  if len(self.__dict__) > 1:
3885  d = self.__dict__.copy()
3886  del d['this']
3887  p = (d, p)
3888  return p
3889 
3890  def __setstate__(self, p):
3891  if not hasattr(self, 'this'):
3892  self.__init__()
3893  if isinstance(p, tuple):
3894  d, p = p
3895  self.__dict__.update(d)
3896  return self._set_from_binary(p)
3897 
3898 
3899 # Register AmbiguousRestraint in _IMP_isd:
3900 _IMP_isd.AmbiguousRestraint_swigregister(AmbiguousRestraint)
3901 IMP_ISD_UNIVARIATE_FUNCTIONS_MINIMUM = _IMP_isd.IMP_ISD_UNIVARIATE_FUNCTIONS_MINIMUM
3902 
3903 class UnivariateFunction(IMP.Object):
3904  r"""Proxy of C++ IMP::isd::UnivariateFunction class."""
3905 
3906  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3907 
3908  def __init__(self, *args, **kwargs):
3909  raise AttributeError("No constructor defined - class is abstract")
3910 
3911  def __call__(self, *args):
3912  r"""
3913  __call__(UnivariateFunction self, IMP::Floats const & x) -> IMP::Floats
3914  __call__(UnivariateFunction self, IMP::FloatsList const & xlist) -> Eigen::VectorXd
3915  __call__(UnivariateFunction self, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
3916  """
3917  return _IMP_isd.UnivariateFunction___call__(self, *args)
3918 
3919  def has_changed(self):
3920  r"""has_changed(UnivariateFunction self) -> bool"""
3921  return _IMP_isd.UnivariateFunction_has_changed(self)
3922 
3923  def update(self):
3924  r"""update(UnivariateFunction self)"""
3925  return _IMP_isd.UnivariateFunction_update(self)
3926 
3927  def add_to_derivatives(self, x, accum):
3928  r"""add_to_derivatives(UnivariateFunction self, IMP::Floats const & x, DerivativeAccumulator accum)"""
3929  return _IMP_isd.UnivariateFunction_add_to_derivatives(self, x, accum)
3930 
3931  def add_to_particle_derivative(self, particle_no, value, accum):
3932  r"""add_to_particle_derivative(UnivariateFunction self, unsigned int particle_no, double value, DerivativeAccumulator accum)"""
3933  return _IMP_isd.UnivariateFunction_add_to_particle_derivative(self, particle_no, value, accum)
3934 
3935  def get_derivative_vector(self, particle_no, xlist):
3936  r"""get_derivative_vector(UnivariateFunction self, unsigned int particle_no, IMP::FloatsList const & xlist) -> Eigen::VectorXd"""
3937  return _IMP_isd.UnivariateFunction_get_derivative_vector(self, particle_no, xlist)
3938 
3939  def get_derivative_matrix(self, xlist, stupid):
3940  r"""get_derivative_matrix(UnivariateFunction self, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList"""
3941  return _IMP_isd.UnivariateFunction_get_derivative_matrix(self, xlist, stupid)
3942 
3943  def get_second_derivative_vector(self, *args):
3944  r"""
3945  get_second_derivative_vector(UnivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::VectorXd
3946  get_second_derivative_vector(UnivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
3947  """
3948  return _IMP_isd.UnivariateFunction_get_second_derivative_vector(self, *args)
3949 
3950  def get_ndims_x(self):
3951  r"""get_ndims_x(UnivariateFunction self) -> unsigned int"""
3952  return _IMP_isd.UnivariateFunction_get_ndims_x(self)
3953 
3954  def get_ndims_y(self):
3955  r"""get_ndims_y(UnivariateFunction self) -> unsigned int"""
3956  return _IMP_isd.UnivariateFunction_get_ndims_y(self)
3957 
3958  def get_number_of_particles(self):
3959  r"""get_number_of_particles(UnivariateFunction self) -> unsigned int"""
3960  return _IMP_isd.UnivariateFunction_get_number_of_particles(self)
3961 
3962  def get_particle_is_optimized(self, particle_no):
3963  r"""get_particle_is_optimized(UnivariateFunction self, unsigned int particle_no) -> bool"""
3964  return _IMP_isd.UnivariateFunction_get_particle_is_optimized(self, particle_no)
3965 
3966  def get_number_of_optimized_particles(self):
3967  r"""get_number_of_optimized_particles(UnivariateFunction self) -> unsigned int"""
3968  return _IMP_isd.UnivariateFunction_get_number_of_optimized_particles(self)
3969 
3970  def get_inputs(self):
3971  r"""get_inputs(UnivariateFunction self) -> IMP::ModelObjectsTemp"""
3972  return _IMP_isd.UnivariateFunction_get_inputs(self)
3973  __swig_destroy__ = _IMP_isd.delete_UnivariateFunction
3974 
3975  def __str__(self):
3976  r"""__str__(UnivariateFunction self) -> std::string"""
3977  return _IMP_isd.UnivariateFunction___str__(self)
3978 
3979  def __repr__(self):
3980  r"""__repr__(UnivariateFunction self) -> std::string"""
3981  return _IMP_isd.UnivariateFunction___repr__(self)
3982 
3983  @staticmethod
3984  def get_from(o):
3985  return _object_cast_to_UnivariateFunction(o)
3986 
3987 
3988 # Register UnivariateFunction in _IMP_isd:
3989 _IMP_isd.UnivariateFunction_swigregister(UnivariateFunction)
3990 class Linear1DFunction(UnivariateFunction):
3991  r"""Proxy of C++ IMP::isd::Linear1DFunction class."""
3992 
3993  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3994 
3995  def __init__(self, a, b):
3996  r"""__init__(Linear1DFunction self, Particle a, Particle b) -> Linear1DFunction"""
3997  _IMP_isd.Linear1DFunction_swiginit(self, _IMP_isd.new_Linear1DFunction(a, b))
3998 
3999  def __call__(self, *args):
4000  r"""
4001  __call__(Linear1DFunction self, IMP::Floats const & x) -> IMP::Floats
4002  __call__(Linear1DFunction self, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4003  __call__(Linear1DFunction self, IMP::FloatsList const & xlist, bool arg3) -> IMP::FloatsList
4004  """
4005  return _IMP_isd.Linear1DFunction___call__(self, *args)
4006 
4007  def get_second_derivative_vector(self, *args):
4008  r"""
4009  get_second_derivative_vector(Linear1DFunction self, unsigned int arg2, unsigned int arg3, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4010  get_second_derivative_vector(Linear1DFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool arg5) -> IMP::FloatsList
4011  """
4012  return _IMP_isd.Linear1DFunction_get_second_derivative_vector(self, *args)
4013 
4014  def get_version_info(self):
4015  r"""get_version_info(Linear1DFunction self) -> VersionInfo"""
4016  return _IMP_isd.Linear1DFunction_get_version_info(self)
4017  __swig_destroy__ = _IMP_isd.delete_Linear1DFunction
4018 
4019  def __str__(self):
4020  r"""__str__(Linear1DFunction self) -> std::string"""
4021  return _IMP_isd.Linear1DFunction___str__(self)
4022 
4023  def __repr__(self):
4024  r"""__repr__(Linear1DFunction self) -> std::string"""
4025  return _IMP_isd.Linear1DFunction___repr__(self)
4026 
4027  @staticmethod
4028  def get_from(o):
4029  return _object_cast_to_Linear1DFunction(o)
4030 
4031 
4032 # Register Linear1DFunction in _IMP_isd:
4033 _IMP_isd.Linear1DFunction_swigregister(Linear1DFunction)
4034 class GeneralizedGuinierPorodFunction(UnivariateFunction):
4035  r"""Proxy of C++ IMP::isd::GeneralizedGuinierPorodFunction class."""
4036 
4037  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4038 
4039  def __init__(self, G, Rg, d, s, A):
4040  r"""__init__(GeneralizedGuinierPorodFunction self, Particle G, Particle Rg, Particle d, Particle s, Particle A) -> GeneralizedGuinierPorodFunction"""
4041  _IMP_isd.GeneralizedGuinierPorodFunction_swiginit(self, _IMP_isd.new_GeneralizedGuinierPorodFunction(G, Rg, d, s, A))
4042 
4043  def __call__(self, *args):
4044  r"""
4045  __call__(GeneralizedGuinierPorodFunction self, IMP::Floats const & x) -> IMP::Floats
4046  __call__(GeneralizedGuinierPorodFunction self, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4047  __call__(GeneralizedGuinierPorodFunction self, IMP::FloatsList const & xlist, bool arg3) -> IMP::FloatsList
4048  """
4049  return _IMP_isd.GeneralizedGuinierPorodFunction___call__(self, *args)
4050 
4051  def get_second_derivative_vector(self, *args):
4052  r"""
4053  get_second_derivative_vector(GeneralizedGuinierPorodFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::VectorXd
4054  get_second_derivative_vector(GeneralizedGuinierPorodFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool arg5) -> IMP::FloatsList
4055  """
4056  return _IMP_isd.GeneralizedGuinierPorodFunction_get_second_derivative_vector(self, *args)
4057 
4058  def get_version_info(self):
4059  r"""get_version_info(GeneralizedGuinierPorodFunction self) -> VersionInfo"""
4060  return _IMP_isd.GeneralizedGuinierPorodFunction_get_version_info(self)
4061  __swig_destroy__ = _IMP_isd.delete_GeneralizedGuinierPorodFunction
4062 
4063  def __str__(self):
4064  r"""__str__(GeneralizedGuinierPorodFunction self) -> std::string"""
4065  return _IMP_isd.GeneralizedGuinierPorodFunction___str__(self)
4066 
4067  def __repr__(self):
4068  r"""__repr__(GeneralizedGuinierPorodFunction self) -> std::string"""
4069  return _IMP_isd.GeneralizedGuinierPorodFunction___repr__(self)
4070 
4071  @staticmethod
4072  def get_from(o):
4073  return _object_cast_to_GeneralizedGuinierPorodFunction(o)
4074 
4075 
4076 # Register GeneralizedGuinierPorodFunction in _IMP_isd:
4077 _IMP_isd.GeneralizedGuinierPorodFunction_swigregister(GeneralizedGuinierPorodFunction)
4078 IMP_ISD_BIVARIATE_FUNCTIONS_MINIMUM = _IMP_isd.IMP_ISD_BIVARIATE_FUNCTIONS_MINIMUM
4079 
4080 class BivariateFunction(IMP.Object):
4081  r"""Proxy of C++ IMP::isd::BivariateFunction class."""
4082 
4083  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4084 
4085  def __init__(self, *args, **kwargs):
4086  raise AttributeError("No constructor defined - class is abstract")
4087 
4088  def __call__(self, *args):
4089  r"""
4090  __call__(BivariateFunction self, IMP::Floats const & x1, IMP::Floats const & x2) -> IMP::Floats
4091  __call__(BivariateFunction self, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4092  __call__(BivariateFunction self, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4093  """
4094  return _IMP_isd.BivariateFunction___call__(self, *args)
4095 
4096  def has_changed(self):
4097  r"""has_changed(BivariateFunction self) -> bool"""
4098  return _IMP_isd.BivariateFunction_has_changed(self)
4099 
4100  def update(self):
4101  r"""update(BivariateFunction self)"""
4102  return _IMP_isd.BivariateFunction_update(self)
4103 
4104  def add_to_derivatives(self, x1, x2, accum):
4105  r"""add_to_derivatives(BivariateFunction self, IMP::Floats const & x1, IMP::Floats const & x2, DerivativeAccumulator accum)"""
4106  return _IMP_isd.BivariateFunction_add_to_derivatives(self, x1, x2, accum)
4107 
4108  def add_to_particle_derivative(self, particle_no, value, accum):
4109  r"""add_to_particle_derivative(BivariateFunction self, unsigned int particle_no, double value, DerivativeAccumulator accum)"""
4110  return _IMP_isd.BivariateFunction_add_to_particle_derivative(self, particle_no, value, accum)
4111 
4112  def get_derivative_matrix(self, *args):
4113  r"""
4114  get_derivative_matrix(BivariateFunction self, unsigned int particle_no, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4115  get_derivative_matrix(BivariateFunction self, unsigned int particle_no, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4116  """
4117  return _IMP_isd.BivariateFunction_get_derivative_matrix(self, *args)
4118 
4119  def get_second_derivative_matrix(self, *args):
4120  r"""
4121  get_second_derivative_matrix(BivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4122  get_second_derivative_matrix(BivariateFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool stupid) -> IMP::FloatsList
4123  """
4124  return _IMP_isd.BivariateFunction_get_second_derivative_matrix(self, *args)
4125 
4126  def get_ndims_x1(self):
4127  r"""get_ndims_x1(BivariateFunction self) -> unsigned int"""
4128  return _IMP_isd.BivariateFunction_get_ndims_x1(self)
4129 
4130  def get_ndims_x2(self):
4131  r"""get_ndims_x2(BivariateFunction self) -> unsigned int"""
4132  return _IMP_isd.BivariateFunction_get_ndims_x2(self)
4133 
4134  def get_ndims_y(self):
4135  r"""get_ndims_y(BivariateFunction self) -> unsigned int"""
4136  return _IMP_isd.BivariateFunction_get_ndims_y(self)
4137 
4138  def get_number_of_particles(self):
4139  r"""get_number_of_particles(BivariateFunction self) -> unsigned int"""
4140  return _IMP_isd.BivariateFunction_get_number_of_particles(self)
4141 
4142  def get_particle_is_optimized(self, particle_no):
4143  r"""get_particle_is_optimized(BivariateFunction self, unsigned int particle_no) -> bool"""
4144  return _IMP_isd.BivariateFunction_get_particle_is_optimized(self, particle_no)
4145 
4146  def get_number_of_optimized_particles(self):
4147  r"""get_number_of_optimized_particles(BivariateFunction self) -> unsigned int"""
4148  return _IMP_isd.BivariateFunction_get_number_of_optimized_particles(self)
4149 
4150  def get_inputs(self):
4151  r"""get_inputs(BivariateFunction self) -> IMP::ModelObjectsTemp"""
4152  return _IMP_isd.BivariateFunction_get_inputs(self)
4153  __swig_destroy__ = _IMP_isd.delete_BivariateFunction
4154 
4155  def __str__(self):
4156  r"""__str__(BivariateFunction self) -> std::string"""
4157  return _IMP_isd.BivariateFunction___str__(self)
4158 
4159  def __repr__(self):
4160  r"""__repr__(BivariateFunction self) -> std::string"""
4161  return _IMP_isd.BivariateFunction___repr__(self)
4162 
4163  @staticmethod
4164  def get_from(o):
4165  return _object_cast_to_BivariateFunction(o)
4166 
4167 
4168 # Register BivariateFunction in _IMP_isd:
4169 _IMP_isd.BivariateFunction_swigregister(BivariateFunction)
4170 class Covariance1DFunction(BivariateFunction):
4171  r"""Proxy of C++ IMP::isd::Covariance1DFunction class."""
4172 
4173  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4174 
4175  def __init__(self, tau, ilambda, alpha=2.0, jitter=0.0, cutoff=1e-7):
4176  r"""__init__(Covariance1DFunction self, Particle tau, Particle ilambda, double alpha=2.0, double jitter=0.0, double cutoff=1e-7) -> Covariance1DFunction"""
4177  _IMP_isd.Covariance1DFunction_swiginit(self, _IMP_isd.new_Covariance1DFunction(tau, ilambda, alpha, jitter, cutoff))
4178 
4179  def __call__(self, *args):
4180  r"""
4181  __call__(Covariance1DFunction self, IMP::Floats const & x1, IMP::Floats const & x2) -> IMP::Floats
4182  __call__(Covariance1DFunction self, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4183  __call__(Covariance1DFunction self, IMP::FloatsList const & xlist, bool arg3) -> IMP::FloatsList
4184  """
4185  return _IMP_isd.Covariance1DFunction___call__(self, *args)
4186 
4187  def get_derivative_matrix(self, *args):
4188  r"""
4189  get_derivative_matrix(Covariance1DFunction self, unsigned int particle_no, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4190  get_derivative_matrix(Covariance1DFunction self, unsigned int particle_no, IMP::FloatsList const & xlist, bool arg4) -> IMP::FloatsList
4191  """
4192  return _IMP_isd.Covariance1DFunction_get_derivative_matrix(self, *args)
4193 
4194  def get_second_derivative_matrix(self, *args):
4195  r"""
4196  get_second_derivative_matrix(Covariance1DFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist) -> Eigen::MatrixXd
4197  get_second_derivative_matrix(Covariance1DFunction self, unsigned int particle_a, unsigned int particle_b, IMP::FloatsList const & xlist, bool arg5) -> IMP::FloatsList
4198  """
4199  return _IMP_isd.Covariance1DFunction_get_second_derivative_matrix(self, *args)
4200 
4201  def get_version_info(self):
4202  r"""get_version_info(Covariance1DFunction self) -> VersionInfo"""
4203  return _IMP_isd.Covariance1DFunction_get_version_info(self)
4204  __swig_destroy__ = _IMP_isd.delete_Covariance1DFunction
4205 
4206  def __str__(self):
4207  r"""__str__(Covariance1DFunction self) -> std::string"""
4208  return _IMP_isd.Covariance1DFunction___str__(self)
4209 
4210  def __repr__(self):
4211  r"""__repr__(Covariance1DFunction self) -> std::string"""
4212  return _IMP_isd.Covariance1DFunction___repr__(self)
4213 
4214  @staticmethod
4215  def get_from(o):
4216  return _object_cast_to_Covariance1DFunction(o)
4217 
4218 
4219 # Register Covariance1DFunction in _IMP_isd:
4220 _IMP_isd.Covariance1DFunction_swigregister(Covariance1DFunction)
4221 class GaussianProcessInterpolation(IMP.Object):
4222  r"""Proxy of C++ IMP::isd::GaussianProcessInterpolation class."""
4223 
4224  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4225 
4226  def __init__(self, x, sample_mean, sample_std, n_obs, mean_function, covariance_function, sigma, sparse_cutoff=1e-7):
4227  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"""
4228  _IMP_isd.GaussianProcessInterpolation_swiginit(self, _IMP_isd.new_GaussianProcessInterpolation(x, sample_mean, sample_std, n_obs, mean_function, covariance_function, sigma, sparse_cutoff))
4229 
4230  def get_posterior_mean(self, x):
4231  r"""get_posterior_mean(GaussianProcessInterpolation self, IMP::Floats x) -> double"""
4232  return _IMP_isd.GaussianProcessInterpolation_get_posterior_mean(self, x)
4233 
4234  def get_posterior_covariance(self, x1, x2):
4235  r"""get_posterior_covariance(GaussianProcessInterpolation self, IMP::Floats x1, IMP::Floats x2) -> double"""
4236  return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance(self, x1, x2)
4237 
4238  def get_posterior_covariance_matrix(self, x, arg3):
4239  r"""get_posterior_covariance_matrix(GaussianProcessInterpolation self, IMP::FloatsList x, bool arg3) -> IMP::FloatsList"""
4240  return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance_matrix(self, x, arg3)
4241 
4242  def get_posterior_covariance_derivative(self, x, arg3):
4243  r"""get_posterior_covariance_derivative(GaussianProcessInterpolation self, IMP::Floats x, bool arg3) -> IMP::Floats"""
4244  return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance_derivative(self, x, arg3)
4245 
4246  def get_posterior_covariance_hessian(self, x, arg3):
4247  r"""get_posterior_covariance_hessian(GaussianProcessInterpolation self, IMP::Floats x, bool arg3) -> IMP::FloatsList"""
4248  return _IMP_isd.GaussianProcessInterpolation_get_posterior_covariance_hessian(self, x, arg3)
4249 
4250  def get_inputs(self):
4251  r"""get_inputs(GaussianProcessInterpolation self) -> IMP::ModelObjectsTemp"""
4252  return _IMP_isd.GaussianProcessInterpolation_get_inputs(self)
4253 
4254  def force_mean_update(self):
4255  r"""force_mean_update(GaussianProcessInterpolation self)"""
4256  return _IMP_isd.GaussianProcessInterpolation_force_mean_update(self)
4257 
4258  def force_covariance_update(self):
4259  r"""force_covariance_update(GaussianProcessInterpolation self)"""
4260  return _IMP_isd.GaussianProcessInterpolation_force_covariance_update(self)
4261 
4262  def get_number_of_m_particles(self):
4263  r"""get_number_of_m_particles(GaussianProcessInterpolation self) -> unsigned int"""
4264  return _IMP_isd.GaussianProcessInterpolation_get_number_of_m_particles(self)
4265 
4266  def get_m_particle_is_optimized(self, i):
4267  r"""get_m_particle_is_optimized(GaussianProcessInterpolation self, unsigned int i) -> bool"""
4268  return _IMP_isd.GaussianProcessInterpolation_get_m_particle_is_optimized(self, i)
4269 
4270  def get_number_of_Omega_particles(self):
4271  r"""get_number_of_Omega_particles(GaussianProcessInterpolation self) -> unsigned int"""
4272  return _IMP_isd.GaussianProcessInterpolation_get_number_of_Omega_particles(self)
4273 
4274  def get_Omega_particle_is_optimized(self, i):
4275  r"""get_Omega_particle_is_optimized(GaussianProcessInterpolation self, unsigned int i) -> bool"""
4276  return _IMP_isd.GaussianProcessInterpolation_get_Omega_particle_is_optimized(self, i)
4277 
4278  def get_data_abscissa(self):
4279  r"""get_data_abscissa(GaussianProcessInterpolation self) -> IMP::FloatsList"""
4280  return _IMP_isd.GaussianProcessInterpolation_get_data_abscissa(self)
4281 
4282  def get_data_mean(self):
4283  r"""get_data_mean(GaussianProcessInterpolation self) -> IMP::Floats"""
4284  return _IMP_isd.GaussianProcessInterpolation_get_data_mean(self)
4285 
4286  def get_data_variance(self):
4287  r"""get_data_variance(GaussianProcessInterpolation self) -> IMP::FloatsList"""
4288  return _IMP_isd.GaussianProcessInterpolation_get_data_variance(self)
4289 
4290  def get_version_info(self):
4291  r"""get_version_info(GaussianProcessInterpolation self) -> VersionInfo"""
4292  return _IMP_isd.GaussianProcessInterpolation_get_version_info(self)
4293  __swig_destroy__ = _IMP_isd.delete_GaussianProcessInterpolation
4294 
4295  def __str__(self):
4296  r"""__str__(GaussianProcessInterpolation self) -> std::string"""
4297  return _IMP_isd.GaussianProcessInterpolation___str__(self)
4298 
4299  def __repr__(self):
4300  r"""__repr__(GaussianProcessInterpolation self) -> std::string"""
4301  return _IMP_isd.GaussianProcessInterpolation___repr__(self)
4302 
4303  @staticmethod
4304  def get_from(o):
4305  return _object_cast_to_GaussianProcessInterpolation(o)
4306 
4307 
4308 # Register GaussianProcessInterpolation in _IMP_isd:
4309 _IMP_isd.GaussianProcessInterpolation_swigregister(GaussianProcessInterpolation)
4310 class GaussianProcessInterpolationRestraint(IMP.Restraint):
4311  r"""Proxy of C++ IMP::isd::GaussianProcessInterpolationRestraint class."""
4312 
4313  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4314 
4315  def __init__(self, m, gpi):
4316  r"""__init__(GaussianProcessInterpolationRestraint self, Model m, GaussianProcessInterpolation gpi) -> GaussianProcessInterpolationRestraint"""
4317  _IMP_isd.GaussianProcessInterpolationRestraint_swiginit(self, _IMP_isd.new_GaussianProcessInterpolationRestraint(m, gpi))
4318 
4319  def get_probability(self):
4320  r"""get_probability(GaussianProcessInterpolationRestraint self) -> double"""
4321  return _IMP_isd.GaussianProcessInterpolationRestraint_get_probability(self)
4322 
4323  def set_use_cg(self, use, tol):
4324  r"""set_use_cg(GaussianProcessInterpolationRestraint self, bool use, double tol)"""
4325  return _IMP_isd.GaussianProcessInterpolationRestraint_set_use_cg(self, use, tol)
4326 
4327  def get_minus_log_normalization(self):
4328  r"""get_minus_log_normalization(GaussianProcessInterpolationRestraint self) -> double"""
4329  return _IMP_isd.GaussianProcessInterpolationRestraint_get_minus_log_normalization(self)
4330 
4331  def get_minus_exponent(self):
4332  r"""get_minus_exponent(GaussianProcessInterpolationRestraint self) -> double"""
4333  return _IMP_isd.GaussianProcessInterpolationRestraint_get_minus_exponent(self)
4334 
4335  def get_logdet_hessian(self):
4336  r"""get_logdet_hessian(GaussianProcessInterpolationRestraint self) -> double"""
4337  return _IMP_isd.GaussianProcessInterpolationRestraint_get_logdet_hessian(self)
4338 
4339  def get_hessian(self, *args):
4340  r"""
4341  get_hessian(GaussianProcessInterpolationRestraint self) -> Eigen::MatrixXd
4342  get_hessian(GaussianProcessInterpolationRestraint self, bool unused) -> IMP::FloatsList
4343  """
4344  return _IMP_isd.GaussianProcessInterpolationRestraint_get_hessian(self, *args)
4345 
4346  def do_get_inputs(self):
4347  r"""do_get_inputs(GaussianProcessInterpolationRestraint self) -> IMP::ModelObjectsTemp"""
4348  return _IMP_isd.GaussianProcessInterpolationRestraint_do_get_inputs(self)
4349 
4350  def get_version_info(self):
4351  r"""get_version_info(GaussianProcessInterpolationRestraint self) -> VersionInfo"""
4352  return _IMP_isd.GaussianProcessInterpolationRestraint_get_version_info(self)
4353  __swig_destroy__ = _IMP_isd.delete_GaussianProcessInterpolationRestraint
4354 
4355  def __str__(self):
4356  r"""__str__(GaussianProcessInterpolationRestraint self) -> std::string"""
4357  return _IMP_isd.GaussianProcessInterpolationRestraint___str__(self)
4358 
4359  def __repr__(self):
4360  r"""__repr__(GaussianProcessInterpolationRestraint self) -> std::string"""
4361  return _IMP_isd.GaussianProcessInterpolationRestraint___repr__(self)
4362 
4363  @staticmethod
4364  def get_from(o):
4365  return _object_cast_to_GaussianProcessInterpolationRestraint(o)
4366 
4367 
4368 # Register GaussianProcessInterpolationRestraint in _IMP_isd:
4369 _IMP_isd.GaussianProcessInterpolationRestraint_swigregister(GaussianProcessInterpolationRestraint)
4370 class MolecularDynamics(IMP.atom.MolecularDynamics):
4371  r"""Proxy of C++ IMP::isd::MolecularDynamics class."""
4372 
4373  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4374 
4375  def __init__(self, m=None):
4376  r"""__init__(MolecularDynamics self, Model m=None) -> MolecularDynamics"""
4377  _IMP_isd.MolecularDynamics_swiginit(self, _IMP_isd.new_MolecularDynamics(m))
4378 
4379  def __str__(self):
4380  r"""__str__(MolecularDynamics self) -> std::string"""
4381  return _IMP_isd.MolecularDynamics___str__(self)
4382 
4383  def __repr__(self):
4384  r"""__repr__(MolecularDynamics self) -> std::string"""
4385  return _IMP_isd.MolecularDynamics___repr__(self)
4386 
4387  @staticmethod
4388  def get_from(o):
4389  return _object_cast_to_MolecularDynamics(o)
4390 
4391  __swig_destroy__ = _IMP_isd.delete_MolecularDynamics
4392 
4393 # Register MolecularDynamics in _IMP_isd:
4394 _IMP_isd.MolecularDynamics_swigregister(MolecularDynamics)
4395 class MolecularDynamicsMover(IMP.core.MonteCarloMover):
4396  r"""Proxy of C++ IMP::isd::MolecularDynamicsMover class."""
4397 
4398  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4399 
4400  def __init__(self, m, nsteps=100, timestep=1.):
4401  r"""__init__(MolecularDynamicsMover self, Model m, unsigned int nsteps=100, IMP::Float timestep=1.) -> MolecularDynamicsMover"""
4402  _IMP_isd.MolecularDynamicsMover_swiginit(self, _IMP_isd.new_MolecularDynamicsMover(m, nsteps, timestep))
4403 
4404  def get_md(self):
4405  r"""get_md(MolecularDynamicsMover self) -> MolecularDynamics"""
4406  return _IMP_isd.MolecularDynamicsMover_get_md(self)
4407 
4408  def get_number_of_md_steps(self):
4409  r"""get_number_of_md_steps(MolecularDynamicsMover self) -> unsigned int"""
4410  return _IMP_isd.MolecularDynamicsMover_get_number_of_md_steps(self)
4411 
4412  def set_number_of_md_steps(self, nsteps):
4413  r"""set_number_of_md_steps(MolecularDynamicsMover self, unsigned int nsteps)"""
4414  return _IMP_isd.MolecularDynamicsMover_set_number_of_md_steps(self, nsteps)
4415 
4416  def get_version_info(self):
4417  r"""get_version_info(MolecularDynamicsMover self) -> VersionInfo"""
4418  return _IMP_isd.MolecularDynamicsMover_get_version_info(self)
4419  __swig_destroy__ = _IMP_isd.delete_MolecularDynamicsMover
4420 
4421  def __str__(self):
4422  r"""__str__(MolecularDynamicsMover self) -> std::string"""
4423  return _IMP_isd.MolecularDynamicsMover___str__(self)
4424 
4425  def __repr__(self):
4426  r"""__repr__(MolecularDynamicsMover self) -> std::string"""
4427  return _IMP_isd.MolecularDynamicsMover___repr__(self)
4428 
4429  @staticmethod
4430  def get_from(o):
4431  return _object_cast_to_MolecularDynamicsMover(o)
4432 
4433 
4434 # Register MolecularDynamicsMover in _IMP_isd:
4435 _IMP_isd.MolecularDynamicsMover_swigregister(MolecularDynamicsMover)
4436 class HybridMonteCarlo(IMP.core.MonteCarlo):
4437  r"""Proxy of C++ IMP::isd::HybridMonteCarlo class."""
4438 
4439  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4440 
4441  def __init__(self, m, kT=1.0, steps=100, timestep=1.0, persistence=1):
4442  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"""
4443  _IMP_isd.HybridMonteCarlo_swiginit(self, _IMP_isd.new_HybridMonteCarlo(m, kT, steps, timestep, persistence))
4444 
4445  def get_kinetic_energy(self):
4446  r"""get_kinetic_energy(HybridMonteCarlo self) -> IMP::Float"""
4447  return _IMP_isd.HybridMonteCarlo_get_kinetic_energy(self)
4448 
4449  def get_potential_energy(self):
4450  r"""get_potential_energy(HybridMonteCarlo self) -> IMP::Float"""
4451  return _IMP_isd.HybridMonteCarlo_get_potential_energy(self)
4452 
4453  def get_total_energy(self):
4454  r"""get_total_energy(HybridMonteCarlo self) -> IMP::Float"""
4455  return _IMP_isd.HybridMonteCarlo_get_total_energy(self)
4456 
4457  def set_timestep(self, ts):
4458  r"""set_timestep(HybridMonteCarlo self, IMP::Float ts)"""
4459  return _IMP_isd.HybridMonteCarlo_set_timestep(self, ts)
4460 
4461  def get_timestep(self):
4462  r"""get_timestep(HybridMonteCarlo self) -> double"""
4463  return _IMP_isd.HybridMonteCarlo_get_timestep(self)
4464 
4465  def set_number_of_md_steps(self, nsteps):
4466  r"""set_number_of_md_steps(HybridMonteCarlo self, unsigned int nsteps)"""
4467  return _IMP_isd.HybridMonteCarlo_set_number_of_md_steps(self, nsteps)
4468 
4469  def get_number_of_md_steps(self):
4470  r"""get_number_of_md_steps(HybridMonteCarlo self) -> unsigned int"""
4471  return _IMP_isd.HybridMonteCarlo_get_number_of_md_steps(self)
4472 
4473  def set_persistence(self, persistence=1):
4474  r"""set_persistence(HybridMonteCarlo self, unsigned int persistence=1)"""
4475  return _IMP_isd.HybridMonteCarlo_set_persistence(self, persistence)
4476 
4477  def get_persistence(self):
4478  r"""get_persistence(HybridMonteCarlo self) -> unsigned int"""
4479  return _IMP_isd.HybridMonteCarlo_get_persistence(self)
4480 
4481  def get_md(self):
4482  r"""get_md(HybridMonteCarlo self) -> MolecularDynamics"""
4483  return _IMP_isd.HybridMonteCarlo_get_md(self)
4484 
4485  def do_evaluate(self, arg2, arg3):
4486  r"""do_evaluate(HybridMonteCarlo self, IMP::ParticleIndexes const & arg2, bool arg3) -> double"""
4487  return _IMP_isd.HybridMonteCarlo_do_evaluate(self, arg2, arg3)
4488 
4489  def do_step(self):
4490  r"""do_step(HybridMonteCarlo self)"""
4491  return _IMP_isd.HybridMonteCarlo_do_step(self)
4492  __swig_destroy__ = _IMP_isd.delete_HybridMonteCarlo
4493 
4494  def __str__(self):
4495  r"""__str__(HybridMonteCarlo self) -> std::string"""
4496  return _IMP_isd.HybridMonteCarlo___str__(self)
4497 
4498  def __repr__(self):
4499  r"""__repr__(HybridMonteCarlo self) -> std::string"""
4500  return _IMP_isd.HybridMonteCarlo___repr__(self)
4501 
4502  @staticmethod
4503  def get_from(o):
4504  return _object_cast_to_HybridMonteCarlo(o)
4505 
4506 
4507 # Register HybridMonteCarlo in _IMP_isd:
4508 _IMP_isd.HybridMonteCarlo_swigregister(HybridMonteCarlo)
4509 class FretData(IMP.Object):
4510  r"""Proxy of C++ IMP::isd::FretData class."""
4511 
4512  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4513 
4514  def __init__(self, *args):
4515  r"""
4516  __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
4517  __init__(FretData self) -> FretData
4518  """
4519  _IMP_isd.FretData_swiginit(self, _IMP_isd.new_FretData(*args))
4520 
4521  def get_closest(self, vec, value):
4522  r"""get_closest(FretData self, DistBase vec, double value) -> int"""
4523  return _IMP_isd.FretData_get_closest(self, vec, value)
4524 
4525  def get_probability(self, distn, dist, sigma):
4526  r"""get_probability(FretData self, IMP::Float distn, IMP::Float dist, IMP::Float sigma) -> IMP::Float"""
4527  return _IMP_isd.FretData_get_probability(self, distn, dist, sigma)
4528 
4529  def get_kernel(self, dist, R0):
4530  r"""get_kernel(FretData self, IMP::Float dist, IMP::Float R0) -> IMP::Float"""
4531  return _IMP_isd.FretData_get_kernel(self, dist, R0)
4532 
4533  def get_marginal_element(self, d_term, d_center, sigma):
4534  r"""get_marginal_element(FretData self, IMP::Float d_term, IMP::Float d_center, IMP::Float sigma) -> IMP::FloatPair"""
4535  return _IMP_isd.FretData_get_marginal_element(self, d_term, d_center, sigma)
4536 
4537  def get_version_info(self):
4538  r"""get_version_info(FretData self) -> VersionInfo"""
4539  return _IMP_isd.FretData_get_version_info(self)
4540  __swig_destroy__ = _IMP_isd.delete_FretData
4541 
4542  def __str__(self):
4543  r"""__str__(FretData self) -> std::string"""
4544  return _IMP_isd.FretData___str__(self)
4545 
4546  def __repr__(self):
4547  r"""__repr__(FretData self) -> std::string"""
4548  return _IMP_isd.FretData___repr__(self)
4549 
4550  @staticmethod
4551  def get_from(o):
4552  return _object_cast_to_FretData(o)
4553 
4554 
4555  def _get_as_binary(self):
4556  r"""_get_as_binary(FretData self) -> PyObject *"""
4557  return _IMP_isd.FretData__get_as_binary(self)
4558 
4559  def _set_from_binary(self, p):
4560  r"""_set_from_binary(FretData self, PyObject * p)"""
4561  return _IMP_isd.FretData__set_from_binary(self, p)
4562 
4563  def __getstate__(self):
4564  p = self._get_as_binary()
4565  if len(self.__dict__) > 1:
4566  d = self.__dict__.copy()
4567  del d['this']
4568  p = (d, p)
4569  return p
4570 
4571  def __setstate__(self, p):
4572  if not hasattr(self, 'this'):
4573  self.__init__()
4574  if isinstance(p, tuple):
4575  d, p = p
4576  self.__dict__.update(d)
4577  return self._set_from_binary(p)
4578 
4579 
4580 # Register FretData in _IMP_isd:
4581 _IMP_isd.FretData_swigregister(FretData)
4582 class FretRestraint(IMP.Restraint):
4583  r"""Proxy of C++ IMP::isd::FretRestraint class."""
4584 
4585  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4586 
4587  def __init__(self, *args):
4588  r"""
4589  __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
4590  __init__(FretRestraint self, Particle kda, Particle Ida, Particle sumFi, Particle sigma0, Particle Pbl, double fexp) -> FretRestraint
4591  __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
4592  __init__(FretRestraint self) -> FretRestraint
4593  """
4594  _IMP_isd.FretRestraint_swiginit(self, _IMP_isd.new_FretRestraint(*args))
4595 
4596  def get_sumFi(self):
4597  r"""get_sumFi(FretRestraint self) -> double"""
4598  return _IMP_isd.FretRestraint_get_sumFi(self)
4599 
4600  def get_average_sigma(self, fmod):
4601  r"""get_average_sigma(FretRestraint self, double fmod) -> double"""
4602  return _IMP_isd.FretRestraint_get_average_sigma(self, fmod)
4603 
4604  def get_standard_error(self):
4605  r"""get_standard_error(FretRestraint self) -> double"""
4606  return _IMP_isd.FretRestraint_get_standard_error(self)
4607 
4608  def get_model_fretr(self):
4609  r"""get_model_fretr(FretRestraint self) -> double"""
4610  return _IMP_isd.FretRestraint_get_model_fretr(self)
4611 
4612  def get_probability(self):
4613  r"""get_probability(FretRestraint self) -> double"""
4614  return _IMP_isd.FretRestraint_get_probability(self)
4615 
4616  def get_experimental_value(self):
4617  r"""get_experimental_value(FretRestraint self) -> double"""
4618  return _IMP_isd.FretRestraint_get_experimental_value(self)
4619 
4620  def set_experimental_value(self, fexp):
4621  r"""set_experimental_value(FretRestraint self, double fexp)"""
4622  return _IMP_isd.FretRestraint_set_experimental_value(self, fexp)
4623 
4624  def do_get_inputs(self):
4625  r"""do_get_inputs(FretRestraint self) -> IMP::ModelObjectsTemp"""
4626  return _IMP_isd.FretRestraint_do_get_inputs(self)
4627 
4628  def get_version_info(self):
4629  r"""get_version_info(FretRestraint self) -> VersionInfo"""
4630  return _IMP_isd.FretRestraint_get_version_info(self)
4631  __swig_destroy__ = _IMP_isd.delete_FretRestraint
4632 
4633  def __str__(self):
4634  r"""__str__(FretRestraint self) -> std::string"""
4635  return _IMP_isd.FretRestraint___str__(self)
4636 
4637  def __repr__(self):
4638  r"""__repr__(FretRestraint self) -> std::string"""
4639  return _IMP_isd.FretRestraint___repr__(self)
4640 
4641  @staticmethod
4642  def get_from(o):
4643  return _object_cast_to_FretRestraint(o)
4644 
4645 
4646  def _get_as_binary(self):
4647  r"""_get_as_binary(FretRestraint self) -> PyObject *"""
4648  return _IMP_isd.FretRestraint__get_as_binary(self)
4649 
4650  def _set_from_binary(self, p):
4651  r"""_set_from_binary(FretRestraint self, PyObject * p)"""
4652  return _IMP_isd.FretRestraint__set_from_binary(self, p)
4653 
4654  def __getstate__(self):
4655  p = self._get_as_binary()
4656  if len(self.__dict__) > 1:
4657  d = self.__dict__.copy()
4658  del d['this']
4659  p = (d, p)
4660  return p
4661 
4662  def __setstate__(self, p):
4663  if not hasattr(self, 'this'):
4664  self.__init__()
4665  if isinstance(p, tuple):
4666  d, p = p
4667  self.__dict__.update(d)
4668  return self._set_from_binary(p)
4669 
4670 
4671 # Register FretRestraint in _IMP_isd:
4672 _IMP_isd.FretRestraint_swigregister(FretRestraint)
4673 class CysteineCrossLinkData(IMP.Object):
4674  r"""Proxy of C++ IMP::isd::CysteineCrossLinkData class."""
4675 
4676  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4677 
4678  def __init__(self, *args):
4679  r"""
4680  __init__(CysteineCrossLinkData self, double fexp, IMP::Floats fmod_grid, IMP::Floats omega_grid, IMP::Floats omega0_grid, int prior_type=3) -> CysteineCrossLinkData
4681  __init__(CysteineCrossLinkData self) -> CysteineCrossLinkData
4682  """
4683  _IMP_isd.CysteineCrossLinkData_swiginit(self, _IMP_isd.new_CysteineCrossLinkData(*args))
4684 
4685  def get_closest(self, vec, value):
4686  r"""get_closest(CysteineCrossLinkData self, DistBase vec, double value) -> int"""
4687  return _IMP_isd.CysteineCrossLinkData_get_closest(self, vec, value)
4688 
4689  def get_omegas(self, fmods, omega0):
4690  r"""get_omegas(CysteineCrossLinkData self, IMP::Floats fmods, double omega0) -> IMP::Floats"""
4691  return _IMP_isd.CysteineCrossLinkData_get_omegas(self, fmods, omega0)
4692 
4693  def get_nonmarginal_elements(self, fexp, fmods, omega):
4694  r"""get_nonmarginal_elements(CysteineCrossLinkData self, double fexp, IMP::Floats fmods, double omega) -> IMP::Floats"""
4695  return _IMP_isd.CysteineCrossLinkData_get_nonmarginal_elements(self, fexp, fmods, omega)
4696 
4697  def get_marginal_elements(self, fmods, omega0):
4698  r"""get_marginal_elements(CysteineCrossLinkData self, IMP::Floats fmods, double omega0) -> IMP::Floats"""
4699  return _IMP_isd.CysteineCrossLinkData_get_marginal_elements(self, fmods, omega0)
4700 
4701  def get_omega(self, fmod, omega0):
4702  r"""get_omega(CysteineCrossLinkData self, double fmod, double omega0) -> double"""
4703  return _IMP_isd.CysteineCrossLinkData_get_omega(self, fmod, omega0)
4704 
4705  def get_standard_deviation(self, fmod, omega0):
4706  r"""get_standard_deviation(CysteineCrossLinkData self, double fmod, double omega0) -> double"""
4707  return _IMP_isd.CysteineCrossLinkData_get_standard_deviation(self, fmod, omega0)
4708 
4709  def get_nonmarginal_element(self, fexp, fmod, omega):
4710  r"""get_nonmarginal_element(CysteineCrossLinkData self, double fexp, double fmod, double omega) -> double"""
4711  return _IMP_isd.CysteineCrossLinkData_get_nonmarginal_element(self, fexp, fmod, omega)
4712 
4713  def get_marginal_element(self, fmod, omega0):
4714  r"""get_marginal_element(CysteineCrossLinkData self, double fmod, double omega0) -> double"""
4715  return _IMP_isd.CysteineCrossLinkData_get_marginal_element(self, fmod, omega0)
4716 
4717  def get_version_info(self):
4718  r"""get_version_info(CysteineCrossLinkData self) -> VersionInfo"""
4719  return _IMP_isd.CysteineCrossLinkData_get_version_info(self)
4720  __swig_destroy__ = _IMP_isd.delete_CysteineCrossLinkData
4721 
4722  def __str__(self):
4723  r"""__str__(CysteineCrossLinkData self) -> std::string"""
4724  return _IMP_isd.CysteineCrossLinkData___str__(self)
4725 
4726  def __repr__(self):
4727  r"""__repr__(CysteineCrossLinkData self) -> std::string"""
4728  return _IMP_isd.CysteineCrossLinkData___repr__(self)
4729 
4730  @staticmethod
4731  def get_from(o):
4732  return _object_cast_to_CysteineCrossLinkData(o)
4733 
4734 
4735  def _get_as_binary(self):
4736  r"""_get_as_binary(CysteineCrossLinkData self) -> PyObject *"""
4737  return _IMP_isd.CysteineCrossLinkData__get_as_binary(self)
4738 
4739  def _set_from_binary(self, p):
4740  r"""_set_from_binary(CysteineCrossLinkData self, PyObject * p)"""
4741  return _IMP_isd.CysteineCrossLinkData__set_from_binary(self, p)
4742 
4743  def __getstate__(self):
4744  p = self._get_as_binary()
4745  if len(self.__dict__) > 1:
4746  d = self.__dict__.copy()
4747  del d['this']
4748  p = (d, p)
4749  return p
4750 
4751  def __setstate__(self, p):
4752  if not hasattr(self, 'this'):
4753  self.__init__()
4754  if isinstance(p, tuple):
4755  d, p = p
4756  self.__dict__.update(d)
4757  return self._set_from_binary(p)
4758 
4759 
4760 # Register CysteineCrossLinkData in _IMP_isd:
4761 _IMP_isd.CysteineCrossLinkData_swigregister(CysteineCrossLinkData)
4762 class CrossLinkData(IMP.Object):
4763  r"""Proxy of C++ IMP::isd::CrossLinkData class."""
4764 
4765  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4766 
4767  def __init__(self, *args):
4768  r"""
4769  __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
4770  __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
4771  __init__(CrossLinkData self) -> CrossLinkData
4772  """
4773  _IMP_isd.CrossLinkData_swiginit(self, _IMP_isd.new_CrossLinkData(*args))
4774 
4775  def get_closest(self, vec, value):
4776  r"""get_closest(CrossLinkData self, DistBase vec, double value) -> int"""
4777  return _IMP_isd.CrossLinkData_get_closest(self, vec, value)
4778 
4779  def get_omegas(self, sigma, dists):
4780  r"""get_omegas(CrossLinkData self, double sigma, IMP::Floats dists) -> IMP::Floats"""
4781  return _IMP_isd.CrossLinkData_get_omegas(self, sigma, dists)
4782 
4783  def get_omega_prior(self, omega, omega0):
4784  r"""get_omega_prior(CrossLinkData self, double omega, double omega0) -> double"""
4785  return _IMP_isd.CrossLinkData_get_omega_prior(self, omega, omega0)
4786 
4787  def get_nonmarginal_elements(self, sigmai, dists):
4788  r"""get_nonmarginal_elements(CrossLinkData self, double sigmai, IMP::Floats dists) -> IMP::Floats"""
4789  return _IMP_isd.CrossLinkData_get_nonmarginal_elements(self, sigmai, dists)
4790 
4791  def get_marginal_elements(self, sigma, dists):
4792  r"""get_marginal_elements(CrossLinkData self, double sigma, IMP::Floats dists) -> IMP::Floats"""
4793  return _IMP_isd.CrossLinkData_get_marginal_elements(self, sigma, dists)
4794 
4795  def get_marginal_maximum(self, *args):
4796  r"""
4797  get_marginal_maximum(CrossLinkData self, double sigma) -> double
4798  get_marginal_maximum(CrossLinkData self) -> double
4799  """
4800  return _IMP_isd.CrossLinkData_get_marginal_maximum(self, *args)
4801 
4802  def get_version_info(self):
4803  r"""get_version_info(CrossLinkData self) -> VersionInfo"""
4804  return _IMP_isd.CrossLinkData_get_version_info(self)
4805  __swig_destroy__ = _IMP_isd.delete_CrossLinkData
4806 
4807  def __str__(self):
4808  r"""__str__(CrossLinkData self) -> std::string"""
4809  return _IMP_isd.CrossLinkData___str__(self)
4810 
4811  def __repr__(self):
4812  r"""__repr__(CrossLinkData self) -> std::string"""
4813  return _IMP_isd.CrossLinkData___repr__(self)
4814 
4815  @staticmethod
4816  def get_from(o):
4817  return _object_cast_to_CrossLinkData(o)
4818 
4819 
4820  def _get_as_binary(self):
4821  r"""_get_as_binary(CrossLinkData self) -> PyObject *"""
4822  return _IMP_isd.CrossLinkData__get_as_binary(self)
4823 
4824  def _set_from_binary(self, p):
4825  r"""_set_from_binary(CrossLinkData self, PyObject * p)"""
4826  return _IMP_isd.CrossLinkData__set_from_binary(self, p)
4827 
4828  def __getstate__(self):
4829  p = self._get_as_binary()
4830  if len(self.__dict__) > 1:
4831  d = self.__dict__.copy()
4832  del d['this']
4833  p = (d, p)
4834  return p
4835 
4836  def __setstate__(self, p):
4837  if not hasattr(self, 'this'):
4838  self.__init__()
4839  if isinstance(p, tuple):
4840  d, p = p
4841  self.__dict__.update(d)
4842  return self._set_from_binary(p)
4843 
4844 
4845 # Register CrossLinkData in _IMP_isd:
4846 _IMP_isd.CrossLinkData_swigregister(CrossLinkData)
4847 class CysteineCrossLinkRestraint(IMP.Restraint):
4848  r"""Proxy of C++ IMP::isd::CysteineCrossLinkRestraint class."""
4849 
4850  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4851 
4852  def __init__(self, *args):
4853  r"""
4854  __init__(CysteineCrossLinkRestraint self, Model m, _ParticleIndexAdaptor beta, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor epsilon, _ParticleIndexAdaptor weight, CrossLinkData data, double fexp) -> CysteineCrossLinkRestraint
4855  __init__(CysteineCrossLinkRestraint self, Model m, _ParticleIndexAdaptor beta, _ParticleIndexAdaptor sigma, _ParticleIndexAdaptor epsilon, _ParticleIndexAdaptor weight, CrossLinkData data, CysteineCrossLinkData ccldata) -> CysteineCrossLinkRestraint
4856  __init__(CysteineCrossLinkRestraint self) -> CysteineCrossLinkRestraint
4857  """
4858  _IMP_isd.CysteineCrossLinkRestraint_swiginit(self, _IMP_isd.new_CysteineCrossLinkRestraint(*args))
4859 
4860  def get_probability(self):
4861  r"""get_probability(CysteineCrossLinkRestraint self) -> double"""
4862  return _IMP_isd.CysteineCrossLinkRestraint_get_probability(self)
4863 
4864  def get_standard_error(self):
4865  r"""get_standard_error(CysteineCrossLinkRestraint self) -> double"""
4866  return _IMP_isd.CysteineCrossLinkRestraint_get_standard_error(self)
4867 
4868  def get_frequencies(self):
4869  r"""get_frequencies(CysteineCrossLinkRestraint self) -> IMP::Floats"""
4870  return _IMP_isd.CysteineCrossLinkRestraint_get_frequencies(self)
4871 
4872  def get_model_frequency(self):
4873  r"""get_model_frequency(CysteineCrossLinkRestraint self) -> double"""
4874  return _IMP_isd.CysteineCrossLinkRestraint_get_model_frequency(self)
4875 
4876  def get_distances(self):
4877  r"""get_distances(CysteineCrossLinkRestraint self) -> IMP::Floats"""
4878  return _IMP_isd.CysteineCrossLinkRestraint_get_distances(self)
4879 
4880  def get_truncated_normalization(self, mean, sigma):
4881  r"""get_truncated_normalization(CysteineCrossLinkRestraint self, double mean, double sigma) -> double"""
4882  return _IMP_isd.CysteineCrossLinkRestraint_get_truncated_normalization(self, mean, sigma)
4883 
4884  def get_normal_pdf(self, mean, sigma, x):
4885  r"""get_normal_pdf(CysteineCrossLinkRestraint self, double mean, double sigma, double x) -> double"""
4886  return _IMP_isd.CysteineCrossLinkRestraint_get_normal_pdf(self, mean, sigma, x)
4887 
4888  def add_contribution(self, *args):
4889  r"""
4890  add_contribution(CysteineCrossLinkRestraint self, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2)
4891  add_contribution(CysteineCrossLinkRestraint self, IMP::ParticleIndexes p1, IMP::ParticleIndexes p2)
4892  """
4893  return _IMP_isd.CysteineCrossLinkRestraint_add_contribution(self, *args)
4894 
4895  def get_CB_coordinates(self, ps):
4896  r"""get_CB_coordinates(CysteineCrossLinkRestraint self, IMP::ParticleIndexes const & ps) -> Vector3D"""
4897  return _IMP_isd.CysteineCrossLinkRestraint_get_CB_coordinates(self, ps)
4898 
4899  def get_number_of_contributions(self):
4900  r"""get_number_of_contributions(CysteineCrossLinkRestraint self) -> unsigned int"""
4901  return _IMP_isd.CysteineCrossLinkRestraint_get_number_of_contributions(self)
4902 
4903  def do_get_inputs(self):
4904  r"""do_get_inputs(CysteineCrossLinkRestraint self) -> IMP::ModelObjectsTemp"""
4905  return _IMP_isd.CysteineCrossLinkRestraint_do_get_inputs(self)
4906 
4907  def get_version_info(self):
4908  r"""get_version_info(CysteineCrossLinkRestraint self) -> VersionInfo"""
4909  return _IMP_isd.CysteineCrossLinkRestraint_get_version_info(self)
4910  __swig_destroy__ = _IMP_isd.delete_CysteineCrossLinkRestraint
4911 
4912  def __str__(self):
4913  r"""__str__(CysteineCrossLinkRestraint self) -> std::string"""
4914  return _IMP_isd.CysteineCrossLinkRestraint___str__(self)
4915 
4916  def __repr__(self):
4917  r"""__repr__(CysteineCrossLinkRestraint self) -> std::string"""
4918  return _IMP_isd.CysteineCrossLinkRestraint___repr__(self)
4919 
4920  @staticmethod
4921  def get_from(o):
4922  return _object_cast_to_CysteineCrossLinkRestraint(o)
4923 
4924 
4925  def _get_as_binary(self):
4926  r"""_get_as_binary(CysteineCrossLinkRestraint self) -> PyObject *"""
4927  return _IMP_isd.CysteineCrossLinkRestraint__get_as_binary(self)
4928 
4929  def _set_from_binary(self, p):
4930  r"""_set_from_binary(CysteineCrossLinkRestraint self, PyObject * p)"""
4931  return _IMP_isd.CysteineCrossLinkRestraint__set_from_binary(self, p)
4932 
4933  def __getstate__(self):
4934  p = self._get_as_binary()
4935  if len(self.__dict__) > 1:
4936  d = self.__dict__.copy()
4937  del d['this']
4938  p = (d, p)
4939  return p
4940 
4941  def __setstate__(self, p):
4942  if not hasattr(self, 'this'):
4943  self.__init__()
4944  if isinstance(p, tuple):
4945  d, p = p
4946  self.__dict__.update(d)
4947  return self._set_from_binary(p)
4948 
4949 
4950 # Register CysteineCrossLinkRestraint in _IMP_isd:
4951 _IMP_isd.CysteineCrossLinkRestraint_swigregister(CysteineCrossLinkRestraint)
4952 class WeightMover(IMP.core.MonteCarloMover):
4953  r"""Proxy of C++ IMP::isd::WeightMover class."""
4954 
4955  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4956 
4957  def __init__(self, w, radius):
4958  r"""__init__(WeightMover self, Particle w, IMP::Float radius) -> WeightMover"""
4959  _IMP_isd.WeightMover_swiginit(self, _IMP_isd.new_WeightMover(w, radius))
4960 
4961  def set_radius(self, radius):
4962  r"""set_radius(WeightMover self, IMP::Float radius)"""
4963  return _IMP_isd.WeightMover_set_radius(self, radius)
4964 
4965  def get_radius(self):
4966  r"""get_radius(WeightMover self) -> IMP::Float"""
4967  return _IMP_isd.WeightMover_get_radius(self)
4968 
4969  def get_version_info(self):
4970  r"""get_version_info(WeightMover self) -> VersionInfo"""
4971  return _IMP_isd.WeightMover_get_version_info(self)
4972  __swig_destroy__ = _IMP_isd.delete_WeightMover
4973 
4974  def __str__(self):
4975  r"""__str__(WeightMover self) -> std::string"""
4976  return _IMP_isd.WeightMover___str__(self)
4977 
4978  def __repr__(self):
4979  r"""__repr__(WeightMover self) -> std::string"""
4980  return _IMP_isd.WeightMover___repr__(self)
4981 
4982  @staticmethod
4983  def get_from(o):
4984  return _object_cast_to_WeightMover(o)
4985 
4986 
4987 # Register WeightMover in _IMP_isd:
4988 _IMP_isd.WeightMover_swigregister(WeightMover)
4989 class WeightRestraint(IMP.Restraint):
4990  r"""Proxy of C++ IMP::isd::WeightRestraint class."""
4991 
4992  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4993 
4994  def __init__(self, w, wmin, wmax, kappa):
4995  r"""__init__(WeightRestraint self, Particle w, IMP::Float wmin, IMP::Float wmax, IMP::Float kappa) -> WeightRestraint"""
4996  _IMP_isd.WeightRestraint_swiginit(self, _IMP_isd.new_WeightRestraint(w, wmin, wmax, kappa))
4997 
4998  def do_get_inputs(self):
4999  r"""do_get_inputs(WeightRestraint self) -> IMP::ModelObjectsTemp"""
5000  return _IMP_isd.WeightRestraint_do_get_inputs(self)
5001 
5002  def get_version_info(self):
5003  r"""get_version_info(WeightRestraint self) -> VersionInfo"""
5004  return _IMP_isd.WeightRestraint_get_version_info(self)
5005  __swig_destroy__ = _IMP_isd.delete_WeightRestraint
5006 
5007  def __str__(self):
5008  r"""__str__(WeightRestraint self) -> std::string"""
5009  return _IMP_isd.WeightRestraint___str__(self)
5010 
5011  def __repr__(self):
5012  r"""__repr__(WeightRestraint self) -> std::string"""
5013  return _IMP_isd.WeightRestraint___repr__(self)
5014 
5015  @staticmethod
5016  def get_from(o):
5017  return _object_cast_to_WeightRestraint(o)
5018 
5019 
5020 # Register WeightRestraint in _IMP_isd:
5021 _IMP_isd.WeightRestraint_swigregister(WeightRestraint)
5022 class AtomicCrossLinkMSRestraint(IMP.Restraint):
5023  r"""Proxy of C++ IMP::isd::AtomicCrossLinkMSRestraint class."""
5024 
5025  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5026 
5027  def __init__(self, *args):
5028  r"""
5029  __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
5030  __init__(AtomicCrossLinkMSRestraint self) -> AtomicCrossLinkMSRestraint
5031  """
5032  _IMP_isd.AtomicCrossLinkMSRestraint_swiginit(self, _IMP_isd.new_AtomicCrossLinkMSRestraint(*args))
5033 
5034  def add_contribution(self, ppi, sigmas):
5035  r"""add_contribution(AtomicCrossLinkMSRestraint self, IMP::ParticleIndexPair const & ppi, IMP::ParticleIndexPair const & sigmas)"""
5036  return _IMP_isd.AtomicCrossLinkMSRestraint_add_contribution(self, ppi, sigmas)
5037 
5038  def evaluate_for_contributions(self, c, accum):
5039  r"""evaluate_for_contributions(AtomicCrossLinkMSRestraint self, IMP::Ints c, DerivativeAccumulator accum) -> IMP::Float"""
5040  return _IMP_isd.AtomicCrossLinkMSRestraint_evaluate_for_contributions(self, c, accum)
5041 
5042  def get_number_of_contributions(self):
5043  r"""get_number_of_contributions(AtomicCrossLinkMSRestraint self) -> unsigned int"""
5044  return _IMP_isd.AtomicCrossLinkMSRestraint_get_number_of_contributions(self)
5045 
5046  def get_contribution(self, i):
5047  r"""get_contribution(AtomicCrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
5048  return _IMP_isd.AtomicCrossLinkMSRestraint_get_contribution(self, i)
5049 
5050  def get_contribution_sigmas(self, i):
5051  r"""get_contribution_sigmas(AtomicCrossLinkMSRestraint self, int i) -> IMP::ParticleIndexPair"""
5052  return _IMP_isd.AtomicCrossLinkMSRestraint_get_contribution_sigmas(self, i)
5053 
5054  def get_psi(self):
5055  r"""get_psi(AtomicCrossLinkMSRestraint self) -> ParticleIndex"""
5056  return _IMP_isd.AtomicCrossLinkMSRestraint_get_psi(self)
5057 
5058  def do_get_inputs(self):
5059  r"""do_get_inputs(AtomicCrossLinkMSRestraint self) -> IMP::ModelObjectsTemp"""
5060  return _IMP_isd.AtomicCrossLinkMSRestraint_do_get_inputs(self)
5061 
5062  def show(self, out):
5063  r"""show(AtomicCrossLinkMSRestraint self, _ostream out)"""
5064  return _IMP_isd.AtomicCrossLinkMSRestraint_show(self, out)
5065 
5066  def set_slope(self, slope):
5067  r"""set_slope(AtomicCrossLinkMSRestraint self, IMP::Float slope)"""
5068  return _IMP_isd.AtomicCrossLinkMSRestraint_set_slope(self, slope)
5069 
5070  def set_part_of_log_score(self, hey):
5071  r"""set_part_of_log_score(AtomicCrossLinkMSRestraint self, bool hey)"""
5072  return _IMP_isd.AtomicCrossLinkMSRestraint_set_part_of_log_score(self, hey)
5073 
5074  def get_version_info(self):
5075  r"""get_version_info(AtomicCrossLinkMSRestraint self) -> VersionInfo"""
5076  return _IMP_isd.AtomicCrossLinkMSRestraint_get_version_info(self)
5077  __swig_destroy__ = _IMP_isd.delete_AtomicCrossLinkMSRestraint
5078 
5079  def __str__(self):
5080  r"""__str__(AtomicCrossLinkMSRestraint self) -> std::string"""
5081  return _IMP_isd.AtomicCrossLinkMSRestraint___str__(self)
5082 
5083  def __repr__(self):
5084  r"""__repr__(AtomicCrossLinkMSRestraint self) -> std::string"""
5085  return _IMP_isd.AtomicCrossLinkMSRestraint___repr__(self)
5086 
5087  @staticmethod
5088  def get_from(o):
5089  return _object_cast_to_AtomicCrossLinkMSRestraint(o)
5090 
5091 
5092  def _get_as_binary(self):
5093  r"""_get_as_binary(AtomicCrossLinkMSRestraint self) -> PyObject *"""
5094  return _IMP_isd.AtomicCrossLinkMSRestraint__get_as_binary(self)
5095 
5096  def _set_from_binary(self, p):
5097  r"""_set_from_binary(AtomicCrossLinkMSRestraint self, PyObject * p)"""
5098  return _IMP_isd.AtomicCrossLinkMSRestraint__set_from_binary(self, p)
5099 
5100  def __getstate__(self):
5101  p = self._get_as_binary()
5102  if len(self.__dict__) > 1:
5103  d = self.__dict__.copy()
5104  del d['this']
5105  p = (d, p)
5106  return p
5107 
5108  def __setstate__(self, p):
5109  if not hasattr(self, 'this'):
5110  self.__init__()
5111  if isinstance(p, tuple):
5112  d, p = p
5113  self.__dict__.update(d)
5114  return self._set_from_binary(p)
5115 
5116 
5117 # Register AtomicCrossLinkMSRestraint in _IMP_isd:
5118 _IMP_isd.AtomicCrossLinkMSRestraint_swigregister(AtomicCrossLinkMSRestraint)
5119 class GaussianEMRestraint(IMP.Restraint):
5120  r"""Proxy of C++ IMP::isd::GaussianEMRestraint class."""
5121 
5122  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5123 
5124  def __init__(self, *args):
5125  r"""
5126  __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
5127  __init__(GaussianEMRestraint self) -> GaussianEMRestraint
5128  """
5129  _IMP_isd.GaussianEMRestraint_swiginit(self, _IMP_isd.new_GaussianEMRestraint(*args))
5130 
5131  def get_probability(self):
5132  r"""get_probability(GaussianEMRestraint self) -> double"""
5133  return _IMP_isd.GaussianEMRestraint_get_probability(self)
5134 
5136  r"""get_cross_correlation_coefficient(GaussianEMRestraint self) -> double"""
5137  return _IMP_isd.GaussianEMRestraint_get_cross_correlation_coefficient(self)
5138 
5139  def set_density_filename(self, density_fn):
5140  r"""set_density_filename(GaussianEMRestraint self, std::string density_fn)"""
5141  return _IMP_isd.GaussianEMRestraint_set_density_filename(self, density_fn)
5142 
5143  def compute_initial_scores(self):
5144  r"""compute_initial_scores(GaussianEMRestraint self)"""
5145  return _IMP_isd.GaussianEMRestraint_compute_initial_scores(self)
5146 
5147  def set_slope(self, s):
5148  r"""set_slope(GaussianEMRestraint self, IMP::Float s)"""
5149  return _IMP_isd.GaussianEMRestraint_set_slope(self, s)
5150 
5151  def get_slope(self):
5152  r"""get_slope(GaussianEMRestraint self) -> IMP::Float"""
5153  return _IMP_isd.GaussianEMRestraint_get_slope(self)
5154 
5155  def do_get_inputs(self):
5156  r"""do_get_inputs(GaussianEMRestraint self) -> IMP::ModelObjectsTemp"""
5157  return _IMP_isd.GaussianEMRestraint_do_get_inputs(self)
5158 
5159  def show(self, out):
5160  r"""show(GaussianEMRestraint self, _ostream out)"""
5161  return _IMP_isd.GaussianEMRestraint_show(self, out)
5162 
5163  def get_version_info(self):
5164  r"""get_version_info(GaussianEMRestraint self) -> VersionInfo"""
5165  return _IMP_isd.GaussianEMRestraint_get_version_info(self)
5166  __swig_destroy__ = _IMP_isd.delete_GaussianEMRestraint
5167 
5168  def __str__(self):
5169  r"""__str__(GaussianEMRestraint self) -> std::string"""
5170  return _IMP_isd.GaussianEMRestraint___str__(self)
5171 
5172  def __repr__(self):
5173  r"""__repr__(GaussianEMRestraint self) -> std::string"""
5174  return _IMP_isd.GaussianEMRestraint___repr__(self)
5175 
5176  @staticmethod
5177  def get_from(o):
5178  return _object_cast_to_GaussianEMRestraint(o)
5179 
5180 
5181  def _get_as_binary(self):
5182  r"""_get_as_binary(GaussianEMRestraint self) -> PyObject *"""
5183  return _IMP_isd.GaussianEMRestraint__get_as_binary(self)
5184 
5185  def _set_from_binary(self, p):
5186  r"""_set_from_binary(GaussianEMRestraint self, PyObject * p)"""
5187  return _IMP_isd.GaussianEMRestraint__set_from_binary(self, p)
5188 
5189  def __getstate__(self):
5190  p = self._get_as_binary()
5191  if len(self.__dict__) > 1:
5192  d = self.__dict__.copy()
5193  del d['this']
5194  p = (d, p)
5195  return p
5196 
5197  def __setstate__(self, p):
5198  if not hasattr(self, 'this'):
5199  self.__init__()
5200  if isinstance(p, tuple):
5201  d, p = p
5202  self.__dict__.update(d)
5203  return self._set_from_binary(p)
5204 
5205 
5206 # Register GaussianEMRestraint in _IMP_isd:
5207 _IMP_isd.GaussianEMRestraint_swigregister(GaussianEMRestraint)
5208 class GaussianAnchorEMRestraint(ISDRestraint):
5209  r"""Proxy of C++ IMP::isd::GaussianAnchorEMRestraint class."""
5210 
5211  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5212 
5213  def __init__(self, *args):
5214  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"""
5215  _IMP_isd.GaussianAnchorEMRestraint_swiginit(self, _IMP_isd.new_GaussianAnchorEMRestraint(*args))
5216 
5217  def get_density_particles(self):
5218  r"""get_density_particles(GaussianAnchorEMRestraint self) -> IMP::ParticlesTemp"""
5219  return _IMP_isd.GaussianAnchorEMRestraint_get_density_particles(self)
5220  __swig_destroy__ = _IMP_isd.delete_GaussianAnchorEMRestraint
5221 
5222  def __str__(self):
5223  r"""__str__(GaussianAnchorEMRestraint self) -> std::string"""
5224  return _IMP_isd.GaussianAnchorEMRestraint___str__(self)
5225 
5226  def __repr__(self):
5227  r"""__repr__(GaussianAnchorEMRestraint self) -> std::string"""
5228  return _IMP_isd.GaussianAnchorEMRestraint___repr__(self)
5229 
5230  @staticmethod
5231  def get_from(o):
5232  return _object_cast_to_GaussianAnchorEMRestraint(o)
5233 
5234 
5235 # Register GaussianAnchorEMRestraint in _IMP_isd:
5236 _IMP_isd.GaussianAnchorEMRestraint_swigregister(GaussianAnchorEMRestraint)
5237 class GammaPrior(IMP.Restraint):
5238  r"""Proxy of C++ IMP::isd::GammaPrior class."""
5239 
5240  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5241 
5242  def __init__(self, *args):
5243  r"""__init__(GammaPrior self, Model m, Particle p, IMP::Float k, IMP::Float theta, std::string name="GammaPrior%1%") -> GammaPrior"""
5244  _IMP_isd.GammaPrior_swiginit(self, _IMP_isd.new_GammaPrior(*args))
5245 
5246  def evaluate_at(self, val):
5247  r"""evaluate_at(GammaPrior self, IMP::Float val) -> double"""
5248  return _IMP_isd.GammaPrior_evaluate_at(self, val)
5249 
5250  def do_get_inputs(self):
5251  r"""do_get_inputs(GammaPrior self) -> IMP::ModelObjectsTemp"""
5252  return _IMP_isd.GammaPrior_do_get_inputs(self)
5253 
5254  def get_version_info(self):
5255  r"""get_version_info(GammaPrior self) -> VersionInfo"""
5256  return _IMP_isd.GammaPrior_get_version_info(self)
5257  __swig_destroy__ = _IMP_isd.delete_GammaPrior
5258 
5259  def get_probability(self):
5260  r"""get_probability(GammaPrior self) -> double"""
5261  return _IMP_isd.GammaPrior_get_probability(self)
5262 
5263  def __str__(self):
5264  r"""__str__(GammaPrior self) -> std::string"""
5265  return _IMP_isd.GammaPrior___str__(self)
5266 
5267  def __repr__(self):
5268  r"""__repr__(GammaPrior self) -> std::string"""
5269  return _IMP_isd.GammaPrior___repr__(self)
5270 
5271  @staticmethod
5272  def get_from(o):
5273  return _object_cast_to_GammaPrior(o)
5274 
5275 
5276 # Register GammaPrior in _IMP_isd:
5277 _IMP_isd.GammaPrior_swigregister(GammaPrior)
5278 
5279 def sample_points_from_density(dmap_orig, npoints, threshold=0.0):
5280  r"""sample_points_from_density(DensityMap dmap_orig, int npoints, IMP::Float threshold=0.0) -> IMP::FloatsList"""
5281  return _IMP_isd.sample_points_from_density(dmap_orig, npoints, threshold)
5282 class ResidueProteinProximityRestraint(IMP.Restraint):
5283  r"""Proxy of C++ IMP::isd::ResidueProteinProximityRestraint class."""
5284 
5285  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5286 
5287  def __init__(self, *args):
5288  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"""
5289  _IMP_isd.ResidueProteinProximityRestraint_swiginit(self, _IMP_isd.new_ResidueProteinProximityRestraint(*args))
5290 
5291  def add_pairs_container(self, pc):
5292  r"""add_pairs_container(ResidueProteinProximityRestraint self, PairContainer pc)"""
5293  return _IMP_isd.ResidueProteinProximityRestraint_add_pairs_container(self, pc)
5294 
5295  def add_contribution_particles(self, ppis1, ppis2):
5296  r"""add_contribution_particles(ResidueProteinProximityRestraint self, IMP::ParticleIndexes const ppis1, IMP::ParticleIndexes const ppis2)"""
5297  return _IMP_isd.ResidueProteinProximityRestraint_add_contribution_particles(self, ppis1, ppis2)
5298 
5299  def evaluate_for_contributions(self, c):
5300  r"""evaluate_for_contributions(ResidueProteinProximityRestraint self, IMP::Ints c) -> double"""
5301  return _IMP_isd.ResidueProteinProximityRestraint_evaluate_for_contributions(self, c)
5302 
5303  def get_number_of_contributions(self):
5304  r"""get_number_of_contributions(ResidueProteinProximityRestraint self) -> unsigned int"""
5305  return _IMP_isd.ResidueProteinProximityRestraint_get_number_of_contributions(self)
5306 
5307  def set_sigma(self, sigma):
5308  r"""set_sigma(ResidueProteinProximityRestraint self, double sigma)"""
5309  return _IMP_isd.ResidueProteinProximityRestraint_set_sigma(self, sigma)
5310 
5311  def set_cutoff(self, cutoff):
5312  r"""set_cutoff(ResidueProteinProximityRestraint self, double cutoff)"""
5313  return _IMP_isd.ResidueProteinProximityRestraint_set_cutoff(self, cutoff)
5314 
5315  def set_max_score(self, max_score):
5316  r"""set_max_score(ResidueProteinProximityRestraint self, double max_score)"""
5317  return _IMP_isd.ResidueProteinProximityRestraint_set_max_score(self, max_score)
5318 
5319  def set_yi(self, yi):
5320  r"""set_yi(ResidueProteinProximityRestraint self, double yi)"""
5321  return _IMP_isd.ResidueProteinProximityRestraint_set_yi(self, yi)
5322 
5323  def set_interpolation_factor(self, interpolation_factor):
5324  r"""set_interpolation_factor(ResidueProteinProximityRestraint self, double interpolation_factor)"""
5325  return _IMP_isd.ResidueProteinProximityRestraint_set_interpolation_factor(self, interpolation_factor)
5326 
5327  def set_part_of_log_score(self, hey):
5328  r"""set_part_of_log_score(ResidueProteinProximityRestraint self, bool hey)"""
5329  return _IMP_isd.ResidueProteinProximityRestraint_set_part_of_log_score(self, hey)
5330 
5331  def do_get_inputs(self):
5332  r"""do_get_inputs(ResidueProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
5333  return _IMP_isd.ResidueProteinProximityRestraint_do_get_inputs(self)
5334 
5335  def get_version_info(self):
5336  r"""get_version_info(ResidueProteinProximityRestraint self) -> VersionInfo"""
5337  return _IMP_isd.ResidueProteinProximityRestraint_get_version_info(self)
5338  __swig_destroy__ = _IMP_isd.delete_ResidueProteinProximityRestraint
5339 
5340  def __str__(self):
5341  r"""__str__(ResidueProteinProximityRestraint self) -> std::string"""
5342  return _IMP_isd.ResidueProteinProximityRestraint___str__(self)
5343 
5344  def __repr__(self):
5345  r"""__repr__(ResidueProteinProximityRestraint self) -> std::string"""
5346  return _IMP_isd.ResidueProteinProximityRestraint___repr__(self)
5347 
5348  @staticmethod
5349  def get_from(o):
5350  return _object_cast_to_ResidueProteinProximityRestraint(o)
5351 
5352 
5353 # Register ResidueProteinProximityRestraint in _IMP_isd:
5354 _IMP_isd.ResidueProteinProximityRestraint_swigregister(ResidueProteinProximityRestraint)
5355 
5356 def get_module_version():
5357  r"""get_module_version() -> std::string const"""
5358  return _IMP_isd.get_module_version()
5359 
5360 def get_example_path(fname):
5361  r"""get_example_path(std::string fname) -> std::string"""
5362  return _IMP_isd.get_example_path(fname)
5363 
5364 def get_data_path(fname):
5365  r"""get_data_path(std::string fname) -> std::string"""
5366  return _IMP_isd.get_data_path(fname)
5367 
5368 from . import _version_check
5369 _version_check.check_version(get_module_version())
5370 __version__ = get_module_version()
5371 
5372 
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
A Monte Carlo optimizer.
Definition: MonteCarlo.h:45
Various classes to hold sets of particles.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Definition: XYZR.h:48
static FloatKey get_scale_key()
Definition: Scale.h:47
Make CGAL functionality available to IMP.
virtual void clear_caches()
Definition: Object.h:270
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.
Definition: RestraintSet.h:41
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:86
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()
Definition: Object.h:274
Common base class for heavy weight IMP objects.
Definition: Object.h:111
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.
Definition: VersionInfo.h:29
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)
Definition: Decorator.h:119
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.
Definition: Object.h:206
VectorD< 3 > Vector3D
Definition: VectorD.h:425
Class to handle individual particles of a Model object.
Definition: Particle.h:43
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.
Definition: Restraint.h:56