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