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