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