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