IMP logo
IMP Reference Guide  2.18.0
The Integrative Modeling Platform
statistics/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.7
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-2022 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 
16 
17 from sys import version_info
18 if version_info >= (2, 6, 0):
19  def swig_import_helper():
20  from os.path import dirname
21  import imp
22  fp = None
23  try:
24  fp, pathname, description = imp.find_module('_IMP_statistics', [dirname(__file__)])
25  except ImportError:
26  import _IMP_statistics
27  return _IMP_statistics
28  if fp is not None:
29  try:
30  _mod = imp.load_module('_IMP_statistics', fp, pathname, description)
31  finally:
32  fp.close()
33  return _mod
34  _IMP_statistics = swig_import_helper()
35  del swig_import_helper
36 else:
37  import _IMP_statistics
38 del version_info
39 try:
40  _swig_property = property
41 except NameError:
42  pass # Python < 2.2 doesn't have 'property'.
43 
44 
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46  if (name == "thisown"):
47  return self.this.own(value)
48  if (name == "this"):
49  if type(value).__name__ == 'SwigPyObject':
50  self.__dict__[name] = value
51  return
52  method = class_type.__swig_setmethods__.get(name, None)
53  if method:
54  return method(self, value)
55  if (not static):
56  object.__setattr__(self, name, value)
57  else:
58  raise AttributeError("You cannot add attributes to %s" % self)
59 
60 
61 def _swig_setattr(self, class_type, name, value):
62  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 
64 
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66  if (name == "thisown"):
67  return self.this.own()
68  method = class_type.__swig_getmethods__.get(name, None)
69  if method:
70  return method(self)
71  if (not static):
72  return object.__getattr__(self, name)
73  else:
74  raise AttributeError(name)
75 
76 def _swig_getattr(self, class_type, name):
77  return _swig_getattr_nondynamic(self, class_type, name, 0)
78 
79 
80 def _swig_repr(self):
81  try:
82  strthis = "proxy of " + self.this.__repr__()
83  except:
84  strthis = ""
85  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
86 
87 try:
88  _object = object
89  _newclass = 1
90 except AttributeError:
91  class _object:
92  pass
93  _newclass = 0
94 
95 
96 
97 def _swig_setattr_nondynamic_method(set):
98  def set_attr(self, name, value):
99  if (name == "thisown"):
100  return self.this.own(value)
101  if hasattr(self, name) or (name == "this"):
102  set(self, name, value)
103  else:
104  raise AttributeError("You cannot add attributes to %s" % self)
105  return set_attr
106 
107 
108 try:
109  import weakref
110  weakref_proxy = weakref.proxy
111 except:
112  weakref_proxy = lambda x: x
113 
114 
115 class IMP_STATISTICS_SwigPyIterator(object):
116  """Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class"""
117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
118 
119  def __init__(self, *args, **kwargs):
120  raise AttributeError("No constructor defined - class is abstract")
121  __repr__ = _swig_repr
122  __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
123  __del__ = lambda self: None
124 
125  def value(self):
126  """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
127  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
128 
129 
130  def incr(self, n=1):
131  """
132  incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
133  incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
134  """
135  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
136 
137 
138  def decr(self, n=1):
139  """
140  decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
141  decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
142  """
143  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
144 
145 
146  def distance(self, x):
147  """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
148  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
149 
150 
151  def equal(self, x):
152  """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
153  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
154 
155 
156  def copy(self):
157  """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
158  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
159 
160 
161  def next(self):
162  """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
163  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
164 
165 
166  def __next__(self):
167  """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
168  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
169 
170 
171  def previous(self):
172  """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
173  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
174 
175 
176  def advance(self, n):
177  """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
178  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
179 
180 
181  def __eq__(self, x):
182  """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
183  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
184 
185 
186  def __ne__(self, x):
187  """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
188  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
189 
190 
191  def __iadd__(self, n):
192  """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
193  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
194 
195 
196  def __isub__(self, n):
197  """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
198  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
199 
200 
201  def __add__(self, n):
202  """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
203  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
204 
205 
206  def __sub__(self, *args):
207  """
208  __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
209  __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
210  """
211  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
212 
213  def __iter__(self):
214  return self
215 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
216 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
217 
218 
219 _value_types=[]
220 _object_types=[]
221 _raii_types=[]
222 _plural_types=[]
223 
224 
225 _IMP_statistics.IMP_DEBUG_swigconstant(_IMP_statistics)
226 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
227 
228 _IMP_statistics.IMP_RELEASE_swigconstant(_IMP_statistics)
229 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
230 
231 _IMP_statistics.IMP_SILENT_swigconstant(_IMP_statistics)
232 IMP_SILENT = _IMP_statistics.IMP_SILENT
233 
234 _IMP_statistics.IMP_PROGRESS_swigconstant(_IMP_statistics)
235 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
236 
237 _IMP_statistics.IMP_TERSE_swigconstant(_IMP_statistics)
238 IMP_TERSE = _IMP_statistics.IMP_TERSE
239 
240 _IMP_statistics.IMP_VERBOSE_swigconstant(_IMP_statistics)
241 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
242 
243 _IMP_statistics.IMP_MEMORY_swigconstant(_IMP_statistics)
244 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
245 
246 _IMP_statistics.IMP_NONE_swigconstant(_IMP_statistics)
247 IMP_NONE = _IMP_statistics.IMP_NONE
248 
249 _IMP_statistics.IMP_USAGE_swigconstant(_IMP_statistics)
250 IMP_USAGE = _IMP_statistics.IMP_USAGE
251 
252 _IMP_statistics.IMP_INTERNAL_swigconstant(_IMP_statistics)
253 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
254 
255 _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_statistics)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
257 
258 _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_statistics)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
260 
261 _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_statistics)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
263 
264 _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_statistics)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
266 
267 _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
269 
270 _IMP_statistics.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_statistics)
271 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
272 
273 _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_statistics)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
275 
276 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_statistics)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
278 
279 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_statistics)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
281 
282 _IMP_statistics.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
284 
285 import sys
286 class _DirectorObjects(object):
287  """@internal Simple class to keep references to director objects
288  to prevent premature deletion."""
289  def __init__(self):
290  self._objects = []
291  def register(self, obj):
292  """Take a reference to a director object; will only work for
293  refcounted C++ classes"""
294  if hasattr(obj, 'get_ref_count'):
295  self._objects.append(obj)
296  def cleanup(self):
297  """Only drop our reference and allow cleanup by Python if no other
298  Python references exist (we hold 3 references: one in self._objects,
299  one in x, and one in the argument list for getrefcount) *and* no
300  other C++ references exist (the Python object always holds one)"""
301  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
302  or x.get_ref_count() > 1]
303 # Do in two steps so the references are kept until the end of the
304 # function (deleting references may trigger a fresh call to this method)
305  self._objects = objs
306  def get_object_count(self):
307  """Get number of director objects (useful for testing only)"""
308  return len(self._objects)
309 _director_objects = _DirectorObjects()
310 
311 class _ostream(object):
312  """Proxy of C++ std::ostream class"""
313  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
314 
315  def __init__(self, *args, **kwargs):
316  raise AttributeError("No constructor defined")
317  __repr__ = _swig_repr
318 
319  def write(self, osa_buf):
320  """write(_ostream self, char const * osa_buf)"""
321  return _IMP_statistics._ostream_write(self, osa_buf)
322 
323 _ostream_swigregister = _IMP_statistics._ostream_swigregister
324 _ostream_swigregister(_ostream)
325 
326 
327 _IMP_statistics.IMP_HAS_NOEXCEPT_swigconstant(_IMP_statistics)
328 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
329 
330 _IMP_statistics.IMP_C_OPEN_BINARY_swigconstant(_IMP_statistics)
331 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
332 import IMP
333 
334 _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
336 
337 _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
339 
340 _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
342 
343 _IMP_statistics.IMP_CGAL_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_statistics)
344 IMP_CGAL_HAS_BOOST_SERIALIZATION = _IMP_statistics.IMP_CGAL_HAS_BOOST_SERIALIZATION
345 
346 _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
347 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
348 
349 _IMP_statistics.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_statistics)
350 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
351 
352 _IMP_statistics.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
353 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
354 import IMP.cgal
355 
356 _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
357 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
358 
359 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
360 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
361 
362 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
363 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
364 
365 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
366 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
367 
368 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_statistics)
369 IMP_ALGEBRA_HAS_BOOST_SERIALIZATION = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SERIALIZATION
370 
371 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
372 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
373 
374 _IMP_statistics.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_statistics)
375 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
376 
377 _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_statistics)
378 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
379 
380 _IMP_statistics.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_statistics)
381 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
382 
383 _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_statistics)
384 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
385 import IMP.algebra
386 
387 _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
388 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
389 
390 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
391 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
392 
393 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
394 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
395 
396 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
397 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
398 
399 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SERIALIZATION_swigconstant(_IMP_statistics)
400 IMP_STATISTICS_HAS_BOOST_SERIALIZATION = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SERIALIZATION
401 
402 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
403 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
404 
405 _IMP_statistics.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_statistics)
406 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
407 
408 _IMP_statistics.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_statistics)
409 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
410 
411 _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_statistics)
412 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
413 
414 Histogram1Ds=list
415 _plural_types.append("Histogram1Ds")
416 _value_types.append("Histogram1D")
417 
418 
419 Histogram2Ds=list
420 _plural_types.append("Histogram2Ds")
421 _value_types.append("Histogram2D")
422 
423 
424 Histogram3Ds=list
425 _plural_types.append("Histogram3Ds")
426 _value_types.append("Histogram3D")
427 
428 
429 Histogram4Ds=list
430 _plural_types.append("Histogram4Ds")
431 _value_types.append("Histogram4D")
432 
433 
434 Histogram5Ds=list
435 _plural_types.append("Histogram5Ds")
436 _value_types.append("Histogram5D")
437 
438 
439 Histogram6Ds=list
440 _plural_types.append("Histogram6Ds")
441 _value_types.append("Histogram6D")
442 
443 
444 Histogram1Ds=list
445 _plural_types.append("Histogram1Ds")
446 _value_types.append("HistogramD<1>")
447 
448 
449 Histogram2Ds=list
450 _plural_types.append("Histogram2Ds")
451 _value_types.append("HistogramD<2>")
452 
453 
454 Histogram3Ds=list
455 _plural_types.append("Histogram3Ds")
456 _value_types.append("HistogramD<3>")
457 
458 
459 Histogram4Ds=list
460 _plural_types.append("Histogram4Ds")
461 _value_types.append("HistogramD<4>")
462 
463 
464 Histogram5Ds=list
465 _plural_types.append("Histogram5Ds")
466 _value_types.append("HistogramD<5>")
467 
468 
469 Histogram6Ds=list
470 _plural_types.append("Histogram6Ds")
471 _value_types.append("HistogramD<6>")
472 
473 
474 HistogramKDs=list
475 _plural_types.append("HistogramKDs")
476 _value_types.append("HistogramKD")
477 
478 
479 HistogramKDs=list
480 _plural_types.append("HistogramKDs")
481 _value_types.append("HistogramD<-1>")
482 
483 
484 _object_types.append("PartitionalClustering")
485 
486 
487 def _object_cast_to_PartitionalClustering(o):
488  """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
489  return _IMP_statistics._object_cast_to_PartitionalClustering(o)
490 
491 _object_types.append("PartitionalClusteringWithCenter")
492 
493 
494 def _object_cast_to_PartitionalClusteringWithCenter(o):
495  """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
496  return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
497 
498 _object_types.append("Embedding")
499 
500 
501 def _object_cast_to_Embedding(o):
502  """_object_cast_to_Embedding(Object o) -> Embedding"""
503  return _IMP_statistics._object_cast_to_Embedding(o)
504 
505 _object_types.append("ConfigurationSetXYZEmbedding")
506 
507 
508 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
509  """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
510  return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
511 
512 _object_types.append("VectorDEmbedding")
513 
514 
515 def _object_cast_to_VectorDEmbedding(o):
516  """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
517  return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
518 
519 _object_types.append("ParticleEmbedding")
520 
521 
522 def _object_cast_to_ParticleEmbedding(o):
523  """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
524  return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
525 
526 _object_types.append("Metric")
527 
528 
529 def _object_cast_to_Metric(o):
530  """_object_cast_to_Metric(Object o) -> Metric"""
531  return _IMP_statistics._object_cast_to_Metric(o)
532 
533 _object_types.append("EuclideanMetric")
534 
535 
536 def _object_cast_to_EuclideanMetric(o):
537  """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
538  return _IMP_statistics._object_cast_to_EuclideanMetric(o)
539 
540 _object_types.append("ConfigurationSetRMSDMetric")
541 
542 
543 def _object_cast_to_ConfigurationSetRMSDMetric(o):
544  """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
545  return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
546 
547 _object_types.append("RecursivePartitionalClusteringMetric")
548 
549 
550 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
551  """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
552  return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
553 
554 _object_types.append("RecursivePartitionalClusteringEmbedding")
555 
556 
557 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
558  """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
559  return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
560 
561 _object_types.append("ChiSquareMetric")
562 
563 
564 def _object_cast_to_ChiSquareMetric(o):
565  """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
566  return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
567 class PartitionalClustering(IMP.Object):
568  """Proxy of C++ IMP::statistics::PartitionalClustering class"""
569  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
570 
571  def __init__(self, *args, **kwargs):
572  raise AttributeError("No constructor defined - class is abstract")
573 
574  def get_number_of_clusters(self):
575  """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
576  return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
577 
578 
579  def get_cluster(self, cluster_index):
580  """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
581  return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
582 
583 
584  def get_cluster_representative(self, cluster_index):
585  """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
586  return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
587 
588  __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
589  __del__ = lambda self: None
590 
591  def __str__(self):
592  """__str__(PartitionalClustering self) -> std::string"""
593  return _IMP_statistics.PartitionalClustering___str__(self)
594 
595 
596  def __repr__(self):
597  """__repr__(PartitionalClustering self) -> std::string"""
598  return _IMP_statistics.PartitionalClustering___repr__(self)
599 
600 
601  @staticmethod
602  def get_from(o):
603  return _object_cast_to_PartitionalClustering(o)
604 
605 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
606 PartitionalClustering_swigregister(PartitionalClustering)
607 
608 
610  """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
611  return _IMP_statistics.validate_partitional_clustering(pc, n)
612 class Embedding(IMP.Object):
613  """Proxy of C++ IMP::statistics::Embedding class"""
614  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
615 
616  def __init__(self, name):
617  """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
618  if self.__class__ == Embedding:
619  _self = None
620  else:
621  _self = self
622  this = _IMP_statistics.new_Embedding(_self, name)
623  try:
624  self.this.append(this)
625  except:
626  self.this = this
627 
628  if self.__class__ != Embedding:
629  _director_objects.register(self)
630 
631 
632 
633 
634  def do_get_weight(self, i):
635  """do_get_weight(Embedding self, unsigned int i) -> double"""
636  return _IMP_statistics.Embedding_do_get_weight(self, i)
637 
638 
639  def get_point(self, i):
640  """get_point(Embedding self, unsigned int i) -> VectorKD"""
641  return _IMP_statistics.Embedding_get_point(self, i)
642 
643 
644  def get_number_of_items(self):
645  """get_number_of_items(Embedding self) -> unsigned int"""
646  return _IMP_statistics.Embedding_get_number_of_items(self)
647 
648 
649  def get_weight(self, i):
650  """get_weight(Embedding self, unsigned int i) -> double"""
651  return _IMP_statistics.Embedding_get_weight(self, i)
652 
653 
654  def get_points(self):
655  """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
656  return _IMP_statistics.Embedding_get_points(self)
657 
658 
659  def __str__(self):
660  """__str__(Embedding self) -> std::string"""
661  return _IMP_statistics.Embedding___str__(self)
662 
663 
664  def __repr__(self):
665  """__repr__(Embedding self) -> std::string"""
666  return _IMP_statistics.Embedding___repr__(self)
667 
668 
669  @staticmethod
670  def get_from(o):
671  return _object_cast_to_Embedding(o)
672 
673 
674  def get_type_name(self):
675  return self.__class__.__name__
676  def do_show(self, out):
677  pass
678  def get_version_info(self):
679  if"IMP::statistics" == "IMP":
680  return VersionInfo(self.__module__,
681  __import__(self.__module__).get_module_version())
682  else:
683  return IMP.VersionInfo(self.__module__,
684  __import__(self.__module__).get_module_version())
685  @staticmethod
686  def get_from(o):
687  return _object_cast_to_Embedding(o)
688 
689  __swig_destroy__ = _IMP_statistics.delete_Embedding
690  __del__ = lambda self: None
691  def __disown__(self):
692  self.this.disown()
693  _IMP_statistics.disown_Embedding(self)
694  return weakref_proxy(self)
695 
696  def do_destroy(self):
697  """do_destroy(Embedding self)"""
698  return _IMP_statistics.Embedding_do_destroy(self)
699 
700 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
701 Embedding_swigregister(Embedding)
702 
703 class Metric(IMP.Object):
704  """Proxy of C++ IMP::statistics::Metric class"""
705  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
706 
707  def __init__(self, name):
708  """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
709  if self.__class__ == Metric:
710  _self = None
711  else:
712  _self = self
713  this = _IMP_statistics.new_Metric(_self, name)
714  try:
715  self.this.append(this)
716  except:
717  self.this = this
718 
719  if self.__class__ != Metric:
720  _director_objects.register(self)
721 
722 
723 
724 
725  def do_get_weight(self, i):
726  """do_get_weight(Metric self, unsigned int i) -> double"""
727  return _IMP_statistics.Metric_do_get_weight(self, i)
728 
729 
730  def get_distance(self, i, j):
731  """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
732  return _IMP_statistics.Metric_get_distance(self, i, j)
733 
734 
735  def get_weight(self, i):
736  """get_weight(Metric self, unsigned int i) -> double"""
737  return _IMP_statistics.Metric_get_weight(self, i)
738 
739 
740  def get_number_of_items(self):
741  """get_number_of_items(Metric self) -> unsigned int"""
742  return _IMP_statistics.Metric_get_number_of_items(self)
743 
744  __swig_destroy__ = _IMP_statistics.delete_Metric
745  __del__ = lambda self: None
746 
747  def __str__(self):
748  """__str__(Metric self) -> std::string"""
749  return _IMP_statistics.Metric___str__(self)
750 
751 
752  def __repr__(self):
753  """__repr__(Metric self) -> std::string"""
754  return _IMP_statistics.Metric___repr__(self)
755 
756 
757  @staticmethod
758  def get_from(o):
759  return _object_cast_to_Metric(o)
760 
761 
762  def get_type_name(self):
763  return self.__class__.__name__
764  def do_show(self, out):
765  pass
766  def get_version_info(self):
767  if"IMP::statistics" == "IMP":
768  return VersionInfo(self.__module__,
769  __import__(self.__module__).get_module_version())
770  else:
771  return IMP.VersionInfo(self.__module__,
772  __import__(self.__module__).get_module_version())
773  @staticmethod
774  def get_from(o):
775  return _object_cast_to_Metric(o)
776 
777  def __disown__(self):
778  self.this.disown()
779  _IMP_statistics.disown_Metric(self)
780  return weakref_proxy(self)
781 
782  def do_destroy(self):
783  """do_destroy(Metric self)"""
784  return _IMP_statistics.Metric_do_destroy(self)
785 
786 Metric_swigregister = _IMP_statistics.Metric_swigregister
787 Metric_swigregister(Metric)
788 
789 class ChiSquareMetric(Metric):
790  """Proxy of C++ IMP::statistics::ChiSquareMetric class"""
791  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
792 
793  def __init__(self, data_exp, constr_type=0):
794  """
795  __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
796  __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
797  """
798  this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
799  try:
800  self.this.append(this)
801  except:
802  self.this = this
803 
804  def add_configuration(self, data, stddev, weight=1.0):
805  """
806  add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
807  add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
808  """
809  return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
810 
811 
812  def get_data(self, i):
813  """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
814  return _IMP_statistics.ChiSquareMetric_get_data(self, i)
815 
816 
817  def get_standard_deviation(self, i):
818  """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
819  return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
820 
821 
822  def do_get_weight(self, i):
823  """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
824  return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
825 
826 
827  def get_chi_square_experimental(self, i):
828  """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
829  return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
830 
831 
832  def get_version_info(self):
833  """get_version_info(ChiSquareMetric self) -> VersionInfo"""
834  return _IMP_statistics.ChiSquareMetric_get_version_info(self)
835 
836 
837  def __str__(self):
838  """__str__(ChiSquareMetric self) -> std::string"""
839  return _IMP_statistics.ChiSquareMetric___str__(self)
840 
841 
842  def __repr__(self):
843  """__repr__(ChiSquareMetric self) -> std::string"""
844  return _IMP_statistics.ChiSquareMetric___repr__(self)
845 
846 
847  @staticmethod
848  def get_from(o):
849  return _object_cast_to_ChiSquareMetric(o)
850 
851 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
852 ChiSquareMetric_swigregister(ChiSquareMetric)
853 
854 class PartitionalClusteringWithCenter(PartitionalClustering):
855  """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class"""
856  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
857 
858  def __init__(self, *args, **kwargs):
859  raise AttributeError("No constructor defined")
860 
861  def get_cluster_center(self, i):
862  """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
863  return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
864 
865 
866  def get_version_info(self):
867  """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
868  return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
869 
870 
871  def __str__(self):
872  """__str__(PartitionalClusteringWithCenter self) -> std::string"""
873  return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
874 
875 
876  def __repr__(self):
877  """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
878  return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
879 
880 
881  @staticmethod
882  def get_from(o):
883  return _object_cast_to_PartitionalClusteringWithCenter(o)
884 
885 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
886 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
887 
888 class ConfigurationSetXYZEmbedding(Embedding):
889  """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class"""
890  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
891 
892  def __init__(self, cs, pi, align=False):
893  """
894  __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
895  __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
896  """
897  this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
898  try:
899  self.this.append(this)
900  except:
901  self.this = this
902 
903  def get_version_info(self):
904  """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
905  return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
906 
907 
908  def __str__(self):
909  """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
910  return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
911 
912 
913  def __repr__(self):
914  """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
915  return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
916 
917 
918  @staticmethod
919  def get_from(o):
920  return _object_cast_to_ConfigurationSetXYZEmbedding(o)
921 
922 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
923 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
924 
925 class ParticleEmbedding(Embedding):
926  """Proxy of C++ IMP::statistics::ParticleEmbedding class"""
927  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
928 
929  def __init__(self, *args):
930  """
931  __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
932  __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
933  __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
934  """
935  this = _IMP_statistics.new_ParticleEmbedding(*args)
936  try:
937  self.this.append(this)
938  except:
939  self.this = this
940 
941  def get_version_info(self):
942  """get_version_info(ParticleEmbedding self) -> VersionInfo"""
943  return _IMP_statistics.ParticleEmbedding_get_version_info(self)
944 
945 
946  def __str__(self):
947  """__str__(ParticleEmbedding self) -> std::string"""
948  return _IMP_statistics.ParticleEmbedding___str__(self)
949 
950 
951  def __repr__(self):
952  """__repr__(ParticleEmbedding self) -> std::string"""
953  return _IMP_statistics.ParticleEmbedding___repr__(self)
954 
955 
956  @staticmethod
957  def get_from(o):
958  return _object_cast_to_ParticleEmbedding(o)
959 
960 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
961 ParticleEmbedding_swigregister(ParticleEmbedding)
962 
963 class VectorDEmbedding(Embedding):
964  """Proxy of C++ IMP::statistics::VectorDEmbedding class"""
965  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
966 
967  def __init__(self, *args):
968  """
969  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
970  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
971  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
972  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
973  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
974  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
975  """
976  this = _IMP_statistics.new_VectorDEmbedding(*args)
977  try:
978  self.this.append(this)
979  except:
980  self.this = this
981 
982  def get_version_info(self):
983  """get_version_info(VectorDEmbedding self) -> VersionInfo"""
984  return _IMP_statistics.VectorDEmbedding_get_version_info(self)
985 
986 
987  def __str__(self):
988  """__str__(VectorDEmbedding self) -> std::string"""
989  return _IMP_statistics.VectorDEmbedding___str__(self)
990 
991 
992  def __repr__(self):
993  """__repr__(VectorDEmbedding self) -> std::string"""
994  return _IMP_statistics.VectorDEmbedding___repr__(self)
995 
996 
997  @staticmethod
998  def get_from(o):
999  return _object_cast_to_VectorDEmbedding(o)
1000 
1001 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
1002 VectorDEmbedding_swigregister(VectorDEmbedding)
1003 
1004 class EuclideanMetric(Metric):
1005  """Proxy of C++ IMP::statistics::EuclideanMetric class"""
1006  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1007 
1008  def __init__(self, em):
1009  """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
1010  this = _IMP_statistics.new_EuclideanMetric(em)
1011  try:
1012  self.this.append(this)
1013  except:
1014  self.this = this
1015 
1016  def get_version_info(self):
1017  """get_version_info(EuclideanMetric self) -> VersionInfo"""
1018  return _IMP_statistics.EuclideanMetric_get_version_info(self)
1019 
1020 
1021  def __str__(self):
1022  """__str__(EuclideanMetric self) -> std::string"""
1023  return _IMP_statistics.EuclideanMetric___str__(self)
1024 
1025 
1026  def __repr__(self):
1027  """__repr__(EuclideanMetric self) -> std::string"""
1028  return _IMP_statistics.EuclideanMetric___repr__(self)
1029 
1030 
1031  @staticmethod
1032  def get_from(o):
1033  return _object_cast_to_EuclideanMetric(o)
1034 
1035 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
1036 EuclideanMetric_swigregister(EuclideanMetric)
1037 
1038 class ConfigurationSetRMSDMetric(Metric):
1039  """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class"""
1040  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1041 
1042  def __init__(self, cs, sc, align=False):
1043  """
1044  __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
1045  __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
1046  """
1047  this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
1048  try:
1049  self.this.append(this)
1050  except:
1051  self.this = this
1052 
1053  def get_version_info(self):
1054  """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
1055  return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
1056 
1057 
1058  def __str__(self):
1059  """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
1060  return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
1061 
1062 
1063  def __repr__(self):
1064  """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
1065  return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
1066 
1067 
1068  @staticmethod
1069  def get_from(o):
1070  return _object_cast_to_ConfigurationSetRMSDMetric(o)
1071 
1072 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
1073 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
1074 
1075 
1076 def create_lloyds_kmeans(embedding, k, iterations):
1077  """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
1078  return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
1079 
1080 def create_bin_based_clustering(embed, side):
1081  """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
1082  return _IMP_statistics.create_bin_based_clustering(embed, side)
1083 
1084 def create_centrality_clustering(*args):
1085  """
1086  create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1087  create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1088  """
1089  return _IMP_statistics.create_centrality_clustering(*args)
1090 
1091 def create_diameter_clustering(d, maximum_diameter):
1092  """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1093  return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1094 
1096  """
1097  create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1098  create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1099  """
1100  return _IMP_statistics.create_connectivity_clustering(*args)
1101 
1102 def create_gromos_clustering(d, cutoff):
1103  """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1104  return _IMP_statistics.create_gromos_clustering(d, cutoff)
1105 
1106 def get_quantile(h, fraction):
1107  """get_quantile(Histogram1D h, double fraction) -> double"""
1108  return _IMP_statistics.get_quantile(h, fraction)
1109 
1110 def get_centroids(d, pc):
1111  """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1112  return _IMP_statistics.get_centroids(d, pc)
1113 
1114 def get_representatives(d, pc):
1115  """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1116  return _IMP_statistics.get_representatives(d, pc)
1117 class RecursivePartitionalClusteringEmbedding(Embedding):
1118  """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class"""
1119  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1120 
1121  def __init__(self, metric, clustering):
1122  """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1123  this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1124  try:
1125  self.this.append(this)
1126  except:
1127  self.this = this
1128 
1129  def create_full_clustering(self, center_cluster):
1130  """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1131  return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1132 
1133 
1134  def get_version_info(self):
1135  """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1136  return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1137 
1138 
1139  def __str__(self):
1140  """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1141  return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1142 
1143 
1144  def __repr__(self):
1145  """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1146  return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1147 
1148 
1149  @staticmethod
1150  def get_from(o):
1151  return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1152 
1153 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1154 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1155 
1156 class RecursivePartitionalClusteringMetric(Metric):
1157  """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class"""
1158  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1159 
1160  def __init__(self, metric, clustering):
1161  """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1162  this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1163  try:
1164  self.this.append(this)
1165  except:
1166  self.this = this
1167 
1168  def create_full_clustering(self, center_cluster):
1169  """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1170  return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1171 
1172 
1173  def get_version_info(self):
1174  """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1175  return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1176 
1177 
1178  def __str__(self):
1179  """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1180  return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1181 
1182 
1183  def __repr__(self):
1184  """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1185  return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1186 
1187 
1188  @staticmethod
1189  def get_from(o):
1190  return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1191 
1192 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1193 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1194 
1195 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1196  """Proxy of C++ IMP::statistics::HistogramD<(1)> class"""
1197  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1198 
1199  def __init__(self, *args):
1200  """
1201  __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1202  __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1203  """
1204  this = _IMP_statistics.new_Histogram1D(*args)
1205  try:
1206  self.this.append(this)
1207  except:
1208  self.this = this
1209 
1210  def add(self, x, weight=1):
1211  """
1212  add(Histogram1D self, Vector1D x, double weight=1)
1213  add(Histogram1D self, Vector1D x)
1214  """
1215  return _IMP_statistics.Histogram1D_add(self, x, weight)
1216 
1217 
1218  def get_total_count(self):
1219  """get_total_count(Histogram1D self) -> double"""
1220  return _IMP_statistics.Histogram1D_get_total_count(self)
1221 
1222 
1223  def get_frequencies(self):
1224  """get_frequencies(Histogram1D self) -> Histogram1D"""
1225  return _IMP_statistics.Histogram1D_get_frequencies(self)
1226 
1227 
1228  def get_probability_distribution_function(self):
1229  """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1230  return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1231 
1232 
1233  def get_counts(self):
1234  """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1235  return _IMP_statistics.Histogram1D_get_counts(self)
1236 
1237 
1238  def get_mean(self):
1239  """get_mean(Histogram1D self) -> Vector1D"""
1240  return _IMP_statistics.Histogram1D_get_mean(self)
1241 
1242 
1243  def get_dimension(self):
1244  """get_dimension(Histogram1D self) -> unsigned int"""
1245  return _IMP_statistics.Histogram1D_get_dimension(self)
1246 
1247 
1248  def get_standard_deviation(self, mean):
1249  """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1250  return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1251 
1252 
1253  def get_bounding_box(self):
1254  """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1255  return _IMP_statistics.Histogram1D_get_bounding_box(self)
1256 
1257 
1258  def get_minimum_and_maximum(self):
1259  """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1260  return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1261 
1262 
1263  def show(self, *args):
1264  """
1265  show(Histogram1D self, _ostream out)
1266  show(Histogram1D self)
1267  """
1268  return _IMP_statistics.Histogram1D_show(self, *args)
1269 
1270 
1271  def __str__(self):
1272  """__str__(Histogram1D self) -> std::string"""
1273  return _IMP_statistics.Histogram1D___str__(self)
1274 
1275 
1276  def __repr__(self):
1277  """__repr__(Histogram1D self) -> std::string"""
1278  return _IMP_statistics.Histogram1D___repr__(self)
1279 
1280 
1281  def __cmp__(self, arg2):
1282  """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1283  return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1284 
1285 
1286  def __eq__(self, arg2):
1287  """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1288  return _IMP_statistics.Histogram1D___eq__(self, arg2)
1289 
1290  __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1291  __del__ = lambda self: None
1292 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1293 Histogram1D_swigregister(Histogram1D)
1294 
1295 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1296  """Proxy of C++ IMP::statistics::HistogramD<(2)> class"""
1297  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1298 
1299  def __init__(self, *args):
1300  """
1301  __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1302  __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1303  """
1304  this = _IMP_statistics.new_Histogram2D(*args)
1305  try:
1306  self.this.append(this)
1307  except:
1308  self.this = this
1309 
1310  def add(self, x, weight=1):
1311  """
1312  add(Histogram2D self, Vector2D x, double weight=1)
1313  add(Histogram2D self, Vector2D x)
1314  """
1315  return _IMP_statistics.Histogram2D_add(self, x, weight)
1316 
1317 
1318  def get_total_count(self):
1319  """get_total_count(Histogram2D self) -> double"""
1320  return _IMP_statistics.Histogram2D_get_total_count(self)
1321 
1322 
1323  def get_frequencies(self):
1324  """get_frequencies(Histogram2D self) -> Histogram2D"""
1325  return _IMP_statistics.Histogram2D_get_frequencies(self)
1326 
1327 
1328  def get_probability_distribution_function(self):
1329  """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1330  return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1331 
1332 
1333  def get_counts(self):
1334  """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1335  return _IMP_statistics.Histogram2D_get_counts(self)
1336 
1337 
1338  def get_mean(self):
1339  """get_mean(Histogram2D self) -> Vector2D"""
1340  return _IMP_statistics.Histogram2D_get_mean(self)
1341 
1342 
1343  def get_dimension(self):
1344  """get_dimension(Histogram2D self) -> unsigned int"""
1345  return _IMP_statistics.Histogram2D_get_dimension(self)
1346 
1347 
1348  def get_standard_deviation(self, mean):
1349  """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1350  return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1351 
1352 
1353  def get_bounding_box(self):
1354  """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1355  return _IMP_statistics.Histogram2D_get_bounding_box(self)
1356 
1357 
1358  def get_minimum_and_maximum(self):
1359  """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1360  return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1361 
1362 
1363  def show(self, *args):
1364  """
1365  show(Histogram2D self, _ostream out)
1366  show(Histogram2D self)
1367  """
1368  return _IMP_statistics.Histogram2D_show(self, *args)
1369 
1370 
1371  def __str__(self):
1372  """__str__(Histogram2D self) -> std::string"""
1373  return _IMP_statistics.Histogram2D___str__(self)
1374 
1375 
1376  def __repr__(self):
1377  """__repr__(Histogram2D self) -> std::string"""
1378  return _IMP_statistics.Histogram2D___repr__(self)
1379 
1380 
1381  def __cmp__(self, arg2):
1382  """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1383  return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1384 
1385 
1386  def __eq__(self, arg2):
1387  """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1388  return _IMP_statistics.Histogram2D___eq__(self, arg2)
1389 
1390  __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1391  __del__ = lambda self: None
1392 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1393 Histogram2D_swigregister(Histogram2D)
1394 
1395 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1396  """Proxy of C++ IMP::statistics::HistogramD<(3)> class"""
1397  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1398 
1399  def __init__(self, *args):
1400  """
1401  __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1402  __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1403  """
1404  this = _IMP_statistics.new_Histogram3D(*args)
1405  try:
1406  self.this.append(this)
1407  except:
1408  self.this = this
1409 
1410  def add(self, x, weight=1):
1411  """
1412  add(Histogram3D self, Vector3D x, double weight=1)
1413  add(Histogram3D self, Vector3D x)
1414  """
1415  return _IMP_statistics.Histogram3D_add(self, x, weight)
1416 
1417 
1418  def get_total_count(self):
1419  """get_total_count(Histogram3D self) -> double"""
1420  return _IMP_statistics.Histogram3D_get_total_count(self)
1421 
1422 
1423  def get_frequencies(self):
1424  """get_frequencies(Histogram3D self) -> Histogram3D"""
1425  return _IMP_statistics.Histogram3D_get_frequencies(self)
1426 
1427 
1428  def get_probability_distribution_function(self):
1429  """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1430  return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1431 
1432 
1433  def get_counts(self):
1434  """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1435  return _IMP_statistics.Histogram3D_get_counts(self)
1436 
1437 
1438  def get_mean(self):
1439  """get_mean(Histogram3D self) -> Vector3D"""
1440  return _IMP_statistics.Histogram3D_get_mean(self)
1441 
1442 
1443  def get_dimension(self):
1444  """get_dimension(Histogram3D self) -> unsigned int"""
1445  return _IMP_statistics.Histogram3D_get_dimension(self)
1446 
1447 
1448  def get_standard_deviation(self, mean):
1449  """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1450  return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1451 
1452 
1453  def get_bounding_box(self):
1454  """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1455  return _IMP_statistics.Histogram3D_get_bounding_box(self)
1456 
1457 
1458  def get_minimum_and_maximum(self):
1459  """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1460  return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1461 
1462 
1463  def show(self, *args):
1464  """
1465  show(Histogram3D self, _ostream out)
1466  show(Histogram3D self)
1467  """
1468  return _IMP_statistics.Histogram3D_show(self, *args)
1469 
1470 
1471  def __str__(self):
1472  """__str__(Histogram3D self) -> std::string"""
1473  return _IMP_statistics.Histogram3D___str__(self)
1474 
1475 
1476  def __repr__(self):
1477  """__repr__(Histogram3D self) -> std::string"""
1478  return _IMP_statistics.Histogram3D___repr__(self)
1479 
1480 
1481  def __cmp__(self, arg2):
1482  """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1483  return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1484 
1485 
1486  def __eq__(self, arg2):
1487  """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1488  return _IMP_statistics.Histogram3D___eq__(self, arg2)
1489 
1490  __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1491  __del__ = lambda self: None
1492 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1493 Histogram3D_swigregister(Histogram3D)
1494 
1495 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1496  """Proxy of C++ IMP::statistics::HistogramD<(4)> class"""
1497  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1498 
1499  def __init__(self, *args):
1500  """
1501  __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1502  __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1503  """
1504  this = _IMP_statistics.new_Histogram4D(*args)
1505  try:
1506  self.this.append(this)
1507  except:
1508  self.this = this
1509 
1510  def add(self, x, weight=1):
1511  """
1512  add(Histogram4D self, Vector4D x, double weight=1)
1513  add(Histogram4D self, Vector4D x)
1514  """
1515  return _IMP_statistics.Histogram4D_add(self, x, weight)
1516 
1517 
1518  def get_total_count(self):
1519  """get_total_count(Histogram4D self) -> double"""
1520  return _IMP_statistics.Histogram4D_get_total_count(self)
1521 
1522 
1523  def get_frequencies(self):
1524  """get_frequencies(Histogram4D self) -> Histogram4D"""
1525  return _IMP_statistics.Histogram4D_get_frequencies(self)
1526 
1527 
1528  def get_probability_distribution_function(self):
1529  """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1530  return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1531 
1532 
1533  def get_counts(self):
1534  """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1535  return _IMP_statistics.Histogram4D_get_counts(self)
1536 
1537 
1538  def get_mean(self):
1539  """get_mean(Histogram4D self) -> Vector4D"""
1540  return _IMP_statistics.Histogram4D_get_mean(self)
1541 
1542 
1543  def get_dimension(self):
1544  """get_dimension(Histogram4D self) -> unsigned int"""
1545  return _IMP_statistics.Histogram4D_get_dimension(self)
1546 
1547 
1548  def get_standard_deviation(self, mean):
1549  """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1550  return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1551 
1552 
1553  def get_bounding_box(self):
1554  """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1555  return _IMP_statistics.Histogram4D_get_bounding_box(self)
1556 
1557 
1558  def get_minimum_and_maximum(self):
1559  """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1560  return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1561 
1562 
1563  def show(self, *args):
1564  """
1565  show(Histogram4D self, _ostream out)
1566  show(Histogram4D self)
1567  """
1568  return _IMP_statistics.Histogram4D_show(self, *args)
1569 
1570 
1571  def __str__(self):
1572  """__str__(Histogram4D self) -> std::string"""
1573  return _IMP_statistics.Histogram4D___str__(self)
1574 
1575 
1576  def __repr__(self):
1577  """__repr__(Histogram4D self) -> std::string"""
1578  return _IMP_statistics.Histogram4D___repr__(self)
1579 
1580 
1581  def __cmp__(self, arg2):
1582  """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1583  return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1584 
1585 
1586  def __eq__(self, arg2):
1587  """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1588  return _IMP_statistics.Histogram4D___eq__(self, arg2)
1589 
1590  __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1591  __del__ = lambda self: None
1592 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1593 Histogram4D_swigregister(Histogram4D)
1594 
1595 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1596  """Proxy of C++ IMP::statistics::HistogramD<(5)> class"""
1597  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1598 
1599  def __init__(self, *args):
1600  """
1601  __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1602  __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1603  """
1604  this = _IMP_statistics.new_Histogram5D(*args)
1605  try:
1606  self.this.append(this)
1607  except:
1608  self.this = this
1609 
1610  def add(self, x, weight=1):
1611  """
1612  add(Histogram5D self, Vector5D x, double weight=1)
1613  add(Histogram5D self, Vector5D x)
1614  """
1615  return _IMP_statistics.Histogram5D_add(self, x, weight)
1616 
1617 
1618  def get_total_count(self):
1619  """get_total_count(Histogram5D self) -> double"""
1620  return _IMP_statistics.Histogram5D_get_total_count(self)
1621 
1622 
1623  def get_frequencies(self):
1624  """get_frequencies(Histogram5D self) -> Histogram5D"""
1625  return _IMP_statistics.Histogram5D_get_frequencies(self)
1626 
1627 
1628  def get_probability_distribution_function(self):
1629  """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1630  return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1631 
1632 
1633  def get_counts(self):
1634  """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1635  return _IMP_statistics.Histogram5D_get_counts(self)
1636 
1637 
1638  def get_mean(self):
1639  """get_mean(Histogram5D self) -> Vector5D"""
1640  return _IMP_statistics.Histogram5D_get_mean(self)
1641 
1642 
1643  def get_dimension(self):
1644  """get_dimension(Histogram5D self) -> unsigned int"""
1645  return _IMP_statistics.Histogram5D_get_dimension(self)
1646 
1647 
1648  def get_standard_deviation(self, mean):
1649  """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1650  return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1651 
1652 
1653  def get_bounding_box(self):
1654  """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1655  return _IMP_statistics.Histogram5D_get_bounding_box(self)
1656 
1657 
1658  def get_minimum_and_maximum(self):
1659  """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1660  return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1661 
1662 
1663  def show(self, *args):
1664  """
1665  show(Histogram5D self, _ostream out)
1666  show(Histogram5D self)
1667  """
1668  return _IMP_statistics.Histogram5D_show(self, *args)
1669 
1670 
1671  def __str__(self):
1672  """__str__(Histogram5D self) -> std::string"""
1673  return _IMP_statistics.Histogram5D___str__(self)
1674 
1675 
1676  def __repr__(self):
1677  """__repr__(Histogram5D self) -> std::string"""
1678  return _IMP_statistics.Histogram5D___repr__(self)
1679 
1680 
1681  def __cmp__(self, arg2):
1682  """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1683  return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1684 
1685 
1686  def __eq__(self, arg2):
1687  """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1688  return _IMP_statistics.Histogram5D___eq__(self, arg2)
1689 
1690  __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1691  __del__ = lambda self: None
1692 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1693 Histogram5D_swigregister(Histogram5D)
1694 
1695 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1696  """Proxy of C++ IMP::statistics::HistogramD<(6)> class"""
1697  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1698 
1699  def __init__(self, *args):
1700  """
1701  __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1702  __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1703  """
1704  this = _IMP_statistics.new_Histogram6D(*args)
1705  try:
1706  self.this.append(this)
1707  except:
1708  self.this = this
1709 
1710  def add(self, x, weight=1):
1711  """
1712  add(Histogram6D self, Vector6D x, double weight=1)
1713  add(Histogram6D self, Vector6D x)
1714  """
1715  return _IMP_statistics.Histogram6D_add(self, x, weight)
1716 
1717 
1718  def get_total_count(self):
1719  """get_total_count(Histogram6D self) -> double"""
1720  return _IMP_statistics.Histogram6D_get_total_count(self)
1721 
1722 
1723  def get_frequencies(self):
1724  """get_frequencies(Histogram6D self) -> Histogram6D"""
1725  return _IMP_statistics.Histogram6D_get_frequencies(self)
1726 
1727 
1728  def get_probability_distribution_function(self):
1729  """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1730  return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1731 
1732 
1733  def get_counts(self):
1734  """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1735  return _IMP_statistics.Histogram6D_get_counts(self)
1736 
1737 
1738  def get_mean(self):
1739  """get_mean(Histogram6D self) -> Vector6D"""
1740  return _IMP_statistics.Histogram6D_get_mean(self)
1741 
1742 
1743  def get_dimension(self):
1744  """get_dimension(Histogram6D self) -> unsigned int"""
1745  return _IMP_statistics.Histogram6D_get_dimension(self)
1746 
1747 
1748  def get_standard_deviation(self, mean):
1749  """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1750  return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1751 
1752 
1753  def get_bounding_box(self):
1754  """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1755  return _IMP_statistics.Histogram6D_get_bounding_box(self)
1756 
1757 
1758  def get_minimum_and_maximum(self):
1759  """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1760  return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1761 
1762 
1763  def show(self, *args):
1764  """
1765  show(Histogram6D self, _ostream out)
1766  show(Histogram6D self)
1767  """
1768  return _IMP_statistics.Histogram6D_show(self, *args)
1769 
1770 
1771  def __str__(self):
1772  """__str__(Histogram6D self) -> std::string"""
1773  return _IMP_statistics.Histogram6D___str__(self)
1774 
1775 
1776  def __repr__(self):
1777  """__repr__(Histogram6D self) -> std::string"""
1778  return _IMP_statistics.Histogram6D___repr__(self)
1779 
1780 
1781  def __cmp__(self, arg2):
1782  """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1783  return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1784 
1785 
1786  def __eq__(self, arg2):
1787  """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1788  return _IMP_statistics.Histogram6D___eq__(self, arg2)
1789 
1790  __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1791  __del__ = lambda self: None
1792 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1793 Histogram6D_swigregister(Histogram6D)
1794 
1795 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1796  """Proxy of C++ IMP::statistics::HistogramD<(-1)> class"""
1797  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1798 
1799  def __init__(self, *args):
1800  """
1801  __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1802  __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1803  """
1804  this = _IMP_statistics.new_HistogramKD(*args)
1805  try:
1806  self.this.append(this)
1807  except:
1808  self.this = this
1809 
1810  def add(self, x, weight=1):
1811  """
1812  add(HistogramKD self, VectorKD x, double weight=1)
1813  add(HistogramKD self, VectorKD x)
1814  """
1815  return _IMP_statistics.HistogramKD_add(self, x, weight)
1816 
1817 
1818  def get_total_count(self):
1819  """get_total_count(HistogramKD self) -> double"""
1820  return _IMP_statistics.HistogramKD_get_total_count(self)
1821 
1822 
1823  def get_frequencies(self):
1824  """get_frequencies(HistogramKD self) -> HistogramKD"""
1825  return _IMP_statistics.HistogramKD_get_frequencies(self)
1826 
1827 
1828  def get_probability_distribution_function(self):
1829  """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1830  return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1831 
1832 
1833  def get_counts(self):
1834  """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1835  return _IMP_statistics.HistogramKD_get_counts(self)
1836 
1837 
1838  def get_mean(self):
1839  """get_mean(HistogramKD self) -> VectorKD"""
1840  return _IMP_statistics.HistogramKD_get_mean(self)
1841 
1842 
1843  def get_dimension(self):
1844  """get_dimension(HistogramKD self) -> unsigned int"""
1845  return _IMP_statistics.HistogramKD_get_dimension(self)
1846 
1847 
1848  def get_standard_deviation(self, mean):
1849  """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1850  return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1851 
1852 
1853  def get_bounding_box(self):
1854  """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1855  return _IMP_statistics.HistogramKD_get_bounding_box(self)
1856 
1857 
1858  def get_minimum_and_maximum(self):
1859  """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1860  return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1861 
1862 
1863  def show(self, *args):
1864  """
1865  show(HistogramKD self, _ostream out)
1866  show(HistogramKD self)
1867  """
1868  return _IMP_statistics.HistogramKD_show(self, *args)
1869 
1870 
1871  def __str__(self):
1872  """__str__(HistogramKD self) -> std::string"""
1873  return _IMP_statistics.HistogramKD___str__(self)
1874 
1875 
1876  def __repr__(self):
1877  """__repr__(HistogramKD self) -> std::string"""
1878  return _IMP_statistics.HistogramKD___repr__(self)
1879 
1880 
1881  def __cmp__(self, arg2):
1882  """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1883  return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1884 
1885 
1886  def __eq__(self, arg2):
1887  """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1888  return _IMP_statistics.HistogramKD___eq__(self, arg2)
1889 
1890  __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1891  __del__ = lambda self: None
1892 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1893 HistogramKD_swigregister(HistogramKD)
1894 
1895 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1896  """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class"""
1897  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1898  __repr__ = _swig_repr
1899 
1900  def __setitem__(self, *args):
1901  """
1902  __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1903  __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1904  """
1905  return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1906 
1907 
1908  def __getitem__(self, *args):
1909  """
1910  __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1911  __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1912  """
1913  return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1914 
1915 
1916  def __init__(self, *args):
1917  """
1918  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1919  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1920  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1921  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1922  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1923  """
1924  this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1925  try:
1926  self.this.append(this)
1927  except:
1928  self.this = this
1929 
1930  def get_is_dense():
1931  """get_is_dense() -> bool"""
1932  return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1933 
1934  get_is_dense = staticmethod(get_is_dense)
1935 
1936  def show(self, *args):
1937  """
1938  show(_IntDenseGridStorageKD self, _ostream out)
1939  show(_IntDenseGridStorageKD self)
1940  """
1941  return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1942 
1943 
1944  def add_voxel(self, arg2, arg3):
1945  """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1946  return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1947 
1948 
1949  def get_all_voxels(self):
1950  """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1951  return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1952 
1953  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1954  __del__ = lambda self: None
1955 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1956 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1957 
1958 def _IntDenseGridStorageKD_get_is_dense():
1959  """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1960  return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1961 
1962 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1963  """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class"""
1964  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1965  __repr__ = _swig_repr
1966 
1967  def __setitem__(self, *args):
1968  """
1969  __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1970  __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1971  """
1972  return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1973 
1974 
1975  def __getitem__(self, *args):
1976  """
1977  __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1978  __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1979  """
1980  return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1981 
1982 
1983  def __init__(self, *args):
1984  """
1985  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1986  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1987  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1988  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1989  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1990  """
1991  this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1992  try:
1993  self.this.append(this)
1994  except:
1995  self.this = this
1996 
1997  def get_is_dense():
1998  """get_is_dense() -> bool"""
1999  return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2000 
2001  get_is_dense = staticmethod(get_is_dense)
2002 
2003  def show(self, *args):
2004  """
2005  show(_FloatDenseGridStorageKD self, _ostream out)
2006  show(_FloatDenseGridStorageKD self)
2007  """
2008  return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
2009 
2010 
2011  def add_voxel(self, arg2, arg3):
2012  """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
2013  return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
2014 
2015 
2016  def get_all_voxels(self):
2017  """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
2018  return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
2019 
2020  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
2021  __del__ = lambda self: None
2022 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
2023 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
2024 
2025 def _FloatDenseGridStorageKD_get_is_dense():
2026  """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
2027  return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2028 
2029 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
2030  """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class"""
2031  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2032  __repr__ = _swig_repr
2033 
2034  def __init__(self, *args):
2035  """
2036  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb, double default_value) -> _HistogramCountsGridKD
2037  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
2038  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
2039  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
2040  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
2041  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
2042  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
2043  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
2044  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
2045  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
2046  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
2047  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
2048  """
2049  this = _IMP_statistics.new__HistogramCountsGridKD(*args)
2050  try:
2051  self.this.append(this)
2052  except:
2053  self.this = this
2054 
2055  def show(self, *args):
2056  """
2057  show(_HistogramCountsGridKD self, _ostream out)
2058  show(_HistogramCountsGridKD self)
2059  """
2060  return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
2061 
2062 
2063  def __getitem__(self, *args):
2064  """
2065  __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
2066  __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
2067  """
2068  return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
2069 
2070 
2071  def __setitem__(self, *args):
2072  """
2073  __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
2074  __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2075  """
2076  return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2077 
2078 
2079  def add_voxel(self, pt, vt):
2080  """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2081  return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2082 
2083 
2084  def get_extended_index(self, index):
2085  """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2086  return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2087 
2088 
2089  def get_bounding_box(self, *args):
2090  """
2091  get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2092  get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2093  get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2094  """
2095  return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2096 
2097 
2098  def set_bounding_box(self, bb3):
2099  """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2100  return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2101 
2102 
2103  def get_nearest_index(self, pt):
2104  """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2105  return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2106 
2107 
2108  def get_nearest_extended_index(self, pt):
2109  """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2110  return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2111 
2112  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2113  __del__ = lambda self: None
2114 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2115 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2116 
2117 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2118  """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class"""
2119  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2120  __repr__ = _swig_repr
2121 
2122  def __setitem__(self, *args):
2123  """
2124  __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2125  __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2126  """
2127  return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2128 
2129 
2130  def __getitem__(self, *args):
2131  """
2132  __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2133  __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2134  """
2135  return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2136 
2137 
2138  def __init__(self, *args):
2139  """
2140  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2141  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2142  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2143  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2144  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2145  """
2146  this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2147  try:
2148  self.this.append(this)
2149  except:
2150  self.this = this
2151 
2152  def get_is_dense():
2153  """get_is_dense() -> bool"""
2154  return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2155 
2156  get_is_dense = staticmethod(get_is_dense)
2157 
2158  def show(self, *args):
2159  """
2160  show(_IntDenseGridStorage1D self, _ostream out)
2161  show(_IntDenseGridStorage1D self)
2162  """
2163  return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2164 
2165 
2166  def add_voxel(self, arg2, arg3):
2167  """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2168  return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2169 
2170 
2171  def get_all_voxels(self):
2172  """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2173  return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2174 
2175  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2176  __del__ = lambda self: None
2177 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2178 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2179 
2180 def _IntDenseGridStorage1D_get_is_dense():
2181  """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2182  return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2183 
2184 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2185  """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class"""
2186  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2187  __repr__ = _swig_repr
2188 
2189  def __setitem__(self, *args):
2190  """
2191  __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2192  __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2193  """
2194  return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2195 
2196 
2197  def __getitem__(self, *args):
2198  """
2199  __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2200  __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2201  """
2202  return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2203 
2204 
2205  def __init__(self, *args):
2206  """
2207  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2208  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2209  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2210  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2211  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2212  """
2213  this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2214  try:
2215  self.this.append(this)
2216  except:
2217  self.this = this
2218 
2219  def get_is_dense():
2220  """get_is_dense() -> bool"""
2221  return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2222 
2223  get_is_dense = staticmethod(get_is_dense)
2224 
2225  def show(self, *args):
2226  """
2227  show(_FloatDenseGridStorage1D self, _ostream out)
2228  show(_FloatDenseGridStorage1D self)
2229  """
2230  return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2231 
2232 
2233  def add_voxel(self, arg2, arg3):
2234  """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2235  return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2236 
2237 
2238  def get_all_voxels(self):
2239  """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2240  return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2241 
2242  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2243  __del__ = lambda self: None
2244 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2245 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2246 
2247 def _FloatDenseGridStorage1D_get_is_dense():
2248  """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2249  return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2250 
2251 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2252  """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class"""
2253  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2254  __repr__ = _swig_repr
2255 
2256  def __init__(self, *args):
2257  """
2258  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb, double default_value) -> _HistogramCountsGrid1D
2259  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2260  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2261  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2262  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2263  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2264  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2265  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2266  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2267  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2268  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2269  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2270  """
2271  this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2272  try:
2273  self.this.append(this)
2274  except:
2275  self.this = this
2276 
2277  def show(self, *args):
2278  """
2279  show(_HistogramCountsGrid1D self, _ostream out)
2280  show(_HistogramCountsGrid1D self)
2281  """
2282  return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2283 
2284 
2285  def __getitem__(self, *args):
2286  """
2287  __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2288  __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2289  """
2290  return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2291 
2292 
2293  def __setitem__(self, *args):
2294  """
2295  __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2296  __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2297  """
2298  return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2299 
2300 
2301  def add_voxel(self, pt, vt):
2302  """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2303  return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2304 
2305 
2306  def get_extended_index(self, index):
2307  """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2308  return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2309 
2310 
2311  def get_bounding_box(self, *args):
2312  """
2313  get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2314  get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2315  get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2316  """
2317  return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2318 
2319 
2320  def set_bounding_box(self, bb3):
2321  """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2322  return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2323 
2324 
2325  def get_nearest_index(self, pt):
2326  """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2327  return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2328 
2329 
2330  def get_nearest_extended_index(self, pt):
2331  """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2332  return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2333 
2334  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2335  __del__ = lambda self: None
2336 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2337 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2338 
2339 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2340  """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class"""
2341  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2342  __repr__ = _swig_repr
2343 
2344  def __setitem__(self, *args):
2345  """
2346  __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2347  __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2348  """
2349  return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2350 
2351 
2352  def __getitem__(self, *args):
2353  """
2354  __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2355  __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2356  """
2357  return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2358 
2359 
2360  def __init__(self, *args):
2361  """
2362  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2363  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2364  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2365  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2366  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2367  """
2368  this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2369  try:
2370  self.this.append(this)
2371  except:
2372  self.this = this
2373 
2374  def get_is_dense():
2375  """get_is_dense() -> bool"""
2376  return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2377 
2378  get_is_dense = staticmethod(get_is_dense)
2379 
2380  def show(self, *args):
2381  """
2382  show(_IntDenseGridStorage2D self, _ostream out)
2383  show(_IntDenseGridStorage2D self)
2384  """
2385  return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2386 
2387 
2388  def add_voxel(self, arg2, arg3):
2389  """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2390  return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2391 
2392 
2393  def get_all_voxels(self):
2394  """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2395  return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2396 
2397  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2398  __del__ = lambda self: None
2399 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2400 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2401 
2402 def _IntDenseGridStorage2D_get_is_dense():
2403  """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2404  return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2405 
2406 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2407  """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class"""
2408  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2409  __repr__ = _swig_repr
2410 
2411  def __setitem__(self, *args):
2412  """
2413  __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2414  __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2415  """
2416  return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2417 
2418 
2419  def __getitem__(self, *args):
2420  """
2421  __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2422  __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2423  """
2424  return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2425 
2426 
2427  def __init__(self, *args):
2428  """
2429  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2430  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2431  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2432  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2433  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2434  """
2435  this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2436  try:
2437  self.this.append(this)
2438  except:
2439  self.this = this
2440 
2441  def get_is_dense():
2442  """get_is_dense() -> bool"""
2443  return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2444 
2445  get_is_dense = staticmethod(get_is_dense)
2446 
2447  def show(self, *args):
2448  """
2449  show(_FloatDenseGridStorage2D self, _ostream out)
2450  show(_FloatDenseGridStorage2D self)
2451  """
2452  return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2453 
2454 
2455  def add_voxel(self, arg2, arg3):
2456  """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2457  return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2458 
2459 
2460  def get_all_voxels(self):
2461  """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2462  return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2463 
2464  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2465  __del__ = lambda self: None
2466 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2467 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2468 
2469 def _FloatDenseGridStorage2D_get_is_dense():
2470  """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2471  return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2472 
2473 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2474  """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class"""
2475  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2476  __repr__ = _swig_repr
2477 
2478  def __init__(self, *args):
2479  """
2480  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb, double default_value) -> _HistogramCountsGrid2D
2481  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2482  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2483  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2484  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2485  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2486  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2487  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2488  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2489  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2490  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2491  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2492  """
2493  this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2494  try:
2495  self.this.append(this)
2496  except:
2497  self.this = this
2498 
2499  def show(self, *args):
2500  """
2501  show(_HistogramCountsGrid2D self, _ostream out)
2502  show(_HistogramCountsGrid2D self)
2503  """
2504  return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2505 
2506 
2507  def __getitem__(self, *args):
2508  """
2509  __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2510  __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2511  """
2512  return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2513 
2514 
2515  def __setitem__(self, *args):
2516  """
2517  __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2518  __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2519  """
2520  return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2521 
2522 
2523  def add_voxel(self, pt, vt):
2524  """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2525  return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2526 
2527 
2528  def get_extended_index(self, index):
2529  """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2530  return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2531 
2532 
2533  def get_bounding_box(self, *args):
2534  """
2535  get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2536  get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2537  get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2538  """
2539  return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2540 
2541 
2542  def set_bounding_box(self, bb3):
2543  """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2544  return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2545 
2546 
2547  def get_nearest_index(self, pt):
2548  """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2549  return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2550 
2551 
2552  def get_nearest_extended_index(self, pt):
2553  """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2554  return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2555 
2556  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2557  __del__ = lambda self: None
2558 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2559 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2560 
2561 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2562  """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class"""
2563  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2564  __repr__ = _swig_repr
2565 
2566  def __setitem__(self, *args):
2567  """
2568  __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2569  __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2570  """
2571  return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2572 
2573 
2574  def __getitem__(self, *args):
2575  """
2576  __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2577  __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2578  """
2579  return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2580 
2581 
2582  def __init__(self, *args):
2583  """
2584  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2585  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2586  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2587  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2588  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2589  """
2590  this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2591  try:
2592  self.this.append(this)
2593  except:
2594  self.this = this
2595 
2596  def get_is_dense():
2597  """get_is_dense() -> bool"""
2598  return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2599 
2600  get_is_dense = staticmethod(get_is_dense)
2601 
2602  def show(self, *args):
2603  """
2604  show(_IntDenseGridStorage3D self, _ostream out)
2605  show(_IntDenseGridStorage3D self)
2606  """
2607  return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2608 
2609 
2610  def add_voxel(self, arg2, arg3):
2611  """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2612  return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2613 
2614 
2615  def get_all_voxels(self):
2616  """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2617  return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2618 
2619  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2620  __del__ = lambda self: None
2621 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2622 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2623 
2624 def _IntDenseGridStorage3D_get_is_dense():
2625  """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2626  return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2627 
2628 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2629  """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class"""
2630  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2631  __repr__ = _swig_repr
2632 
2633  def __setitem__(self, *args):
2634  """
2635  __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2636  __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2637  """
2638  return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2639 
2640 
2641  def __getitem__(self, *args):
2642  """
2643  __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2644  __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2645  """
2646  return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2647 
2648 
2649  def __init__(self, *args):
2650  """
2651  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2652  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2653  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2654  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2655  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2656  """
2657  this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2658  try:
2659  self.this.append(this)
2660  except:
2661  self.this = this
2662 
2663  def get_is_dense():
2664  """get_is_dense() -> bool"""
2665  return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2666 
2667  get_is_dense = staticmethod(get_is_dense)
2668 
2669  def show(self, *args):
2670  """
2671  show(_FloatDenseGridStorage3D self, _ostream out)
2672  show(_FloatDenseGridStorage3D self)
2673  """
2674  return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2675 
2676 
2677  def add_voxel(self, arg2, arg3):
2678  """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2679  return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2680 
2681 
2682  def get_all_voxels(self):
2683  """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2684  return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2685 
2686  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2687  __del__ = lambda self: None
2688 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2689 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2690 
2691 def _FloatDenseGridStorage3D_get_is_dense():
2692  """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2693  return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2694 
2695 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2696  """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class"""
2697  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2698  __repr__ = _swig_repr
2699 
2700  def __init__(self, *args):
2701  """
2702  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb, double default_value) -> _HistogramCountsGrid3D
2703  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2704  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2705  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2706  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2707  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2708  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2709  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2710  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2711  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2712  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2713  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2714  """
2715  this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2716  try:
2717  self.this.append(this)
2718  except:
2719  self.this = this
2720 
2721  def show(self, *args):
2722  """
2723  show(_HistogramCountsGrid3D self, _ostream out)
2724  show(_HistogramCountsGrid3D self)
2725  """
2726  return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2727 
2728 
2729  def __getitem__(self, *args):
2730  """
2731  __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2732  __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2733  """
2734  return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2735 
2736 
2737  def __setitem__(self, *args):
2738  """
2739  __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2740  __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2741  """
2742  return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2743 
2744 
2745  def add_voxel(self, pt, vt):
2746  """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2747  return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2748 
2749 
2750  def get_extended_index(self, index):
2751  """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2752  return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2753 
2754 
2755  def get_bounding_box(self, *args):
2756  """
2757  get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2758  get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2759  get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2760  """
2761  return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2762 
2763 
2764  def set_bounding_box(self, bb3):
2765  """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2766  return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2767 
2768 
2769  def get_nearest_index(self, pt):
2770  """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2771  return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2772 
2773 
2774  def get_nearest_extended_index(self, pt):
2775  """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2776  return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2777 
2778  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2779  __del__ = lambda self: None
2780 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2781 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2782 
2783 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2784  """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class"""
2785  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2786  __repr__ = _swig_repr
2787 
2788  def __setitem__(self, *args):
2789  """
2790  __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2791  __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2792  """
2793  return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2794 
2795 
2796  def __getitem__(self, *args):
2797  """
2798  __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2799  __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2800  """
2801  return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2802 
2803 
2804  def __init__(self, *args):
2805  """
2806  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2807  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2808  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2809  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2810  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2811  """
2812  this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2813  try:
2814  self.this.append(this)
2815  except:
2816  self.this = this
2817 
2818  def get_is_dense():
2819  """get_is_dense() -> bool"""
2820  return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2821 
2822  get_is_dense = staticmethod(get_is_dense)
2823 
2824  def show(self, *args):
2825  """
2826  show(_IntDenseGridStorage4D self, _ostream out)
2827  show(_IntDenseGridStorage4D self)
2828  """
2829  return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2830 
2831 
2832  def add_voxel(self, arg2, arg3):
2833  """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2834  return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2835 
2836 
2837  def get_all_voxels(self):
2838  """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2839  return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2840 
2841  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2842  __del__ = lambda self: None
2843 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2844 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2845 
2846 def _IntDenseGridStorage4D_get_is_dense():
2847  """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2848  return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2849 
2850 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2851  """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class"""
2852  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2853  __repr__ = _swig_repr
2854 
2855  def __setitem__(self, *args):
2856  """
2857  __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2858  __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2859  """
2860  return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2861 
2862 
2863  def __getitem__(self, *args):
2864  """
2865  __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2866  __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2867  """
2868  return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2869 
2870 
2871  def __init__(self, *args):
2872  """
2873  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2874  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2875  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2876  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2877  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2878  """
2879  this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2880  try:
2881  self.this.append(this)
2882  except:
2883  self.this = this
2884 
2885  def get_is_dense():
2886  """get_is_dense() -> bool"""
2887  return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2888 
2889  get_is_dense = staticmethod(get_is_dense)
2890 
2891  def show(self, *args):
2892  """
2893  show(_FloatDenseGridStorage4D self, _ostream out)
2894  show(_FloatDenseGridStorage4D self)
2895  """
2896  return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2897 
2898 
2899  def add_voxel(self, arg2, arg3):
2900  """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2901  return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2902 
2903 
2904  def get_all_voxels(self):
2905  """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2906  return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2907 
2908  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2909  __del__ = lambda self: None
2910 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2911 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2912 
2913 def _FloatDenseGridStorage4D_get_is_dense():
2914  """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2915  return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2916 
2917 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2918  """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class"""
2919  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2920  __repr__ = _swig_repr
2921 
2922  def __init__(self, *args):
2923  """
2924  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb, double default_value) -> _HistogramCountsGrid4D
2925  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2926  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2927  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2928  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2929  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2930  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2931  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2932  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2933  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2934  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2935  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2936  """
2937  this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2938  try:
2939  self.this.append(this)
2940  except:
2941  self.this = this
2942 
2943  def show(self, *args):
2944  """
2945  show(_HistogramCountsGrid4D self, _ostream out)
2946  show(_HistogramCountsGrid4D self)
2947  """
2948  return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2949 
2950 
2951  def __getitem__(self, *args):
2952  """
2953  __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2954  __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2955  """
2956  return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2957 
2958 
2959  def __setitem__(self, *args):
2960  """
2961  __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2962  __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2963  """
2964  return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2965 
2966 
2967  def add_voxel(self, pt, vt):
2968  """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2969  return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2970 
2971 
2972  def get_extended_index(self, index):
2973  """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2974  return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2975 
2976 
2977  def get_bounding_box(self, *args):
2978  """
2979  get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2980  get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2981  get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2982  """
2983  return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2984 
2985 
2986  def set_bounding_box(self, bb3):
2987  """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2988  return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2989 
2990 
2991  def get_nearest_index(self, pt):
2992  """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2993  return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2994 
2995 
2996  def get_nearest_extended_index(self, pt):
2997  """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2998  return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2999 
3000  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
3001  __del__ = lambda self: None
3002 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
3003 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
3004 
3005 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3006  """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class"""
3007  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3008  __repr__ = _swig_repr
3009 
3010  def __setitem__(self, *args):
3011  """
3012  __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
3013  __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
3014  """
3015  return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
3016 
3017 
3018  def __getitem__(self, *args):
3019  """
3020  __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
3021  __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
3022  """
3023  return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
3024 
3025 
3026  def __init__(self, *args):
3027  """
3028  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
3029  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
3030  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
3031  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
3032  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
3033  """
3034  this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
3035  try:
3036  self.this.append(this)
3037  except:
3038  self.this = this
3039 
3040  def get_is_dense():
3041  """get_is_dense() -> bool"""
3042  return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3043 
3044  get_is_dense = staticmethod(get_is_dense)
3045 
3046  def show(self, *args):
3047  """
3048  show(_IntDenseGridStorage5D self, _ostream out)
3049  show(_IntDenseGridStorage5D self)
3050  """
3051  return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
3052 
3053 
3054  def add_voxel(self, arg2, arg3):
3055  """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
3056  return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
3057 
3058 
3059  def get_all_voxels(self):
3060  """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
3061  return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3062 
3063  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3064  __del__ = lambda self: None
3065 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3066 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3067 
3068 def _IntDenseGridStorage5D_get_is_dense():
3069  """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3070  return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3071 
3072 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3073  """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class"""
3074  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3075  __repr__ = _swig_repr
3076 
3077  def __setitem__(self, *args):
3078  """
3079  __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3080  __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3081  """
3082  return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3083 
3084 
3085  def __getitem__(self, *args):
3086  """
3087  __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3088  __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3089  """
3090  return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3091 
3092 
3093  def __init__(self, *args):
3094  """
3095  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3096  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3097  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3098  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3099  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3100  """
3101  this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3102  try:
3103  self.this.append(this)
3104  except:
3105  self.this = this
3106 
3107  def get_is_dense():
3108  """get_is_dense() -> bool"""
3109  return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3110 
3111  get_is_dense = staticmethod(get_is_dense)
3112 
3113  def show(self, *args):
3114  """
3115  show(_FloatDenseGridStorage5D self, _ostream out)
3116  show(_FloatDenseGridStorage5D self)
3117  """
3118  return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3119 
3120 
3121  def add_voxel(self, arg2, arg3):
3122  """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3123  return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3124 
3125 
3126  def get_all_voxels(self):
3127  """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3128  return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3129 
3130  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3131  __del__ = lambda self: None
3132 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3133 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3134 
3135 def _FloatDenseGridStorage5D_get_is_dense():
3136  """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3137  return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3138 
3139 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3140  """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class"""
3141  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3142  __repr__ = _swig_repr
3143 
3144  def __init__(self, *args):
3145  """
3146  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb, double default_value) -> _HistogramCountsGrid5D
3147  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3148  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3149  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3150  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3151  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3152  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3153  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3154  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3155  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3156  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3157  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3158  """
3159  this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3160  try:
3161  self.this.append(this)
3162  except:
3163  self.this = this
3164 
3165  def show(self, *args):
3166  """
3167  show(_HistogramCountsGrid5D self, _ostream out)
3168  show(_HistogramCountsGrid5D self)
3169  """
3170  return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3171 
3172 
3173  def __getitem__(self, *args):
3174  """
3175  __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3176  __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3177  """
3178  return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3179 
3180 
3181  def __setitem__(self, *args):
3182  """
3183  __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3184  __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3185  """
3186  return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3187 
3188 
3189  def add_voxel(self, pt, vt):
3190  """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3191  return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3192 
3193 
3194  def get_extended_index(self, index):
3195  """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3196  return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3197 
3198 
3199  def get_bounding_box(self, *args):
3200  """
3201  get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3202  get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3203  get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3204  """
3205  return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3206 
3207 
3208  def set_bounding_box(self, bb3):
3209  """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3210  return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3211 
3212 
3213  def get_nearest_index(self, pt):
3214  """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3215  return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3216 
3217 
3218  def get_nearest_extended_index(self, pt):
3219  """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3220  return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3221 
3222  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3223  __del__ = lambda self: None
3224 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3225 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3226 
3227 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3228  """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class"""
3229  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3230  __repr__ = _swig_repr
3231 
3232  def __setitem__(self, *args):
3233  """
3234  __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3235  __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3236  """
3237  return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3238 
3239 
3240  def __getitem__(self, *args):
3241  """
3242  __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3243  __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3244  """
3245  return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3246 
3247 
3248  def __init__(self, *args):
3249  """
3250  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3251  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3252  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3253  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3254  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3255  """
3256  this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3257  try:
3258  self.this.append(this)
3259  except:
3260  self.this = this
3261 
3262  def get_is_dense():
3263  """get_is_dense() -> bool"""
3264  return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3265 
3266  get_is_dense = staticmethod(get_is_dense)
3267 
3268  def show(self, *args):
3269  """
3270  show(_IntDenseGridStorage6D self, _ostream out)
3271  show(_IntDenseGridStorage6D self)
3272  """
3273  return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3274 
3275 
3276  def add_voxel(self, arg2, arg3):
3277  """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3278  return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3279 
3280 
3281  def get_all_voxels(self):
3282  """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3283  return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3284 
3285  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3286  __del__ = lambda self: None
3287 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3288 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3289 
3290 def _IntDenseGridStorage6D_get_is_dense():
3291  """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3292  return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3293 
3294 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3295  """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class"""
3296  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3297  __repr__ = _swig_repr
3298 
3299  def __setitem__(self, *args):
3300  """
3301  __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3302  __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3303  """
3304  return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3305 
3306 
3307  def __getitem__(self, *args):
3308  """
3309  __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3310  __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3311  """
3312  return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3313 
3314 
3315  def __init__(self, *args):
3316  """
3317  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3318  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3319  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3320  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3321  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3322  """
3323  this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3324  try:
3325  self.this.append(this)
3326  except:
3327  self.this = this
3328 
3329  def get_is_dense():
3330  """get_is_dense() -> bool"""
3331  return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3332 
3333  get_is_dense = staticmethod(get_is_dense)
3334 
3335  def show(self, *args):
3336  """
3337  show(_FloatDenseGridStorage6D self, _ostream out)
3338  show(_FloatDenseGridStorage6D self)
3339  """
3340  return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3341 
3342 
3343  def add_voxel(self, arg2, arg3):
3344  """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3345  return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3346 
3347 
3348  def get_all_voxels(self):
3349  """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3350  return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3351 
3352  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3353  __del__ = lambda self: None
3354 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3355 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3356 
3357 def _FloatDenseGridStorage6D_get_is_dense():
3358  """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3359  return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3360 
3361 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3362  """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class"""
3363  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3364  __repr__ = _swig_repr
3365 
3366  def __init__(self, *args):
3367  """
3368  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb, double default_value) -> _HistogramCountsGrid6D
3369  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3370  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3371  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3372  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3373  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3374  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3375  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3376  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3377  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3378  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3379  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3380  """
3381  this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3382  try:
3383  self.this.append(this)
3384  except:
3385  self.this = this
3386 
3387  def show(self, *args):
3388  """
3389  show(_HistogramCountsGrid6D self, _ostream out)
3390  show(_HistogramCountsGrid6D self)
3391  """
3392  return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3393 
3394 
3395  def __getitem__(self, *args):
3396  """
3397  __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3398  __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3399  """
3400  return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3401 
3402 
3403  def __setitem__(self, *args):
3404  """
3405  __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3406  __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3407  """
3408  return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3409 
3410 
3411  def add_voxel(self, pt, vt):
3412  """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3413  return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3414 
3415 
3416  def get_extended_index(self, index):
3417  """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3418  return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3419 
3420 
3421  def get_bounding_box(self, *args):
3422  """
3423  get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3424  get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3425  get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3426  """
3427  return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3428 
3429 
3430  def set_bounding_box(self, bb3):
3431  """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3432  return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3433 
3434 
3435  def get_nearest_index(self, pt):
3436  """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3437  return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3438 
3439 
3440  def get_nearest_extended_index(self, pt):
3441  """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3442  return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3443 
3444  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3445  __del__ = lambda self: None
3446 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3447 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3448 
3449 
3450 from . import _histogram
3451 show_histogram= _histogram.show_histogram
3452 
3453 
3454 def get_module_version():
3455  """get_module_version() -> std::string const"""
3456  return _IMP_statistics.get_module_version()
3457 
3458 def get_example_path(fname):
3459  """get_example_path(std::string fname) -> std::string"""
3460  return _IMP_statistics.get_example_path(fname)
3461 
3462 def get_data_path(fname):
3463  """get_data_path(std::string fname) -> std::string"""
3464  return _IMP_statistics.get_data_path(fname)
3465 
3466 from . import _version_check
3467 _version_check.check_version(get_module_version())
3468 __version__ = get_module_version()
3469 
3470 
3471 
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
def get_data_path
Return the full path to one of this module's data files.
def get_module_version
Return the version of this module, as a string.
def get_example_path
Return the full path to one of this module's example files.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
double get_quantile(const Histogram1D &h, double fraction)
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
Definition: Object.h:106
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
Version and module information for Objects.
Definition: VersionInfo.h:29
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Ints get_representatives(Embedding *d, PartitionalClustering *pc)