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