IMP logo
IMP Reference Guide  develop.23016263b1,2026/04/24
The Integrative Modeling Platform
statistics/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.4.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2026 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_statistics
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
43 def _swig_setattr_nondynamic_class_variable(set):
44  def set_class_attr(cls, name, value):
45  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
52 def _swig_add_metaclass(metaclass):
53  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
59 class _SwigNonDynamicMeta(type):
60  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62 
63 
64 import weakref
65 
66 class IMP_STATISTICS_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
78  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
82  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
86  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
94  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
98  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
102  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
106  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
110  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
114  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
118  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
122  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
126  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
130  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
134  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
139  __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_STATISTICS_SwigPyIterator in _IMP_statistics:
146 _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_statistics.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_statistics.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
166 
167 IMP_NONE = _IMP_statistics.IMP_NONE
168 
169 IMP_USAGE = _IMP_statistics.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_statistics.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_SYSTEM
188 
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 
195 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
196 
197 
198 import sys
199 class _DirectorObjects:
200  """@internal Simple class to keep references to director objects
201  to prevent premature deletion."""
202  def __init__(self):
203  self._objects = []
204  def register(self, obj):
205  """Take a reference to a director object; will only work for
206  refcounted C++ classes"""
207  if hasattr(obj, 'get_ref_count'):
208  self._objects.append(obj)
209  def cleanup(self):
210  """Only drop our reference and allow cleanup by Python if no other
211  Python references exist (we hold 3 references: one in self._objects,
212  one in x, and one in the argument list for getrefcount) *and* no
213  other C++ references exist (the Python object always holds one)"""
214  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
215  or x.get_ref_count() > 1]
216 # Do in two steps so the references are kept until the end of the
217 # function (deleting references may trigger a fresh call to this method)
218  self._objects = objs
219  def get_object_count(self):
220  """Get number of director objects (useful for testing only)"""
221  return len(self._objects)
222 _director_objects = _DirectorObjects()
223 
224 class _ostream(object):
225  r"""Proxy of C++ std::ostream class."""
226 
227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
228 
229  def __init__(self, *args, **kwargs):
230  raise AttributeError("No constructor defined")
231  __repr__ = _swig_repr
232 
233  def write(self, osa_buf):
234  r"""write(_ostream self, char const * osa_buf)"""
235  return _IMP_statistics._ostream_write(self, osa_buf)
236 
237 # Register _ostream in _IMP_statistics:
238 _IMP_statistics._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
240 
241 import IMP
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
262 
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
264 
265 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
266 
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
268 
269 import IMP.algebra
270 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
271 
272 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
273 
274 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
275 
276 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
277 
278 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
279 
280 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
281 
282 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
283 
284 
285 Histogram1Ds=list
286 _plural_types.append("Histogram1Ds")
287 _value_types.append("Histogram1D")
288 
289 
290 Histogram2Ds=list
291 _plural_types.append("Histogram2Ds")
292 _value_types.append("Histogram2D")
293 
294 
295 Histogram3Ds=list
296 _plural_types.append("Histogram3Ds")
297 _value_types.append("Histogram3D")
298 
299 
300 Histogram4Ds=list
301 _plural_types.append("Histogram4Ds")
302 _value_types.append("Histogram4D")
303 
304 
305 Histogram5Ds=list
306 _plural_types.append("Histogram5Ds")
307 _value_types.append("Histogram5D")
308 
309 
310 Histogram6Ds=list
311 _plural_types.append("Histogram6Ds")
312 _value_types.append("Histogram6D")
313 
314 
315 Histogram1Ds=list
316 _plural_types.append("Histogram1Ds")
317 _value_types.append("HistogramD<1>")
318 
319 
320 Histogram2Ds=list
321 _plural_types.append("Histogram2Ds")
322 _value_types.append("HistogramD<2>")
323 
324 
325 Histogram3Ds=list
326 _plural_types.append("Histogram3Ds")
327 _value_types.append("HistogramD<3>")
328 
329 
330 Histogram4Ds=list
331 _plural_types.append("Histogram4Ds")
332 _value_types.append("HistogramD<4>")
333 
334 
335 Histogram5Ds=list
336 _plural_types.append("Histogram5Ds")
337 _value_types.append("HistogramD<5>")
338 
339 
340 Histogram6Ds=list
341 _plural_types.append("Histogram6Ds")
342 _value_types.append("HistogramD<6>")
343 
344 
345 HistogramKDs=list
346 _plural_types.append("HistogramKDs")
347 _value_types.append("HistogramKD")
348 
349 
350 HistogramKDs=list
351 _plural_types.append("HistogramKDs")
352 _value_types.append("HistogramD<-1>")
353 
354 
355 _object_types.append("PartitionalClustering")
356 
357 
358 def _object_cast_to_PartitionalClustering(o):
359  r"""_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
360  return _IMP_statistics._object_cast_to_PartitionalClustering(o)
361 
362 _object_types.append("PartitionalClusteringWithCenter")
363 
364 
365 def _object_cast_to_PartitionalClusteringWithCenter(o):
366  r"""_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
367  return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
368 
369 _object_types.append("Embedding")
370 
371 
372 def _object_cast_to_Embedding(o):
373  r"""_object_cast_to_Embedding(Object o) -> Embedding"""
374  return _IMP_statistics._object_cast_to_Embedding(o)
375 
376 _object_types.append("ConfigurationSetXYZEmbedding")
377 
378 
379 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
380  r"""_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
381  return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
382 
383 _object_types.append("VectorDEmbedding")
384 
385 
386 def _object_cast_to_VectorDEmbedding(o):
387  r"""_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
388  return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
389 
390 _object_types.append("ParticleEmbedding")
391 
392 
393 def _object_cast_to_ParticleEmbedding(o):
394  r"""_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
395  return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
396 
397 _object_types.append("Metric")
398 
399 
400 def _object_cast_to_Metric(o):
401  r"""_object_cast_to_Metric(Object o) -> Metric"""
402  return _IMP_statistics._object_cast_to_Metric(o)
403 
404 _object_types.append("EuclideanMetric")
405 
406 
407 def _object_cast_to_EuclideanMetric(o):
408  r"""_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
409  return _IMP_statistics._object_cast_to_EuclideanMetric(o)
410 
411 _object_types.append("ConfigurationSetRMSDMetric")
412 
413 
414 def _object_cast_to_ConfigurationSetRMSDMetric(o):
415  r"""_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
416  return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
417 
418 _object_types.append("RecursivePartitionalClusteringMetric")
419 
420 
421 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
422  r"""_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
423  return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
424 
425 _object_types.append("RecursivePartitionalClusteringEmbedding")
426 
427 
428 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
429  r"""_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
430  return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
431 
432 _object_types.append("ChiSquareMetric")
433 
434 
435 def _object_cast_to_ChiSquareMetric(o):
436  r"""_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
437  return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
438 class PartitionalClustering(IMP.Object):
439  r"""Proxy of C++ IMP::statistics::PartitionalClustering class."""
440 
441  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
442 
443  def __init__(self, *args, **kwargs):
444  raise AttributeError("No constructor defined - class is abstract")
445 
446  def get_number_of_clusters(self):
447  r"""get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
448  return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
449 
450  def get_cluster(self, cluster_index):
451  r"""get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
452  return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
453 
454  def get_cluster_representative(self, cluster_index):
455  r"""get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
456  return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
457  __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
458 
459  def __str__(self):
460  r"""__str__(PartitionalClustering self) -> std::string"""
461  return _IMP_statistics.PartitionalClustering___str__(self)
462 
463  def __repr__(self):
464  r"""__repr__(PartitionalClustering self) -> std::string"""
465  return _IMP_statistics.PartitionalClustering___repr__(self)
466 
467  @staticmethod
468  def get_from(o):
469  return _object_cast_to_PartitionalClustering(o)
470 
471 
472 # Register PartitionalClustering in _IMP_statistics:
473 _IMP_statistics.PartitionalClustering_swigregister(PartitionalClustering)
474 
476  r"""validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
477  return _IMP_statistics.validate_partitional_clustering(pc, n)
478 class Embedding(IMP.Object):
479  r"""Proxy of C++ IMP::statistics::Embedding class."""
480 
481  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
482 
483  def __init__(self, name):
484  r"""__init__(Embedding self, std::string name) -> Embedding"""
485  if self.__class__ == Embedding:
486  _self = None
487  else:
488  _self = self
489  _IMP_statistics.Embedding_swiginit(self, _IMP_statistics.new_Embedding(_self, name))
490 
491  if self.__class__ != Embedding:
492  _director_objects.register(self)
493 
494 
495 
496 
497  def do_get_weight(self, i):
498  r"""do_get_weight(Embedding self, unsigned int i) -> double"""
499  return _IMP_statistics.Embedding_do_get_weight(self, i)
500 
501  def get_point(self, i):
502  r"""get_point(Embedding self, unsigned int i) -> VectorKD"""
503  return _IMP_statistics.Embedding_get_point(self, i)
504 
505  def get_number_of_items(self):
506  r"""get_number_of_items(Embedding self) -> unsigned int"""
507  return _IMP_statistics.Embedding_get_number_of_items(self)
508 
509  def get_weight(self, i):
510  r"""get_weight(Embedding self, unsigned int i) -> double"""
511  return _IMP_statistics.Embedding_get_weight(self, i)
512 
513  def get_points(self):
514  r"""get_points(Embedding self) -> IMP::algebra::VectorKDs"""
515  return _IMP_statistics.Embedding_get_points(self)
516 
517  def __str__(self):
518  r"""__str__(Embedding self) -> std::string"""
519  return _IMP_statistics.Embedding___str__(self)
520 
521  def __repr__(self):
522  r"""__repr__(Embedding self) -> std::string"""
523  return _IMP_statistics.Embedding___repr__(self)
524 
525  @staticmethod
526  def get_from(o):
527  return _object_cast_to_Embedding(o)
528 
529 
530  def do_show(self, out):
531  pass
532 
533  @staticmethod
534  def get_from(o):
535  return _object_cast_to_Embedding(o)
536 
537  __swig_destroy__ = _IMP_statistics.delete_Embedding
538  def __disown__(self):
539  self.this.disown()
540  _IMP_statistics.disown_Embedding(self)
541  return weakref.proxy(self)
542 
543  def do_destroy(self):
544  r"""do_destroy(Embedding self)"""
545  return _IMP_statistics.Embedding_do_destroy(self)
546 
547 # Register Embedding in _IMP_statistics:
548 _IMP_statistics.Embedding_swigregister(Embedding)
549 class Metric(IMP.Object):
550  r"""Proxy of C++ IMP::statistics::Metric class."""
551 
552  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
553 
554  def __init__(self, name):
555  r"""__init__(Metric self, std::string name) -> Metric"""
556  if self.__class__ == Metric:
557  _self = None
558  else:
559  _self = self
560  _IMP_statistics.Metric_swiginit(self, _IMP_statistics.new_Metric(_self, name))
561 
562  if self.__class__ != Metric:
563  _director_objects.register(self)
564 
565 
566 
567 
568  def do_get_weight(self, i):
569  r"""do_get_weight(Metric self, unsigned int i) -> double"""
570  return _IMP_statistics.Metric_do_get_weight(self, i)
571 
572  def get_distance(self, i, j):
573  r"""get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
574  return _IMP_statistics.Metric_get_distance(self, i, j)
575 
576  def get_weight(self, i):
577  r"""get_weight(Metric self, unsigned int i) -> double"""
578  return _IMP_statistics.Metric_get_weight(self, i)
579 
580  def get_number_of_items(self):
581  r"""get_number_of_items(Metric self) -> unsigned int"""
582  return _IMP_statistics.Metric_get_number_of_items(self)
583  __swig_destroy__ = _IMP_statistics.delete_Metric
584 
585  def __str__(self):
586  r"""__str__(Metric self) -> std::string"""
587  return _IMP_statistics.Metric___str__(self)
588 
589  def __repr__(self):
590  r"""__repr__(Metric self) -> std::string"""
591  return _IMP_statistics.Metric___repr__(self)
592 
593  @staticmethod
594  def get_from(o):
595  return _object_cast_to_Metric(o)
596 
597 
598  def do_show(self, out):
599  pass
600 
601  @staticmethod
602  def get_from(o):
603  return _object_cast_to_Metric(o)
604 
605  def __disown__(self):
606  self.this.disown()
607  _IMP_statistics.disown_Metric(self)
608  return weakref.proxy(self)
609 
610  def do_destroy(self):
611  r"""do_destroy(Metric self)"""
612  return _IMP_statistics.Metric_do_destroy(self)
613 
614 # Register Metric in _IMP_statistics:
615 _IMP_statistics.Metric_swigregister(Metric)
616 class ChiSquareMetric(Metric):
617  r"""Proxy of C++ IMP::statistics::ChiSquareMetric class."""
618 
619  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
620 
621  def __init__(self, data_exp, constr_type=0):
622  r"""__init__(ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric"""
623  _IMP_statistics.ChiSquareMetric_swiginit(self, _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type))
624 
625  def add_configuration(self, data, stddev, weight=1.0):
626  r"""add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)"""
627  return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
628 
629  def get_data(self, i):
630  r"""get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
631  return _IMP_statistics.ChiSquareMetric_get_data(self, i)
632 
633  def get_standard_deviation(self, i):
634  r"""get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
635  return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
636 
637  def do_get_weight(self, i):
638  r"""do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
639  return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
640 
641  def get_chi_square_experimental(self, i):
642  r"""get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
643  return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
644 
645  def get_version_info(self):
646  r"""get_version_info(ChiSquareMetric self) -> VersionInfo"""
647  return _IMP_statistics.ChiSquareMetric_get_version_info(self)
648  __swig_destroy__ = _IMP_statistics.delete_ChiSquareMetric
649 
650  def __str__(self):
651  r"""__str__(ChiSquareMetric self) -> std::string"""
652  return _IMP_statistics.ChiSquareMetric___str__(self)
653 
654  def __repr__(self):
655  r"""__repr__(ChiSquareMetric self) -> std::string"""
656  return _IMP_statistics.ChiSquareMetric___repr__(self)
657 
658  @staticmethod
659  def get_from(o):
660  return _object_cast_to_ChiSquareMetric(o)
661 
662 
663 # Register ChiSquareMetric in _IMP_statistics:
664 _IMP_statistics.ChiSquareMetric_swigregister(ChiSquareMetric)
665 class PartitionalClusteringWithCenter(PartitionalClustering):
666  r"""Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
667 
668  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
669 
670  def __init__(self, *args, **kwargs):
671  raise AttributeError("No constructor defined")
672 
673  def get_cluster_center(self, i):
674  r"""get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
675  return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
676 
677  def get_version_info(self):
678  r"""get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
679  return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
680  __swig_destroy__ = _IMP_statistics.delete_PartitionalClusteringWithCenter
681 
682  def __str__(self):
683  r"""__str__(PartitionalClusteringWithCenter self) -> std::string"""
684  return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
685 
686  def __repr__(self):
687  r"""__repr__(PartitionalClusteringWithCenter self) -> std::string"""
688  return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
689 
690  @staticmethod
691  def get_from(o):
692  return _object_cast_to_PartitionalClusteringWithCenter(o)
693 
694 
695 # Register PartitionalClusteringWithCenter in _IMP_statistics:
696 _IMP_statistics.PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
697 class ConfigurationSetXYZEmbedding(Embedding):
698  r"""Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
699 
700  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
701 
702  def __init__(self, cs, pi, align=False):
703  r"""__init__(ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding"""
704  _IMP_statistics.ConfigurationSetXYZEmbedding_swiginit(self, _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align))
705 
706  def get_version_info(self):
707  r"""get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
708  return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
709  __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetXYZEmbedding
710 
711  def __str__(self):
712  r"""__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
713  return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
714 
715  def __repr__(self):
716  r"""__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
717  return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
718 
719  @staticmethod
720  def get_from(o):
721  return _object_cast_to_ConfigurationSetXYZEmbedding(o)
722 
723 
724 # Register ConfigurationSetXYZEmbedding in _IMP_statistics:
725 _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
726 class ParticleEmbedding(Embedding):
727  r"""Proxy of C++ IMP::statistics::ParticleEmbedding class."""
728 
729  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
730 
731  def __init__(self, *args):
732  r"""__init__(ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks=IMP::FloatKeys( IMP::internal:: xyzr_keys, IMP::internal:: xyzr_keys + 3), bool rescale=False) -> ParticleEmbedding"""
733  _IMP_statistics.ParticleEmbedding_swiginit(self, _IMP_statistics.new_ParticleEmbedding(*args))
734 
735  def get_version_info(self):
736  r"""get_version_info(ParticleEmbedding self) -> VersionInfo"""
737  return _IMP_statistics.ParticleEmbedding_get_version_info(self)
738  __swig_destroy__ = _IMP_statistics.delete_ParticleEmbedding
739 
740  def __str__(self):
741  r"""__str__(ParticleEmbedding self) -> std::string"""
742  return _IMP_statistics.ParticleEmbedding___str__(self)
743 
744  def __repr__(self):
745  r"""__repr__(ParticleEmbedding self) -> std::string"""
746  return _IMP_statistics.ParticleEmbedding___repr__(self)
747 
748  @staticmethod
749  def get_from(o):
750  return _object_cast_to_ParticleEmbedding(o)
751 
752 
753 # Register ParticleEmbedding in _IMP_statistics:
754 _IMP_statistics.ParticleEmbedding_swigregister(ParticleEmbedding)
755 class VectorDEmbedding(Embedding):
756  r"""Proxy of C++ IMP::statistics::VectorDEmbedding class."""
757 
758  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
759 
760  def __init__(self, *args):
761  r"""
762  __init__(VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
763  __init__(VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
764  __init__(VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
765  __init__(VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
766  __init__(VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
767  __init__(VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
768  """
769  _IMP_statistics.VectorDEmbedding_swiginit(self, _IMP_statistics.new_VectorDEmbedding(*args))
770 
771  def get_version_info(self):
772  r"""get_version_info(VectorDEmbedding self) -> VersionInfo"""
773  return _IMP_statistics.VectorDEmbedding_get_version_info(self)
774  __swig_destroy__ = _IMP_statistics.delete_VectorDEmbedding
775 
776  def __str__(self):
777  r"""__str__(VectorDEmbedding self) -> std::string"""
778  return _IMP_statistics.VectorDEmbedding___str__(self)
779 
780  def __repr__(self):
781  r"""__repr__(VectorDEmbedding self) -> std::string"""
782  return _IMP_statistics.VectorDEmbedding___repr__(self)
783 
784  @staticmethod
785  def get_from(o):
786  return _object_cast_to_VectorDEmbedding(o)
787 
788 
789 # Register VectorDEmbedding in _IMP_statistics:
790 _IMP_statistics.VectorDEmbedding_swigregister(VectorDEmbedding)
791 class EuclideanMetric(Metric):
792  r"""Proxy of C++ IMP::statistics::EuclideanMetric class."""
793 
794  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
795 
796  def __init__(self, em):
797  r"""__init__(EuclideanMetric self, Embedding em) -> EuclideanMetric"""
798  _IMP_statistics.EuclideanMetric_swiginit(self, _IMP_statistics.new_EuclideanMetric(em))
799 
800  def get_version_info(self):
801  r"""get_version_info(EuclideanMetric self) -> VersionInfo"""
802  return _IMP_statistics.EuclideanMetric_get_version_info(self)
803  __swig_destroy__ = _IMP_statistics.delete_EuclideanMetric
804 
805  def __str__(self):
806  r"""__str__(EuclideanMetric self) -> std::string"""
807  return _IMP_statistics.EuclideanMetric___str__(self)
808 
809  def __repr__(self):
810  r"""__repr__(EuclideanMetric self) -> std::string"""
811  return _IMP_statistics.EuclideanMetric___repr__(self)
812 
813  @staticmethod
814  def get_from(o):
815  return _object_cast_to_EuclideanMetric(o)
816 
817 
818 # Register EuclideanMetric in _IMP_statistics:
819 _IMP_statistics.EuclideanMetric_swigregister(EuclideanMetric)
820 class ConfigurationSetRMSDMetric(Metric):
821  r"""Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
822 
823  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
824 
825  def __init__(self, cs, sc, align=False):
826  r"""__init__(ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric"""
827  _IMP_statistics.ConfigurationSetRMSDMetric_swiginit(self, _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align))
828 
829  def get_version_info(self):
830  r"""get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
831  return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
832  __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetRMSDMetric
833 
834  def __str__(self):
835  r"""__str__(ConfigurationSetRMSDMetric self) -> std::string"""
836  return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
837 
838  def __repr__(self):
839  r"""__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
840  return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
841 
842  @staticmethod
843  def get_from(o):
844  return _object_cast_to_ConfigurationSetRMSDMetric(o)
845 
846 
847 # Register ConfigurationSetRMSDMetric in _IMP_statistics:
848 _IMP_statistics.ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
849 
850 def create_lloyds_kmeans(embedding, k, iterations):
851  r"""create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
852  return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
853 
854 def create_bin_based_clustering(embed, side):
855  r"""create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
856  return _IMP_statistics.create_bin_based_clustering(embed, side)
857 
859  r"""
860  create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
861  create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
862  """
863  return _IMP_statistics.create_centrality_clustering(*args)
864 
865 def create_diameter_clustering(d, maximum_diameter):
866  r"""create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
867  return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
868 
870  r"""
871  create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
872  create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
873  """
874  return _IMP_statistics.create_connectivity_clustering(*args)
875 
876 def create_gromos_clustering(d, cutoff):
877  r"""create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
878  return _IMP_statistics.create_gromos_clustering(d, cutoff)
879 
880 def get_quantile(h, fraction):
881  r"""get_quantile(Histogram1D h, double fraction) -> double"""
882  return _IMP_statistics.get_quantile(h, fraction)
883 
884 def get_centroids(d, pc):
885  r"""get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
886  return _IMP_statistics.get_centroids(d, pc)
887 
888 def get_representatives(d, pc):
889  r"""get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
890  return _IMP_statistics.get_representatives(d, pc)
891 class RecursivePartitionalClusteringEmbedding(Embedding):
892  r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
893 
894  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
895 
896  def __init__(self, metric, clustering):
897  r"""__init__(RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
898  _IMP_statistics.RecursivePartitionalClusteringEmbedding_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering))
899 
900  def create_full_clustering(self, center_cluster):
901  r"""create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
902  return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
903 
904  def get_version_info(self):
905  r"""get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
906  return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
907  __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringEmbedding
908 
909  def __str__(self):
910  r"""__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
911  return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
912 
913  def __repr__(self):
914  r"""__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
915  return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
916 
917  @staticmethod
918  def get_from(o):
919  return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
920 
921 
922 # Register RecursivePartitionalClusteringEmbedding in _IMP_statistics:
923 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
924 class RecursivePartitionalClusteringMetric(Metric):
925  r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
926 
927  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
928 
929  def __init__(self, metric, clustering):
930  r"""__init__(RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
931  _IMP_statistics.RecursivePartitionalClusteringMetric_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering))
932 
933  def create_full_clustering(self, center_cluster):
934  r"""create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
935  return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
936 
937  def get_version_info(self):
938  r"""get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
939  return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
940  __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringMetric
941 
942  def __str__(self):
943  r"""__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
944  return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
945 
946  def __repr__(self):
947  r"""__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
948  return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
949 
950  @staticmethod
951  def get_from(o):
952  return _object_cast_to_RecursivePartitionalClusteringMetric(o)
953 
954 
955 # Register RecursivePartitionalClusteringMetric in _IMP_statistics:
956 _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
957 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
958  r"""Proxy of C++ IMP::statistics::HistogramD< 1 > class."""
959 
960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
961 
962  def __init__(self, *args):
963  r"""
964  __init__(Histogram1D self) -> Histogram1D
965  __init__(Histogram1D self, double voxel_size, BoundingBox1D bb) -> Histogram1D
966  """
967  _IMP_statistics.Histogram1D_swiginit(self, _IMP_statistics.new_Histogram1D(*args))
968 
969  def add(self, x, weight=1):
970  r"""add(Histogram1D self, Vector1D x, double weight=1)"""
971  return _IMP_statistics.Histogram1D_add(self, x, weight)
972 
973  def get_total_count(self):
974  r"""get_total_count(Histogram1D self) -> double"""
975  return _IMP_statistics.Histogram1D_get_total_count(self)
976 
977  def get_frequencies(self):
978  r"""get_frequencies(Histogram1D self) -> Histogram1D"""
979  return _IMP_statistics.Histogram1D_get_frequencies(self)
980 
981  def get_probability_distribution_function(self):
982  r"""get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
983  return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
984 
985  def get_counts(self):
986  r"""get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
987  return _IMP_statistics.Histogram1D_get_counts(self)
988 
989  def get_mean(self):
990  r"""get_mean(Histogram1D self) -> Vector1D"""
991  return _IMP_statistics.Histogram1D_get_mean(self)
992 
993  def get_dimension(self):
994  r"""get_dimension(Histogram1D self) -> unsigned int"""
995  return _IMP_statistics.Histogram1D_get_dimension(self)
996 
997  def get_standard_deviation(self, mean):
998  r"""get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
999  return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1000 
1001  def get_bounding_box(self):
1002  r"""get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1003  return _IMP_statistics.Histogram1D_get_bounding_box(self)
1004 
1005  def get_minimum_and_maximum(self):
1006  r"""get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1007  return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1008 
1009  def show(self, *args):
1010  r"""show(Histogram1D self, _ostream out=std::cout)"""
1011  return _IMP_statistics.Histogram1D_show(self, *args)
1012 
1013  def __str__(self):
1014  r"""__str__(Histogram1D self) -> std::string"""
1015  return _IMP_statistics.Histogram1D___str__(self)
1016 
1017  def __repr__(self):
1018  r"""__repr__(Histogram1D self) -> std::string"""
1019  return _IMP_statistics.Histogram1D___repr__(self)
1020 
1021  def __cmp__(self, arg2):
1022  r"""__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1023  return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1024 
1025  def __eq__(self, arg2):
1026  r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1027  return _IMP_statistics.Histogram1D___eq__(self, arg2)
1028  __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1029 
1030 # Register Histogram1D in _IMP_statistics:
1031 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1032 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1033  r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1034 
1035  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1036 
1037  def __init__(self, *args):
1038  r"""
1039  __init__(Histogram2D self) -> Histogram2D
1040  __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1041  """
1042  _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1043 
1044  def add(self, x, weight=1):
1045  r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1046  return _IMP_statistics.Histogram2D_add(self, x, weight)
1047 
1048  def get_total_count(self):
1049  r"""get_total_count(Histogram2D self) -> double"""
1050  return _IMP_statistics.Histogram2D_get_total_count(self)
1051 
1052  def get_frequencies(self):
1053  r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1054  return _IMP_statistics.Histogram2D_get_frequencies(self)
1055 
1056  def get_probability_distribution_function(self):
1057  r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1058  return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1059 
1060  def get_counts(self):
1061  r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1062  return _IMP_statistics.Histogram2D_get_counts(self)
1063 
1064  def get_mean(self):
1065  r"""get_mean(Histogram2D self) -> Vector2D"""
1066  return _IMP_statistics.Histogram2D_get_mean(self)
1067 
1068  def get_dimension(self):
1069  r"""get_dimension(Histogram2D self) -> unsigned int"""
1070  return _IMP_statistics.Histogram2D_get_dimension(self)
1071 
1072  def get_standard_deviation(self, mean):
1073  r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1074  return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1075 
1076  def get_bounding_box(self):
1077  r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1078  return _IMP_statistics.Histogram2D_get_bounding_box(self)
1079 
1080  def get_minimum_and_maximum(self):
1081  r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1082  return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1083 
1084  def show(self, *args):
1085  r"""show(Histogram2D self, _ostream out=std::cout)"""
1086  return _IMP_statistics.Histogram2D_show(self, *args)
1087 
1088  def __str__(self):
1089  r"""__str__(Histogram2D self) -> std::string"""
1090  return _IMP_statistics.Histogram2D___str__(self)
1091 
1092  def __repr__(self):
1093  r"""__repr__(Histogram2D self) -> std::string"""
1094  return _IMP_statistics.Histogram2D___repr__(self)
1095 
1096  def __cmp__(self, arg2):
1097  r"""__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1098  return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1099 
1100  def __eq__(self, arg2):
1101  r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1102  return _IMP_statistics.Histogram2D___eq__(self, arg2)
1103  __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1104 
1105 # Register Histogram2D in _IMP_statistics:
1106 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1107 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1108  r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1109 
1110  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1111 
1112  def __init__(self, *args):
1113  r"""
1114  __init__(Histogram3D self) -> Histogram3D
1115  __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1116  """
1117  _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1118 
1119  def add(self, x, weight=1):
1120  r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1121  return _IMP_statistics.Histogram3D_add(self, x, weight)
1122 
1123  def get_total_count(self):
1124  r"""get_total_count(Histogram3D self) -> double"""
1125  return _IMP_statistics.Histogram3D_get_total_count(self)
1126 
1127  def get_frequencies(self):
1128  r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1129  return _IMP_statistics.Histogram3D_get_frequencies(self)
1130 
1131  def get_probability_distribution_function(self):
1132  r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1133  return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1134 
1135  def get_counts(self):
1136  r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1137  return _IMP_statistics.Histogram3D_get_counts(self)
1138 
1139  def get_mean(self):
1140  r"""get_mean(Histogram3D self) -> Vector3D"""
1141  return _IMP_statistics.Histogram3D_get_mean(self)
1142 
1143  def get_dimension(self):
1144  r"""get_dimension(Histogram3D self) -> unsigned int"""
1145  return _IMP_statistics.Histogram3D_get_dimension(self)
1146 
1147  def get_standard_deviation(self, mean):
1148  r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1149  return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1150 
1151  def get_bounding_box(self):
1152  r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1153  return _IMP_statistics.Histogram3D_get_bounding_box(self)
1154 
1155  def get_minimum_and_maximum(self):
1156  r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1157  return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1158 
1159  def show(self, *args):
1160  r"""show(Histogram3D self, _ostream out=std::cout)"""
1161  return _IMP_statistics.Histogram3D_show(self, *args)
1162 
1163  def __str__(self):
1164  r"""__str__(Histogram3D self) -> std::string"""
1165  return _IMP_statistics.Histogram3D___str__(self)
1166 
1167  def __repr__(self):
1168  r"""__repr__(Histogram3D self) -> std::string"""
1169  return _IMP_statistics.Histogram3D___repr__(self)
1170 
1171  def __cmp__(self, arg2):
1172  r"""__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1173  return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1174 
1175  def __eq__(self, arg2):
1176  r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1177  return _IMP_statistics.Histogram3D___eq__(self, arg2)
1178  __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1179 
1180 # Register Histogram3D in _IMP_statistics:
1181 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1182 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1183  r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1184 
1185  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1186 
1187  def __init__(self, *args):
1188  r"""
1189  __init__(Histogram4D self) -> Histogram4D
1190  __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1191  """
1192  _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1193 
1194  def add(self, x, weight=1):
1195  r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1196  return _IMP_statistics.Histogram4D_add(self, x, weight)
1197 
1198  def get_total_count(self):
1199  r"""get_total_count(Histogram4D self) -> double"""
1200  return _IMP_statistics.Histogram4D_get_total_count(self)
1201 
1202  def get_frequencies(self):
1203  r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1204  return _IMP_statistics.Histogram4D_get_frequencies(self)
1205 
1206  def get_probability_distribution_function(self):
1207  r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1208  return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1209 
1210  def get_counts(self):
1211  r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1212  return _IMP_statistics.Histogram4D_get_counts(self)
1213 
1214  def get_mean(self):
1215  r"""get_mean(Histogram4D self) -> Vector4D"""
1216  return _IMP_statistics.Histogram4D_get_mean(self)
1217 
1218  def get_dimension(self):
1219  r"""get_dimension(Histogram4D self) -> unsigned int"""
1220  return _IMP_statistics.Histogram4D_get_dimension(self)
1221 
1222  def get_standard_deviation(self, mean):
1223  r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1224  return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1225 
1226  def get_bounding_box(self):
1227  r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1228  return _IMP_statistics.Histogram4D_get_bounding_box(self)
1229 
1230  def get_minimum_and_maximum(self):
1231  r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1232  return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1233 
1234  def show(self, *args):
1235  r"""show(Histogram4D self, _ostream out=std::cout)"""
1236  return _IMP_statistics.Histogram4D_show(self, *args)
1237 
1238  def __str__(self):
1239  r"""__str__(Histogram4D self) -> std::string"""
1240  return _IMP_statistics.Histogram4D___str__(self)
1241 
1242  def __repr__(self):
1243  r"""__repr__(Histogram4D self) -> std::string"""
1244  return _IMP_statistics.Histogram4D___repr__(self)
1245 
1246  def __cmp__(self, arg2):
1247  r"""__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1248  return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1249 
1250  def __eq__(self, arg2):
1251  r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1252  return _IMP_statistics.Histogram4D___eq__(self, arg2)
1253  __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1254 
1255 # Register Histogram4D in _IMP_statistics:
1256 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1257 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1258  r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1259 
1260  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1261 
1262  def __init__(self, *args):
1263  r"""
1264  __init__(Histogram5D self) -> Histogram5D
1265  __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1266  """
1267  _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1268 
1269  def add(self, x, weight=1):
1270  r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1271  return _IMP_statistics.Histogram5D_add(self, x, weight)
1272 
1273  def get_total_count(self):
1274  r"""get_total_count(Histogram5D self) -> double"""
1275  return _IMP_statistics.Histogram5D_get_total_count(self)
1276 
1277  def get_frequencies(self):
1278  r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1279  return _IMP_statistics.Histogram5D_get_frequencies(self)
1280 
1281  def get_probability_distribution_function(self):
1282  r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1283  return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1284 
1285  def get_counts(self):
1286  r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1287  return _IMP_statistics.Histogram5D_get_counts(self)
1288 
1289  def get_mean(self):
1290  r"""get_mean(Histogram5D self) -> Vector5D"""
1291  return _IMP_statistics.Histogram5D_get_mean(self)
1292 
1293  def get_dimension(self):
1294  r"""get_dimension(Histogram5D self) -> unsigned int"""
1295  return _IMP_statistics.Histogram5D_get_dimension(self)
1296 
1297  def get_standard_deviation(self, mean):
1298  r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1299  return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1300 
1301  def get_bounding_box(self):
1302  r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1303  return _IMP_statistics.Histogram5D_get_bounding_box(self)
1304 
1305  def get_minimum_and_maximum(self):
1306  r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1307  return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1308 
1309  def show(self, *args):
1310  r"""show(Histogram5D self, _ostream out=std::cout)"""
1311  return _IMP_statistics.Histogram5D_show(self, *args)
1312 
1313  def __str__(self):
1314  r"""__str__(Histogram5D self) -> std::string"""
1315  return _IMP_statistics.Histogram5D___str__(self)
1316 
1317  def __repr__(self):
1318  r"""__repr__(Histogram5D self) -> std::string"""
1319  return _IMP_statistics.Histogram5D___repr__(self)
1320 
1321  def __cmp__(self, arg2):
1322  r"""__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1323  return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1324 
1325  def __eq__(self, arg2):
1326  r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1327  return _IMP_statistics.Histogram5D___eq__(self, arg2)
1328  __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1329 
1330 # Register Histogram5D in _IMP_statistics:
1331 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1332 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1333  r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1334 
1335  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1336 
1337  def __init__(self, *args):
1338  r"""
1339  __init__(Histogram6D self) -> Histogram6D
1340  __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1341  """
1342  _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1343 
1344  def add(self, x, weight=1):
1345  r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1346  return _IMP_statistics.Histogram6D_add(self, x, weight)
1347 
1348  def get_total_count(self):
1349  r"""get_total_count(Histogram6D self) -> double"""
1350  return _IMP_statistics.Histogram6D_get_total_count(self)
1351 
1352  def get_frequencies(self):
1353  r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1354  return _IMP_statistics.Histogram6D_get_frequencies(self)
1355 
1356  def get_probability_distribution_function(self):
1357  r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1358  return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1359 
1360  def get_counts(self):
1361  r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1362  return _IMP_statistics.Histogram6D_get_counts(self)
1363 
1364  def get_mean(self):
1365  r"""get_mean(Histogram6D self) -> Vector6D"""
1366  return _IMP_statistics.Histogram6D_get_mean(self)
1367 
1368  def get_dimension(self):
1369  r"""get_dimension(Histogram6D self) -> unsigned int"""
1370  return _IMP_statistics.Histogram6D_get_dimension(self)
1371 
1372  def get_standard_deviation(self, mean):
1373  r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1374  return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1375 
1376  def get_bounding_box(self):
1377  r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1378  return _IMP_statistics.Histogram6D_get_bounding_box(self)
1379 
1380  def get_minimum_and_maximum(self):
1381  r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1382  return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1383 
1384  def show(self, *args):
1385  r"""show(Histogram6D self, _ostream out=std::cout)"""
1386  return _IMP_statistics.Histogram6D_show(self, *args)
1387 
1388  def __str__(self):
1389  r"""__str__(Histogram6D self) -> std::string"""
1390  return _IMP_statistics.Histogram6D___str__(self)
1391 
1392  def __repr__(self):
1393  r"""__repr__(Histogram6D self) -> std::string"""
1394  return _IMP_statistics.Histogram6D___repr__(self)
1395 
1396  def __cmp__(self, arg2):
1397  r"""__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1398  return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1399 
1400  def __eq__(self, arg2):
1401  r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1402  return _IMP_statistics.Histogram6D___eq__(self, arg2)
1403  __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1404 
1405 # Register Histogram6D in _IMP_statistics:
1406 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1407 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1408  r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1409 
1410  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1411 
1412  def __init__(self, *args):
1413  r"""
1414  __init__(HistogramKD self) -> HistogramKD
1415  __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1416  """
1417  _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1418 
1419  def add(self, x, weight=1):
1420  r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1421  return _IMP_statistics.HistogramKD_add(self, x, weight)
1422 
1423  def get_total_count(self):
1424  r"""get_total_count(HistogramKD self) -> double"""
1425  return _IMP_statistics.HistogramKD_get_total_count(self)
1426 
1427  def get_frequencies(self):
1428  r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1429  return _IMP_statistics.HistogramKD_get_frequencies(self)
1430 
1431  def get_probability_distribution_function(self):
1432  r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1433  return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1434 
1435  def get_counts(self):
1436  r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1437  return _IMP_statistics.HistogramKD_get_counts(self)
1438 
1439  def get_mean(self):
1440  r"""get_mean(HistogramKD self) -> VectorKD"""
1441  return _IMP_statistics.HistogramKD_get_mean(self)
1442 
1443  def get_dimension(self):
1444  r"""get_dimension(HistogramKD self) -> unsigned int"""
1445  return _IMP_statistics.HistogramKD_get_dimension(self)
1446 
1447  def get_standard_deviation(self, mean):
1448  r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1449  return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1450 
1451  def get_bounding_box(self):
1452  r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1453  return _IMP_statistics.HistogramKD_get_bounding_box(self)
1454 
1455  def get_minimum_and_maximum(self):
1456  r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1457  return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1458 
1459  def show(self, *args):
1460  r"""show(HistogramKD self, _ostream out=std::cout)"""
1461  return _IMP_statistics.HistogramKD_show(self, *args)
1462 
1463  def __str__(self):
1464  r"""__str__(HistogramKD self) -> std::string"""
1465  return _IMP_statistics.HistogramKD___str__(self)
1466 
1467  def __repr__(self):
1468  r"""__repr__(HistogramKD self) -> std::string"""
1469  return _IMP_statistics.HistogramKD___repr__(self)
1470 
1471  def __cmp__(self, arg2):
1472  r"""__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1473  return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1474 
1475  def __eq__(self, arg2):
1476  r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1477  return _IMP_statistics.HistogramKD___eq__(self, arg2)
1478  __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1479 
1480 # Register HistogramKD in _IMP_statistics:
1481 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1482 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1483  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1484 
1485  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1486  __repr__ = _swig_repr
1487 
1488  def __setitem__(self, *args):
1489  r"""
1490  __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1491  __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1492  """
1493  return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1494 
1495  def __getitem__(self, *args):
1496  r"""
1497  __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1498  __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1499  """
1500  return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1501 
1502  def __init__(self, *args):
1503  r"""
1504  __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1505  __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1506  __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1507  """
1508  _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1509 
1510  @staticmethod
1511  def get_is_dense():
1512  r"""get_is_dense() -> bool"""
1513  return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1514 
1515  def show(self, *args):
1516  r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1517  return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1518 
1519  def add_voxel(self, arg2, arg3):
1520  r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1521  return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1522 
1523  def get_all_voxels(self):
1524  r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1525  return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1526  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1527 
1528 # Register _IntDenseGridStorageKD in _IMP_statistics:
1529 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1530 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1531  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1532 
1533  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1534  __repr__ = _swig_repr
1535 
1536  def __setitem__(self, *args):
1537  r"""
1538  __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1539  __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1540  """
1541  return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1542 
1543  def __getitem__(self, *args):
1544  r"""
1545  __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1546  __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1547  """
1548  return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1549 
1550  def __init__(self, *args):
1551  r"""
1552  __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1553  __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1554  __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1555  """
1556  _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1557 
1558  @staticmethod
1559  def get_is_dense():
1560  r"""get_is_dense() -> bool"""
1561  return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1562 
1563  def show(self, *args):
1564  r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1565  return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1566 
1567  def add_voxel(self, arg2, arg3):
1568  r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1569  return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1570 
1571  def get_all_voxels(self):
1572  r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1573  return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1574  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1575 
1576 # Register _FloatDenseGridStorageKD in _IMP_statistics:
1577 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1578 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
1579  r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1580 
1581  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1582  __repr__ = _swig_repr
1583 
1584  def __init__(self, *args):
1585  r"""
1586  __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1587  __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1588  __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1589  __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1590  __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1591  __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1592  __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1593  """
1594  _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1595 
1596  def show(self, *args):
1597  r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1598  return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1599 
1600  def __getitem__(self, *args):
1601  r"""
1602  __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1603  __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1604  """
1605  return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1606 
1607  def __setitem__(self, *args):
1608  r"""
1609  __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1610  __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1611  """
1612  return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1613 
1614  def add_voxel(self, pt, vt):
1615  r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1616  return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1617 
1618  def get_extended_index(self, index):
1619  r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1620  return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1621 
1622  def get_bounding_box(self, *args):
1623  r"""
1624  get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1625  get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1626  get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1627  """
1628  return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1629 
1630  def set_bounding_box(self, bb3):
1631  r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1632  return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1633 
1634  def get_nearest_index(self, pt):
1635  r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1636  return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1637 
1638  def get_nearest_extended_index(self, pt):
1639  r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1640  return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1641  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1642 
1643 # Register _HistogramCountsGridKD in _IMP_statistics:
1644 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1645 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1646  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1647 
1648  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1649  __repr__ = _swig_repr
1650 
1651  def __setitem__(self, *args):
1652  r"""
1653  __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1654  __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1655  """
1656  return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1657 
1658  def __getitem__(self, *args):
1659  r"""
1660  __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1661  __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1662  """
1663  return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1664 
1665  def __init__(self, *args):
1666  r"""
1667  __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1668  __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1669  __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1670  """
1671  _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1672 
1673  @staticmethod
1674  def get_is_dense():
1675  r"""get_is_dense() -> bool"""
1676  return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1677 
1678  def show(self, *args):
1679  r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1680  return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1681 
1682  def add_voxel(self, arg2, arg3):
1683  r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1684  return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1685 
1686  def get_all_voxels(self):
1687  r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1688  return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1689  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1690 
1691 # Register _IntDenseGridStorage1D in _IMP_statistics:
1692 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1693 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1694  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1695 
1696  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1697  __repr__ = _swig_repr
1698 
1699  def __setitem__(self, *args):
1700  r"""
1701  __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1702  __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1703  """
1704  return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1705 
1706  def __getitem__(self, *args):
1707  r"""
1708  __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1709  __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1710  """
1711  return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1712 
1713  def __init__(self, *args):
1714  r"""
1715  __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1716  __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1717  __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1718  """
1719  _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1720 
1721  @staticmethod
1722  def get_is_dense():
1723  r"""get_is_dense() -> bool"""
1724  return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1725 
1726  def show(self, *args):
1727  r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1728  return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1729 
1730  def add_voxel(self, arg2, arg3):
1731  r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1732  return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1733 
1734  def get_all_voxels(self):
1735  r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1736  return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1737  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1738 
1739 # Register _FloatDenseGridStorage1D in _IMP_statistics:
1740 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1741 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
1742  r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1743 
1744  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1745  __repr__ = _swig_repr
1746 
1747  def __init__(self, *args):
1748  r"""
1749  __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1750  __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1751  __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1752  __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1753  __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1754  __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1755  __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1756  """
1757  _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1758 
1759  def show(self, *args):
1760  r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1761  return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1762 
1763  def __getitem__(self, *args):
1764  r"""
1765  __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1766  __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1767  """
1768  return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1769 
1770  def __setitem__(self, *args):
1771  r"""
1772  __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1773  __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1774  """
1775  return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1776 
1777  def add_voxel(self, pt, vt):
1778  r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1779  return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1780 
1781  def get_extended_index(self, index):
1782  r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1783  return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1784 
1785  def get_bounding_box(self, *args):
1786  r"""
1787  get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1788  get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1789  get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1790  """
1791  return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1792 
1793  def set_bounding_box(self, bb3):
1794  r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1795  return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1796 
1797  def get_nearest_index(self, pt):
1798  r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1799  return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1800 
1801  def get_nearest_extended_index(self, pt):
1802  r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1803  return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1804  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1805 
1806 # Register _HistogramCountsGrid1D in _IMP_statistics:
1807 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1808 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1809  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1810 
1811  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1812  __repr__ = _swig_repr
1813 
1814  def __setitem__(self, *args):
1815  r"""
1816  __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1817  __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1818  """
1819  return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1820 
1821  def __getitem__(self, *args):
1822  r"""
1823  __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1824  __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1825  """
1826  return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1827 
1828  def __init__(self, *args):
1829  r"""
1830  __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1831  __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1832  __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1833  """
1834  _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1835 
1836  @staticmethod
1837  def get_is_dense():
1838  r"""get_is_dense() -> bool"""
1839  return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1840 
1841  def show(self, *args):
1842  r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1843  return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1844 
1845  def add_voxel(self, arg2, arg3):
1846  r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1847  return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1848 
1849  def get_all_voxels(self):
1850  r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1851  return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1852  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1853 
1854 # Register _IntDenseGridStorage2D in _IMP_statistics:
1855 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1856 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1857  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1858 
1859  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1860  __repr__ = _swig_repr
1861 
1862  def __setitem__(self, *args):
1863  r"""
1864  __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1865  __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1866  """
1867  return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1868 
1869  def __getitem__(self, *args):
1870  r"""
1871  __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1872  __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1873  """
1874  return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1875 
1876  def __init__(self, *args):
1877  r"""
1878  __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1879  __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1880  __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1881  """
1882  _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1883 
1884  @staticmethod
1885  def get_is_dense():
1886  r"""get_is_dense() -> bool"""
1887  return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1888 
1889  def show(self, *args):
1890  r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1891  return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1892 
1893  def add_voxel(self, arg2, arg3):
1894  r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1895  return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1896 
1897  def get_all_voxels(self):
1898  r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1899  return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1900  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1901 
1902 # Register _FloatDenseGridStorage2D in _IMP_statistics:
1903 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1904 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
1905  r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1906 
1907  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1908  __repr__ = _swig_repr
1909 
1910  def __init__(self, *args):
1911  r"""
1912  __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1913  __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1914  __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1915  __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1916  __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1917  __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1918  __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1919  """
1920  _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1921 
1922  def show(self, *args):
1923  r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1924  return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1925 
1926  def __getitem__(self, *args):
1927  r"""
1928  __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1929  __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1930  """
1931  return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1932 
1933  def __setitem__(self, *args):
1934  r"""
1935  __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1936  __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1937  """
1938  return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1939 
1940  def add_voxel(self, pt, vt):
1941  r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1942  return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1943 
1944  def get_extended_index(self, index):
1945  r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1946  return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1947 
1948  def get_bounding_box(self, *args):
1949  r"""
1950  get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1951  get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1952  get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1953  """
1954  return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1955 
1956  def set_bounding_box(self, bb3):
1957  r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1958  return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1959 
1960  def get_nearest_index(self, pt):
1961  r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1962  return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1963 
1964  def get_nearest_extended_index(self, pt):
1965  r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1966  return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1967  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1968 
1969 # Register _HistogramCountsGrid2D in _IMP_statistics:
1970 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1971 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1972  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
1973 
1974  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1975  __repr__ = _swig_repr
1976 
1977  def __setitem__(self, *args):
1978  r"""
1979  __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
1980  __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
1981  """
1982  return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
1983 
1984  def __getitem__(self, *args):
1985  r"""
1986  __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
1987  __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
1988  """
1989  return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
1990 
1991  def __init__(self, *args):
1992  r"""
1993  __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
1994  __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
1995  __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
1996  """
1997  _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
1998 
1999  @staticmethod
2000  def get_is_dense():
2001  r"""get_is_dense() -> bool"""
2002  return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2003 
2004  def show(self, *args):
2005  r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
2006  return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2007 
2008  def add_voxel(self, arg2, arg3):
2009  r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2010  return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2011 
2012  def get_all_voxels(self):
2013  r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2014  return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2015  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2016 
2017 # Register _IntDenseGridStorage3D in _IMP_statistics:
2018 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2019 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2020  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
2021 
2022  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2023  __repr__ = _swig_repr
2024 
2025  def __setitem__(self, *args):
2026  r"""
2027  __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2028  __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2029  """
2030  return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2031 
2032  def __getitem__(self, *args):
2033  r"""
2034  __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2035  __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2036  """
2037  return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2038 
2039  def __init__(self, *args):
2040  r"""
2041  __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2042  __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2043  __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2044  """
2045  _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2046 
2047  @staticmethod
2048  def get_is_dense():
2049  r"""get_is_dense() -> bool"""
2050  return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2051 
2052  def show(self, *args):
2053  r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2054  return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2055 
2056  def add_voxel(self, arg2, arg3):
2057  r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2058  return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2059 
2060  def get_all_voxels(self):
2061  r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2062  return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2063  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2064 
2065 # Register _FloatDenseGridStorage3D in _IMP_statistics:
2066 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2067 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2068  r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2069 
2070  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2071  __repr__ = _swig_repr
2072 
2073  def __init__(self, *args):
2074  r"""
2075  __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2076  __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2077  __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2078  __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2079  __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2080  __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2081  __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2082  """
2083  _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2084 
2085  def show(self, *args):
2086  r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2087  return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2088 
2089  def __getitem__(self, *args):
2090  r"""
2091  __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2092  __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2093  """
2094  return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2095 
2096  def __setitem__(self, *args):
2097  r"""
2098  __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2099  __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2100  """
2101  return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2102 
2103  def add_voxel(self, pt, vt):
2104  r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2105  return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2106 
2107  def get_extended_index(self, index):
2108  r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2109  return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2110 
2111  def get_bounding_box(self, *args):
2112  r"""
2113  get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2114  get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2115  get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2116  """
2117  return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2118 
2119  def set_bounding_box(self, bb3):
2120  r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2121  return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2122 
2123  def get_nearest_index(self, pt):
2124  r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2125  return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2126 
2127  def get_nearest_extended_index(self, pt):
2128  r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2129  return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2130  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2131 
2132 # Register _HistogramCountsGrid3D in _IMP_statistics:
2133 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2134 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2135  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2136 
2137  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2138  __repr__ = _swig_repr
2139 
2140  def __setitem__(self, *args):
2141  r"""
2142  __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2143  __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2144  """
2145  return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2146 
2147  def __getitem__(self, *args):
2148  r"""
2149  __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2150  __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2151  """
2152  return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2153 
2154  def __init__(self, *args):
2155  r"""
2156  __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2157  __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2158  __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2159  """
2160  _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2161 
2162  @staticmethod
2163  def get_is_dense():
2164  r"""get_is_dense() -> bool"""
2165  return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2166 
2167  def show(self, *args):
2168  r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2169  return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2170 
2171  def add_voxel(self, arg2, arg3):
2172  r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2173  return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2174 
2175  def get_all_voxels(self):
2176  r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2177  return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2178  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2179 
2180 # Register _IntDenseGridStorage4D in _IMP_statistics:
2181 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2182 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2183  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2184 
2185  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2186  __repr__ = _swig_repr
2187 
2188  def __setitem__(self, *args):
2189  r"""
2190  __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2191  __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2192  """
2193  return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2194 
2195  def __getitem__(self, *args):
2196  r"""
2197  __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2198  __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2199  """
2200  return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2201 
2202  def __init__(self, *args):
2203  r"""
2204  __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2205  __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2206  __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2207  """
2208  _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2209 
2210  @staticmethod
2211  def get_is_dense():
2212  r"""get_is_dense() -> bool"""
2213  return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2214 
2215  def show(self, *args):
2216  r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2217  return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2218 
2219  def add_voxel(self, arg2, arg3):
2220  r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2221  return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2222 
2223  def get_all_voxels(self):
2224  r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2225  return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2226  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2227 
2228 # Register _FloatDenseGridStorage4D in _IMP_statistics:
2229 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2230 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2231  r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2232 
2233  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2234  __repr__ = _swig_repr
2235 
2236  def __init__(self, *args):
2237  r"""
2238  __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2239  __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2240  __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2241  __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2242  __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2243  __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2244  __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2245  """
2246  _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2247 
2248  def show(self, *args):
2249  r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2250  return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2251 
2252  def __getitem__(self, *args):
2253  r"""
2254  __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2255  __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2256  """
2257  return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2258 
2259  def __setitem__(self, *args):
2260  r"""
2261  __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2262  __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2263  """
2264  return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2265 
2266  def add_voxel(self, pt, vt):
2267  r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2268  return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2269 
2270  def get_extended_index(self, index):
2271  r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2272  return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2273 
2274  def get_bounding_box(self, *args):
2275  r"""
2276  get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2277  get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2278  get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2279  """
2280  return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2281 
2282  def set_bounding_box(self, bb3):
2283  r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2284  return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2285 
2286  def get_nearest_index(self, pt):
2287  r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2288  return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2289 
2290  def get_nearest_extended_index(self, pt):
2291  r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2292  return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2293  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2294 
2295 # Register _HistogramCountsGrid4D in _IMP_statistics:
2296 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2297 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2298  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2299 
2300  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2301  __repr__ = _swig_repr
2302 
2303  def __setitem__(self, *args):
2304  r"""
2305  __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2306  __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2307  """
2308  return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2309 
2310  def __getitem__(self, *args):
2311  r"""
2312  __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2313  __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2314  """
2315  return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2316 
2317  def __init__(self, *args):
2318  r"""
2319  __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2320  __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2321  __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2322  """
2323  _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2324 
2325  @staticmethod
2326  def get_is_dense():
2327  r"""get_is_dense() -> bool"""
2328  return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2329 
2330  def show(self, *args):
2331  r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2332  return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2333 
2334  def add_voxel(self, arg2, arg3):
2335  r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2336  return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2337 
2338  def get_all_voxels(self):
2339  r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2340  return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2341  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2342 
2343 # Register _IntDenseGridStorage5D in _IMP_statistics:
2344 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2345 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2346  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2347 
2348  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2349  __repr__ = _swig_repr
2350 
2351  def __setitem__(self, *args):
2352  r"""
2353  __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2354  __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2355  """
2356  return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2357 
2358  def __getitem__(self, *args):
2359  r"""
2360  __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2361  __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2362  """
2363  return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2364 
2365  def __init__(self, *args):
2366  r"""
2367  __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2368  __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2369  __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2370  """
2371  _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2372 
2373  @staticmethod
2374  def get_is_dense():
2375  r"""get_is_dense() -> bool"""
2376  return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2377 
2378  def show(self, *args):
2379  r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2380  return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2381 
2382  def add_voxel(self, arg2, arg3):
2383  r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2384  return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2385 
2386  def get_all_voxels(self):
2387  r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2388  return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2389  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2390 
2391 # Register _FloatDenseGridStorage5D in _IMP_statistics:
2392 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2393 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
2394  r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2395 
2396  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2397  __repr__ = _swig_repr
2398 
2399  def __init__(self, *args):
2400  r"""
2401  __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2402  __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2403  __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2404  __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2405  __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2406  __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2407  __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2408  """
2409  _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2410 
2411  def show(self, *args):
2412  r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2413  return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2414 
2415  def __getitem__(self, *args):
2416  r"""
2417  __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2418  __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2419  """
2420  return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2421 
2422  def __setitem__(self, *args):
2423  r"""
2424  __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2425  __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2426  """
2427  return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2428 
2429  def add_voxel(self, pt, vt):
2430  r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2431  return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2432 
2433  def get_extended_index(self, index):
2434  r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2435  return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2436 
2437  def get_bounding_box(self, *args):
2438  r"""
2439  get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2440  get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2441  get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2442  """
2443  return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2444 
2445  def set_bounding_box(self, bb3):
2446  r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2447  return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2448 
2449  def get_nearest_index(self, pt):
2450  r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2451  return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2452 
2453  def get_nearest_extended_index(self, pt):
2454  r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2455  return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2456  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2457 
2458 # Register _HistogramCountsGrid5D in _IMP_statistics:
2459 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2460 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2461  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2462 
2463  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2464  __repr__ = _swig_repr
2465 
2466  def __setitem__(self, *args):
2467  r"""
2468  __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2469  __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2470  """
2471  return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2472 
2473  def __getitem__(self, *args):
2474  r"""
2475  __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2476  __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2477  """
2478  return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2479 
2480  def __init__(self, *args):
2481  r"""
2482  __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2483  __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2484  __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2485  """
2486  _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2487 
2488  @staticmethod
2489  def get_is_dense():
2490  r"""get_is_dense() -> bool"""
2491  return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2492 
2493  def show(self, *args):
2494  r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2495  return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2496 
2497  def add_voxel(self, arg2, arg3):
2498  r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2499  return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2500 
2501  def get_all_voxels(self):
2502  r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2503  return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2504  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2505 
2506 # Register _IntDenseGridStorage6D in _IMP_statistics:
2507 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2508 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2509  r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2510 
2511  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2512  __repr__ = _swig_repr
2513 
2514  def __setitem__(self, *args):
2515  r"""
2516  __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2517  __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2518  """
2519  return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2520 
2521  def __getitem__(self, *args):
2522  r"""
2523  __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2524  __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2525  """
2526  return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2527 
2528  def __init__(self, *args):
2529  r"""
2530  __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2531  __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2532  __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2533  """
2534  _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2535 
2536  @staticmethod
2537  def get_is_dense():
2538  r"""get_is_dense() -> bool"""
2539  return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2540 
2541  def show(self, *args):
2542  r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2543  return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2544 
2545  def add_voxel(self, arg2, arg3):
2546  r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2547  return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2548 
2549  def get_all_voxels(self):
2550  r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2551  return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2552  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2553 
2554 # Register _FloatDenseGridStorage6D in _IMP_statistics:
2555 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2556 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
2557  r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2558 
2559  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2560  __repr__ = _swig_repr
2561 
2562  def __init__(self, *args):
2563  r"""
2564  __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2565  __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2566  __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2567  __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2568  __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2569  __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2570  __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2571  """
2572  _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2573 
2574  def show(self, *args):
2575  r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2576  return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2577 
2578  def __getitem__(self, *args):
2579  r"""
2580  __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2581  __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2582  """
2583  return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2584 
2585  def __setitem__(self, *args):
2586  r"""
2587  __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2588  __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2589  """
2590  return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2591 
2592  def add_voxel(self, pt, vt):
2593  r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2594  return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2595 
2596  def get_extended_index(self, index):
2597  r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2598  return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2599 
2600  def get_bounding_box(self, *args):
2601  r"""
2602  get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2603  get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2604  get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2605  """
2606  return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2607 
2608  def set_bounding_box(self, bb3):
2609  r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2610  return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2611 
2612  def get_nearest_index(self, pt):
2613  r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2614  return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2615 
2616  def get_nearest_extended_index(self, pt):
2617  r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2618  return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2619  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2620 
2621 # Register _HistogramCountsGrid6D in _IMP_statistics:
2622 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2623 
2624 from . import _histogram
2625 show_histogram= _histogram.show_histogram
2626 
2627 
2628 def get_module_name():
2629  r"""get_module_name() -> std::string const"""
2630  return _IMP_statistics.get_module_name()
2631 
2632 def get_module_version():
2633  r"""get_module_version() -> std::string const"""
2634  return _IMP_statistics.get_module_version()
2635 
2636 def get_example_path(fname):
2637  r"""get_example_path(std::string fname) -> std::string"""
2638  return _IMP_statistics.get_example_path(fname)
2639 
2640 def get_data_path(fname):
2641  r"""get_data_path(std::string fname) -> std::string"""
2642  return _IMP_statistics.get_data_path(fname)
2643 
2644 from . import _version_check
2645 _version_check.check_version(get_module_version())
2646 __version__ = get_module_version()
2647 
2648 
def get_data_path
Return the full path to one of this module's data files.
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.
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.
def get_example_path
Return the full path to one of this module's example files.
def get_module_version
Return the version of this module, as a string.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
Definition: Object.h:111
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
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...
def get_module_name
Return the fully-qualified name of this module.
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)