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