IMP logo
IMP Reference Guide  2.17.0
The Integrative Modeling Platform
statistics/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.7
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-2022 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 
16 
17 from sys import version_info
18 if version_info >= (2, 6, 0):
19  def swig_import_helper():
20  from os.path import dirname
21  import imp
22  fp = None
23  try:
24  fp, pathname, description = imp.find_module('_IMP_statistics', [dirname(__file__)])
25  except ImportError:
26  import _IMP_statistics
27  return _IMP_statistics
28  if fp is not None:
29  try:
30  _mod = imp.load_module('_IMP_statistics', fp, pathname, description)
31  finally:
32  fp.close()
33  return _mod
34  _IMP_statistics = swig_import_helper()
35  del swig_import_helper
36 else:
37  import _IMP_statistics
38 del version_info
39 try:
40  _swig_property = property
41 except NameError:
42  pass # Python < 2.2 doesn't have 'property'.
43 
44 
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46  if (name == "thisown"):
47  return self.this.own(value)
48  if (name == "this"):
49  if type(value).__name__ == 'SwigPyObject':
50  self.__dict__[name] = value
51  return
52  method = class_type.__swig_setmethods__.get(name, None)
53  if method:
54  return method(self, value)
55  if (not static):
56  object.__setattr__(self, name, value)
57  else:
58  raise AttributeError("You cannot add attributes to %s" % self)
59 
60 
61 def _swig_setattr(self, class_type, name, value):
62  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 
64 
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66  if (name == "thisown"):
67  return self.this.own()
68  method = class_type.__swig_getmethods__.get(name, None)
69  if method:
70  return method(self)
71  if (not static):
72  return object.__getattr__(self, name)
73  else:
74  raise AttributeError(name)
75 
76 def _swig_getattr(self, class_type, name):
77  return _swig_getattr_nondynamic(self, class_type, name, 0)
78 
79 
80 def _swig_repr(self):
81  try:
82  strthis = "proxy of " + self.this.__repr__()
83  except:
84  strthis = ""
85  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
86 
87 try:
88  _object = object
89  _newclass = 1
90 except AttributeError:
91  class _object:
92  pass
93  _newclass = 0
94 
95 
96 
97 def _swig_setattr_nondynamic_method(set):
98  def set_attr(self, name, value):
99  if (name == "thisown"):
100  return self.this.own(value)
101  if hasattr(self, name) or (name == "this"):
102  set(self, name, value)
103  else:
104  raise AttributeError("You cannot add attributes to %s" % self)
105  return set_attr
106 
107 
108 try:
109  import weakref
110  weakref_proxy = weakref.proxy
111 except:
112  weakref_proxy = lambda x: x
113 
114 
115 class IMP_STATISTICS_SwigPyIterator(object):
116  """Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class"""
117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
118 
119  def __init__(self, *args, **kwargs):
120  raise AttributeError("No constructor defined - class is abstract")
121  __repr__ = _swig_repr
122  __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
123  __del__ = lambda self: None
124 
125  def value(self):
126  """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
127  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
128 
129 
130  def incr(self, n=1):
131  """
132  incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
133  incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
134  """
135  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
136 
137 
138  def decr(self, n=1):
139  """
140  decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
141  decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
142  """
143  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
144 
145 
146  def distance(self, x):
147  """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
148  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
149 
150 
151  def equal(self, x):
152  """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
153  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
154 
155 
156  def copy(self):
157  """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
158  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
159 
160 
161  def next(self):
162  """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
163  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
164 
165 
166  def __next__(self):
167  """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
168  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
169 
170 
171  def previous(self):
172  """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
173  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
174 
175 
176  def advance(self, n):
177  """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
178  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
179 
180 
181  def __eq__(self, x):
182  """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
183  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
184 
185 
186  def __ne__(self, x):
187  """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
188  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
189 
190 
191  def __iadd__(self, n):
192  """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
193  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
194 
195 
196  def __isub__(self, n):
197  """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
198  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
199 
200 
201  def __add__(self, n):
202  """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
203  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
204 
205 
206  def __sub__(self, *args):
207  """
208  __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
209  __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
210  """
211  return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
212 
213  def __iter__(self):
214  return self
215 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
216 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
217 
218 
219 _value_types=[]
220 _object_types=[]
221 _raii_types=[]
222 _plural_types=[]
223 
224 
225 _IMP_statistics.IMP_DEBUG_swigconstant(_IMP_statistics)
226 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
227 
228 _IMP_statistics.IMP_RELEASE_swigconstant(_IMP_statistics)
229 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
230 
231 _IMP_statistics.IMP_SILENT_swigconstant(_IMP_statistics)
232 IMP_SILENT = _IMP_statistics.IMP_SILENT
233 
234 _IMP_statistics.IMP_PROGRESS_swigconstant(_IMP_statistics)
235 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
236 
237 _IMP_statistics.IMP_TERSE_swigconstant(_IMP_statistics)
238 IMP_TERSE = _IMP_statistics.IMP_TERSE
239 
240 _IMP_statistics.IMP_VERBOSE_swigconstant(_IMP_statistics)
241 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
242 
243 _IMP_statistics.IMP_MEMORY_swigconstant(_IMP_statistics)
244 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
245 
246 _IMP_statistics.IMP_NONE_swigconstant(_IMP_statistics)
247 IMP_NONE = _IMP_statistics.IMP_NONE
248 
249 _IMP_statistics.IMP_USAGE_swigconstant(_IMP_statistics)
250 IMP_USAGE = _IMP_statistics.IMP_USAGE
251 
252 _IMP_statistics.IMP_INTERNAL_swigconstant(_IMP_statistics)
253 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
254 
255 _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_statistics)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
257 
258 _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_statistics)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
260 
261 _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_statistics)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
263 
264 _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_statistics)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
266 
267 _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
269 
270 _IMP_statistics.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_statistics)
271 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
272 
273 _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_statistics)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
275 
276 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_statistics)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
278 
279 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_statistics)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
281 
282 _IMP_statistics.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
284 
285 import sys
286 class _DirectorObjects(object):
287  """@internal Simple class to keep references to director objects
288  to prevent premature deletion."""
289  def __init__(self):
290  self._objects = []
291  def register(self, obj):
292  """Take a reference to a director object; will only work for
293  refcounted C++ classes"""
294  if hasattr(obj, 'get_ref_count'):
295  self._objects.append(obj)
296  def cleanup(self):
297  """Only drop our reference and allow cleanup by Python if no other
298  Python references exist (we hold 3 references: one in self._objects,
299  one in x, and one in the argument list for getrefcount) *and* no
300  other C++ references exist (the Python object always holds one)"""
301  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
302  or x.get_ref_count() > 1]
303 # Do in two steps so the references are kept until the end of the
304 # function (deleting references may trigger a fresh call to this method)
305  self._objects = objs
306  def get_object_count(self):
307  """Get number of director objects (useful for testing only)"""
308  return len(self._objects)
309 _director_objects = _DirectorObjects()
310 
311 class _ostream(object):
312  """Proxy of C++ std::ostream class"""
313  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
314 
315  def __init__(self, *args, **kwargs):
316  raise AttributeError("No constructor defined")
317  __repr__ = _swig_repr
318 
319  def write(self, osa_buf):
320  """write(_ostream self, char const * osa_buf)"""
321  return _IMP_statistics._ostream_write(self, osa_buf)
322 
323 _ostream_swigregister = _IMP_statistics._ostream_swigregister
324 _ostream_swigregister(_ostream)
325 
326 
327 _IMP_statistics.IMP_HAS_NOEXCEPT_swigconstant(_IMP_statistics)
328 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
329 
330 _IMP_statistics.IMP_C_OPEN_BINARY_swigconstant(_IMP_statistics)
331 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
332 import IMP
333 
334 _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
336 
337 _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
339 
340 _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
342 
343 _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
345 
346 _IMP_statistics.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_statistics)
347 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
348 
349 _IMP_statistics.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
350 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
351 import IMP.cgal
352 
353 _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
354 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
355 
356 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
357 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
358 
359 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
360 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
361 
362 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
363 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
364 
365 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
366 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
367 
368 _IMP_statistics.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_statistics)
369 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
370 
371 _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_statistics)
372 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
373 
374 _IMP_statistics.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_statistics)
375 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
376 
377 _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_statistics)
378 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
379 import IMP.algebra
380 
381 _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
382 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
383 
384 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
385 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
386 
387 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
388 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
389 
390 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
391 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
392 
393 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
394 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
395 
396 _IMP_statistics.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_statistics)
397 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
398 
399 _IMP_statistics.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_statistics)
400 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
401 
402 _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_statistics)
403 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
404 
405 Histogram1Ds=list
406 _plural_types.append("Histogram1Ds")
407 _value_types.append("Histogram1D")
408 
409 
410 Histogram2Ds=list
411 _plural_types.append("Histogram2Ds")
412 _value_types.append("Histogram2D")
413 
414 
415 Histogram3Ds=list
416 _plural_types.append("Histogram3Ds")
417 _value_types.append("Histogram3D")
418 
419 
420 Histogram4Ds=list
421 _plural_types.append("Histogram4Ds")
422 _value_types.append("Histogram4D")
423 
424 
425 Histogram5Ds=list
426 _plural_types.append("Histogram5Ds")
427 _value_types.append("Histogram5D")
428 
429 
430 Histogram6Ds=list
431 _plural_types.append("Histogram6Ds")
432 _value_types.append("Histogram6D")
433 
434 
435 Histogram1Ds=list
436 _plural_types.append("Histogram1Ds")
437 _value_types.append("HistogramD<1>")
438 
439 
440 Histogram2Ds=list
441 _plural_types.append("Histogram2Ds")
442 _value_types.append("HistogramD<2>")
443 
444 
445 Histogram3Ds=list
446 _plural_types.append("Histogram3Ds")
447 _value_types.append("HistogramD<3>")
448 
449 
450 Histogram4Ds=list
451 _plural_types.append("Histogram4Ds")
452 _value_types.append("HistogramD<4>")
453 
454 
455 Histogram5Ds=list
456 _plural_types.append("Histogram5Ds")
457 _value_types.append("HistogramD<5>")
458 
459 
460 Histogram6Ds=list
461 _plural_types.append("Histogram6Ds")
462 _value_types.append("HistogramD<6>")
463 
464 
465 HistogramKDs=list
466 _plural_types.append("HistogramKDs")
467 _value_types.append("HistogramKD")
468 
469 
470 HistogramKDs=list
471 _plural_types.append("HistogramKDs")
472 _value_types.append("HistogramD<-1>")
473 
474 
475 _object_types.append("PartitionalClustering")
476 
477 
478 def _object_cast_to_PartitionalClustering(o):
479  """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
480  return _IMP_statistics._object_cast_to_PartitionalClustering(o)
481 
482 _object_types.append("PartitionalClusteringWithCenter")
483 
484 
485 def _object_cast_to_PartitionalClusteringWithCenter(o):
486  """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
487  return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
488 
489 _object_types.append("Embedding")
490 
491 
492 def _object_cast_to_Embedding(o):
493  """_object_cast_to_Embedding(Object o) -> Embedding"""
494  return _IMP_statistics._object_cast_to_Embedding(o)
495 
496 _object_types.append("ConfigurationSetXYZEmbedding")
497 
498 
499 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
500  """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
501  return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
502 
503 _object_types.append("VectorDEmbedding")
504 
505 
506 def _object_cast_to_VectorDEmbedding(o):
507  """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
508  return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
509 
510 _object_types.append("ParticleEmbedding")
511 
512 
513 def _object_cast_to_ParticleEmbedding(o):
514  """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
515  return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
516 
517 _object_types.append("Metric")
518 
519 
520 def _object_cast_to_Metric(o):
521  """_object_cast_to_Metric(Object o) -> Metric"""
522  return _IMP_statistics._object_cast_to_Metric(o)
523 
524 _object_types.append("EuclideanMetric")
525 
526 
527 def _object_cast_to_EuclideanMetric(o):
528  """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
529  return _IMP_statistics._object_cast_to_EuclideanMetric(o)
530 
531 _object_types.append("ConfigurationSetRMSDMetric")
532 
533 
534 def _object_cast_to_ConfigurationSetRMSDMetric(o):
535  """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
536  return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
537 
538 _object_types.append("RecursivePartitionalClusteringMetric")
539 
540 
541 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
542  """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
543  return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
544 
545 _object_types.append("RecursivePartitionalClusteringEmbedding")
546 
547 
548 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
549  """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
550  return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
551 
552 _object_types.append("ChiSquareMetric")
553 
554 
555 def _object_cast_to_ChiSquareMetric(o):
556  """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
557  return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
558 class PartitionalClustering(IMP.Object):
559  """Proxy of C++ IMP::statistics::PartitionalClustering class"""
560  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
561 
562  def __init__(self, *args, **kwargs):
563  raise AttributeError("No constructor defined - class is abstract")
564 
565  def get_number_of_clusters(self):
566  """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
567  return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
568 
569 
570  def get_cluster(self, cluster_index):
571  """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
572  return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
573 
574 
575  def get_cluster_representative(self, cluster_index):
576  """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
577  return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
578 
579  __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
580  __del__ = lambda self: None
581 
582  def __str__(self):
583  """__str__(PartitionalClustering self) -> std::string"""
584  return _IMP_statistics.PartitionalClustering___str__(self)
585 
586 
587  def __repr__(self):
588  """__repr__(PartitionalClustering self) -> std::string"""
589  return _IMP_statistics.PartitionalClustering___repr__(self)
590 
591 
592  @staticmethod
593  def get_from(o):
594  return _object_cast_to_PartitionalClustering(o)
595 
596 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
597 PartitionalClustering_swigregister(PartitionalClustering)
598 
599 
601  """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
602  return _IMP_statistics.validate_partitional_clustering(pc, n)
603 class Embedding(IMP.Object):
604  """Proxy of C++ IMP::statistics::Embedding class"""
605  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
606 
607  def __init__(self, name):
608  """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
609  if self.__class__ == Embedding:
610  _self = None
611  else:
612  _self = self
613  this = _IMP_statistics.new_Embedding(_self, name)
614  try:
615  self.this.append(this)
616  except:
617  self.this = this
618 
619  if self.__class__ != Embedding:
620  _director_objects.register(self)
621 
622 
623 
624 
625  def do_get_weight(self, i):
626  """do_get_weight(Embedding self, unsigned int i) -> double"""
627  return _IMP_statistics.Embedding_do_get_weight(self, i)
628 
629 
630  def get_point(self, i):
631  """get_point(Embedding self, unsigned int i) -> VectorKD"""
632  return _IMP_statistics.Embedding_get_point(self, i)
633 
634 
635  def get_number_of_items(self):
636  """get_number_of_items(Embedding self) -> unsigned int"""
637  return _IMP_statistics.Embedding_get_number_of_items(self)
638 
639 
640  def get_weight(self, i):
641  """get_weight(Embedding self, unsigned int i) -> double"""
642  return _IMP_statistics.Embedding_get_weight(self, i)
643 
644 
645  def get_points(self):
646  """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
647  return _IMP_statistics.Embedding_get_points(self)
648 
649 
650  def __str__(self):
651  """__str__(Embedding self) -> std::string"""
652  return _IMP_statistics.Embedding___str__(self)
653 
654 
655  def __repr__(self):
656  """__repr__(Embedding self) -> std::string"""
657  return _IMP_statistics.Embedding___repr__(self)
658 
659 
660  @staticmethod
661  def get_from(o):
662  return _object_cast_to_Embedding(o)
663 
664 
665  def get_type_name(self):
666  return self.__class__.__name__
667  def do_show(self, out):
668  pass
669  def get_version_info(self):
670  if"IMP::statistics" == "IMP":
671  return VersionInfo(self.__module__,
672  __import__(self.__module__).get_module_version())
673  else:
674  return IMP.VersionInfo(self.__module__,
675  __import__(self.__module__).get_module_version())
676  @staticmethod
677  def get_from(o):
678  return _object_cast_to_Embedding(o)
679 
680  __swig_destroy__ = _IMP_statistics.delete_Embedding
681  __del__ = lambda self: None
682  def __disown__(self):
683  self.this.disown()
684  _IMP_statistics.disown_Embedding(self)
685  return weakref_proxy(self)
686 
687  def do_destroy(self):
688  """do_destroy(Embedding self)"""
689  return _IMP_statistics.Embedding_do_destroy(self)
690 
691 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
692 Embedding_swigregister(Embedding)
693 
694 class Metric(IMP.Object):
695  """Proxy of C++ IMP::statistics::Metric class"""
696  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
697 
698  def __init__(self, name):
699  """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
700  if self.__class__ == Metric:
701  _self = None
702  else:
703  _self = self
704  this = _IMP_statistics.new_Metric(_self, name)
705  try:
706  self.this.append(this)
707  except:
708  self.this = this
709 
710  if self.__class__ != Metric:
711  _director_objects.register(self)
712 
713 
714 
715 
716  def do_get_weight(self, i):
717  """do_get_weight(Metric self, unsigned int i) -> double"""
718  return _IMP_statistics.Metric_do_get_weight(self, i)
719 
720 
721  def get_distance(self, i, j):
722  """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
723  return _IMP_statistics.Metric_get_distance(self, i, j)
724 
725 
726  def get_weight(self, i):
727  """get_weight(Metric self, unsigned int i) -> double"""
728  return _IMP_statistics.Metric_get_weight(self, i)
729 
730 
731  def get_number_of_items(self):
732  """get_number_of_items(Metric self) -> unsigned int"""
733  return _IMP_statistics.Metric_get_number_of_items(self)
734 
735  __swig_destroy__ = _IMP_statistics.delete_Metric
736  __del__ = lambda self: None
737 
738  def __str__(self):
739  """__str__(Metric self) -> std::string"""
740  return _IMP_statistics.Metric___str__(self)
741 
742 
743  def __repr__(self):
744  """__repr__(Metric self) -> std::string"""
745  return _IMP_statistics.Metric___repr__(self)
746 
747 
748  @staticmethod
749  def get_from(o):
750  return _object_cast_to_Metric(o)
751 
752 
753  def get_type_name(self):
754  return self.__class__.__name__
755  def do_show(self, out):
756  pass
757  def get_version_info(self):
758  if"IMP::statistics" == "IMP":
759  return VersionInfo(self.__module__,
760  __import__(self.__module__).get_module_version())
761  else:
762  return IMP.VersionInfo(self.__module__,
763  __import__(self.__module__).get_module_version())
764  @staticmethod
765  def get_from(o):
766  return _object_cast_to_Metric(o)
767 
768  def __disown__(self):
769  self.this.disown()
770  _IMP_statistics.disown_Metric(self)
771  return weakref_proxy(self)
772 
773  def do_destroy(self):
774  """do_destroy(Metric self)"""
775  return _IMP_statistics.Metric_do_destroy(self)
776 
777 Metric_swigregister = _IMP_statistics.Metric_swigregister
778 Metric_swigregister(Metric)
779 
780 class ChiSquareMetric(Metric):
781  """Proxy of C++ IMP::statistics::ChiSquareMetric class"""
782  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
783 
784  def __init__(self, data_exp, constr_type=0):
785  """
786  __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
787  __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
788  """
789  this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
790  try:
791  self.this.append(this)
792  except:
793  self.this = this
794 
795  def add_configuration(self, data, stddev, weight=1.0):
796  """
797  add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
798  add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
799  """
800  return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
801 
802 
803  def get_data(self, i):
804  """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
805  return _IMP_statistics.ChiSquareMetric_get_data(self, i)
806 
807 
808  def get_standard_deviation(self, i):
809  """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
810  return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
811 
812 
813  def do_get_weight(self, i):
814  """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
815  return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
816 
817 
818  def get_chi_square_experimental(self, i):
819  """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
820  return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
821 
822 
823  def get_version_info(self):
824  """get_version_info(ChiSquareMetric self) -> VersionInfo"""
825  return _IMP_statistics.ChiSquareMetric_get_version_info(self)
826 
827 
828  def __str__(self):
829  """__str__(ChiSquareMetric self) -> std::string"""
830  return _IMP_statistics.ChiSquareMetric___str__(self)
831 
832 
833  def __repr__(self):
834  """__repr__(ChiSquareMetric self) -> std::string"""
835  return _IMP_statistics.ChiSquareMetric___repr__(self)
836 
837 
838  @staticmethod
839  def get_from(o):
840  return _object_cast_to_ChiSquareMetric(o)
841 
842 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
843 ChiSquareMetric_swigregister(ChiSquareMetric)
844 
845 class PartitionalClusteringWithCenter(PartitionalClustering):
846  """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class"""
847  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
848 
849  def __init__(self, *args, **kwargs):
850  raise AttributeError("No constructor defined")
851 
852  def get_cluster_center(self, i):
853  """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
854  return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
855 
856 
857  def get_version_info(self):
858  """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
859  return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
860 
861 
862  def __str__(self):
863  """__str__(PartitionalClusteringWithCenter self) -> std::string"""
864  return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
865 
866 
867  def __repr__(self):
868  """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
869  return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
870 
871 
872  @staticmethod
873  def get_from(o):
874  return _object_cast_to_PartitionalClusteringWithCenter(o)
875 
876 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
877 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
878 
879 class ConfigurationSetXYZEmbedding(Embedding):
880  """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class"""
881  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
882 
883  def __init__(self, cs, pi, align=False):
884  """
885  __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
886  __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
887  """
888  this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
889  try:
890  self.this.append(this)
891  except:
892  self.this = this
893 
894  def get_version_info(self):
895  """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
896  return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
897 
898 
899  def __str__(self):
900  """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
901  return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
902 
903 
904  def __repr__(self):
905  """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
906  return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
907 
908 
909  @staticmethod
910  def get_from(o):
911  return _object_cast_to_ConfigurationSetXYZEmbedding(o)
912 
913 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
914 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
915 
916 class ParticleEmbedding(Embedding):
917  """Proxy of C++ IMP::statistics::ParticleEmbedding class"""
918  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
919 
920  def __init__(self, *args):
921  """
922  __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
923  __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
924  __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
925  """
926  this = _IMP_statistics.new_ParticleEmbedding(*args)
927  try:
928  self.this.append(this)
929  except:
930  self.this = this
931 
932  def get_version_info(self):
933  """get_version_info(ParticleEmbedding self) -> VersionInfo"""
934  return _IMP_statistics.ParticleEmbedding_get_version_info(self)
935 
936 
937  def __str__(self):
938  """__str__(ParticleEmbedding self) -> std::string"""
939  return _IMP_statistics.ParticleEmbedding___str__(self)
940 
941 
942  def __repr__(self):
943  """__repr__(ParticleEmbedding self) -> std::string"""
944  return _IMP_statistics.ParticleEmbedding___repr__(self)
945 
946 
947  @staticmethod
948  def get_from(o):
949  return _object_cast_to_ParticleEmbedding(o)
950 
951 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
952 ParticleEmbedding_swigregister(ParticleEmbedding)
953 
954 class VectorDEmbedding(Embedding):
955  """Proxy of C++ IMP::statistics::VectorDEmbedding class"""
956  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
957 
958  def __init__(self, *args):
959  """
960  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
961  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
962  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
963  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
964  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
965  __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
966  """
967  this = _IMP_statistics.new_VectorDEmbedding(*args)
968  try:
969  self.this.append(this)
970  except:
971  self.this = this
972 
973  def get_version_info(self):
974  """get_version_info(VectorDEmbedding self) -> VersionInfo"""
975  return _IMP_statistics.VectorDEmbedding_get_version_info(self)
976 
977 
978  def __str__(self):
979  """__str__(VectorDEmbedding self) -> std::string"""
980  return _IMP_statistics.VectorDEmbedding___str__(self)
981 
982 
983  def __repr__(self):
984  """__repr__(VectorDEmbedding self) -> std::string"""
985  return _IMP_statistics.VectorDEmbedding___repr__(self)
986 
987 
988  @staticmethod
989  def get_from(o):
990  return _object_cast_to_VectorDEmbedding(o)
991 
992 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
993 VectorDEmbedding_swigregister(VectorDEmbedding)
994 
995 class EuclideanMetric(Metric):
996  """Proxy of C++ IMP::statistics::EuclideanMetric class"""
997  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
998 
999  def __init__(self, em):
1000  """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
1001  this = _IMP_statistics.new_EuclideanMetric(em)
1002  try:
1003  self.this.append(this)
1004  except:
1005  self.this = this
1006 
1007  def get_version_info(self):
1008  """get_version_info(EuclideanMetric self) -> VersionInfo"""
1009  return _IMP_statistics.EuclideanMetric_get_version_info(self)
1010 
1011 
1012  def __str__(self):
1013  """__str__(EuclideanMetric self) -> std::string"""
1014  return _IMP_statistics.EuclideanMetric___str__(self)
1015 
1016 
1017  def __repr__(self):
1018  """__repr__(EuclideanMetric self) -> std::string"""
1019  return _IMP_statistics.EuclideanMetric___repr__(self)
1020 
1021 
1022  @staticmethod
1023  def get_from(o):
1024  return _object_cast_to_EuclideanMetric(o)
1025 
1026 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
1027 EuclideanMetric_swigregister(EuclideanMetric)
1028 
1029 class ConfigurationSetRMSDMetric(Metric):
1030  """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class"""
1031  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1032 
1033  def __init__(self, cs, sc, align=False):
1034  """
1035  __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
1036  __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
1037  """
1038  this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
1039  try:
1040  self.this.append(this)
1041  except:
1042  self.this = this
1043 
1044  def get_version_info(self):
1045  """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
1046  return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
1047 
1048 
1049  def __str__(self):
1050  """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
1051  return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
1052 
1053 
1054  def __repr__(self):
1055  """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
1056  return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
1057 
1058 
1059  @staticmethod
1060  def get_from(o):
1061  return _object_cast_to_ConfigurationSetRMSDMetric(o)
1062 
1063 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
1064 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
1065 
1066 
1067 def create_lloyds_kmeans(embedding, k, iterations):
1068  """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
1069  return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
1070 
1071 def create_bin_based_clustering(embed, side):
1072  """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
1073  return _IMP_statistics.create_bin_based_clustering(embed, side)
1074 
1075 def create_centrality_clustering(*args):
1076  """
1077  create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1078  create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1079  """
1080  return _IMP_statistics.create_centrality_clustering(*args)
1081 
1082 def create_diameter_clustering(d, maximum_diameter):
1083  """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1084  return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1085 
1087  """
1088  create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1089  create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1090  """
1091  return _IMP_statistics.create_connectivity_clustering(*args)
1092 
1093 def create_gromos_clustering(d, cutoff):
1094  """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1095  return _IMP_statistics.create_gromos_clustering(d, cutoff)
1096 
1097 def get_quantile(h, fraction):
1098  """get_quantile(Histogram1D h, double fraction) -> double"""
1099  return _IMP_statistics.get_quantile(h, fraction)
1100 
1101 def get_centroids(d, pc):
1102  """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1103  return _IMP_statistics.get_centroids(d, pc)
1104 
1105 def get_representatives(d, pc):
1106  """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1107  return _IMP_statistics.get_representatives(d, pc)
1108 class RecursivePartitionalClusteringEmbedding(Embedding):
1109  """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class"""
1110  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1111 
1112  def __init__(self, metric, clustering):
1113  """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1114  this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1115  try:
1116  self.this.append(this)
1117  except:
1118  self.this = this
1119 
1120  def create_full_clustering(self, center_cluster):
1121  """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1122  return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1123 
1124 
1125  def get_version_info(self):
1126  """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1127  return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1128 
1129 
1130  def __str__(self):
1131  """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1132  return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1133 
1134 
1135  def __repr__(self):
1136  """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1137  return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1138 
1139 
1140  @staticmethod
1141  def get_from(o):
1142  return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1143 
1144 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1145 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1146 
1147 class RecursivePartitionalClusteringMetric(Metric):
1148  """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class"""
1149  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1150 
1151  def __init__(self, metric, clustering):
1152  """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1153  this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1154  try:
1155  self.this.append(this)
1156  except:
1157  self.this = this
1158 
1159  def create_full_clustering(self, center_cluster):
1160  """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1161  return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1162 
1163 
1164  def get_version_info(self):
1165  """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1166  return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1167 
1168 
1169  def __str__(self):
1170  """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1171  return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1172 
1173 
1174  def __repr__(self):
1175  """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1176  return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1177 
1178 
1179  @staticmethod
1180  def get_from(o):
1181  return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1182 
1183 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1184 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1185 
1186 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1187  """Proxy of C++ IMP::statistics::HistogramD<(1)> class"""
1188  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1189 
1190  def __init__(self, *args):
1191  """
1192  __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1193  __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1194  """
1195  this = _IMP_statistics.new_Histogram1D(*args)
1196  try:
1197  self.this.append(this)
1198  except:
1199  self.this = this
1200 
1201  def add(self, x, weight=1):
1202  """
1203  add(Histogram1D self, Vector1D x, double weight=1)
1204  add(Histogram1D self, Vector1D x)
1205  """
1206  return _IMP_statistics.Histogram1D_add(self, x, weight)
1207 
1208 
1209  def get_total_count(self):
1210  """get_total_count(Histogram1D self) -> double"""
1211  return _IMP_statistics.Histogram1D_get_total_count(self)
1212 
1213 
1214  def get_frequencies(self):
1215  """get_frequencies(Histogram1D self) -> Histogram1D"""
1216  return _IMP_statistics.Histogram1D_get_frequencies(self)
1217 
1218 
1219  def get_probability_distribution_function(self):
1220  """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1221  return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1222 
1223 
1224  def get_counts(self):
1225  """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1226  return _IMP_statistics.Histogram1D_get_counts(self)
1227 
1228 
1229  def get_mean(self):
1230  """get_mean(Histogram1D self) -> Vector1D"""
1231  return _IMP_statistics.Histogram1D_get_mean(self)
1232 
1233 
1234  def get_dimension(self):
1235  """get_dimension(Histogram1D self) -> unsigned int"""
1236  return _IMP_statistics.Histogram1D_get_dimension(self)
1237 
1238 
1239  def get_standard_deviation(self, mean):
1240  """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1241  return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1242 
1243 
1244  def get_bounding_box(self):
1245  """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1246  return _IMP_statistics.Histogram1D_get_bounding_box(self)
1247 
1248 
1249  def get_minimum_and_maximum(self):
1250  """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1251  return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1252 
1253 
1254  def show(self, *args):
1255  """
1256  show(Histogram1D self, _ostream out)
1257  show(Histogram1D self)
1258  """
1259  return _IMP_statistics.Histogram1D_show(self, *args)
1260 
1261 
1262  def __str__(self):
1263  """__str__(Histogram1D self) -> std::string"""
1264  return _IMP_statistics.Histogram1D___str__(self)
1265 
1266 
1267  def __repr__(self):
1268  """__repr__(Histogram1D self) -> std::string"""
1269  return _IMP_statistics.Histogram1D___repr__(self)
1270 
1271 
1272  def __cmp__(self, arg2):
1273  """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1274  return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1275 
1276 
1277  def __eq__(self, arg2):
1278  """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1279  return _IMP_statistics.Histogram1D___eq__(self, arg2)
1280 
1281  __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1282  __del__ = lambda self: None
1283 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1284 Histogram1D_swigregister(Histogram1D)
1285 
1286 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1287  """Proxy of C++ IMP::statistics::HistogramD<(2)> class"""
1288  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1289 
1290  def __init__(self, *args):
1291  """
1292  __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1293  __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1294  """
1295  this = _IMP_statistics.new_Histogram2D(*args)
1296  try:
1297  self.this.append(this)
1298  except:
1299  self.this = this
1300 
1301  def add(self, x, weight=1):
1302  """
1303  add(Histogram2D self, Vector2D x, double weight=1)
1304  add(Histogram2D self, Vector2D x)
1305  """
1306  return _IMP_statistics.Histogram2D_add(self, x, weight)
1307 
1308 
1309  def get_total_count(self):
1310  """get_total_count(Histogram2D self) -> double"""
1311  return _IMP_statistics.Histogram2D_get_total_count(self)
1312 
1313 
1314  def get_frequencies(self):
1315  """get_frequencies(Histogram2D self) -> Histogram2D"""
1316  return _IMP_statistics.Histogram2D_get_frequencies(self)
1317 
1318 
1319  def get_probability_distribution_function(self):
1320  """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1321  return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1322 
1323 
1324  def get_counts(self):
1325  """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1326  return _IMP_statistics.Histogram2D_get_counts(self)
1327 
1328 
1329  def get_mean(self):
1330  """get_mean(Histogram2D self) -> Vector2D"""
1331  return _IMP_statistics.Histogram2D_get_mean(self)
1332 
1333 
1334  def get_dimension(self):
1335  """get_dimension(Histogram2D self) -> unsigned int"""
1336  return _IMP_statistics.Histogram2D_get_dimension(self)
1337 
1338 
1339  def get_standard_deviation(self, mean):
1340  """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1341  return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1342 
1343 
1344  def get_bounding_box(self):
1345  """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1346  return _IMP_statistics.Histogram2D_get_bounding_box(self)
1347 
1348 
1349  def get_minimum_and_maximum(self):
1350  """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1351  return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1352 
1353 
1354  def show(self, *args):
1355  """
1356  show(Histogram2D self, _ostream out)
1357  show(Histogram2D self)
1358  """
1359  return _IMP_statistics.Histogram2D_show(self, *args)
1360 
1361 
1362  def __str__(self):
1363  """__str__(Histogram2D self) -> std::string"""
1364  return _IMP_statistics.Histogram2D___str__(self)
1365 
1366 
1367  def __repr__(self):
1368  """__repr__(Histogram2D self) -> std::string"""
1369  return _IMP_statistics.Histogram2D___repr__(self)
1370 
1371 
1372  def __cmp__(self, arg2):
1373  """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1374  return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1375 
1376 
1377  def __eq__(self, arg2):
1378  """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1379  return _IMP_statistics.Histogram2D___eq__(self, arg2)
1380 
1381  __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1382  __del__ = lambda self: None
1383 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1384 Histogram2D_swigregister(Histogram2D)
1385 
1386 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1387  """Proxy of C++ IMP::statistics::HistogramD<(3)> class"""
1388  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1389 
1390  def __init__(self, *args):
1391  """
1392  __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1393  __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1394  """
1395  this = _IMP_statistics.new_Histogram3D(*args)
1396  try:
1397  self.this.append(this)
1398  except:
1399  self.this = this
1400 
1401  def add(self, x, weight=1):
1402  """
1403  add(Histogram3D self, Vector3D x, double weight=1)
1404  add(Histogram3D self, Vector3D x)
1405  """
1406  return _IMP_statistics.Histogram3D_add(self, x, weight)
1407 
1408 
1409  def get_total_count(self):
1410  """get_total_count(Histogram3D self) -> double"""
1411  return _IMP_statistics.Histogram3D_get_total_count(self)
1412 
1413 
1414  def get_frequencies(self):
1415  """get_frequencies(Histogram3D self) -> Histogram3D"""
1416  return _IMP_statistics.Histogram3D_get_frequencies(self)
1417 
1418 
1419  def get_probability_distribution_function(self):
1420  """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1421  return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1422 
1423 
1424  def get_counts(self):
1425  """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1426  return _IMP_statistics.Histogram3D_get_counts(self)
1427 
1428 
1429  def get_mean(self):
1430  """get_mean(Histogram3D self) -> Vector3D"""
1431  return _IMP_statistics.Histogram3D_get_mean(self)
1432 
1433 
1434  def get_dimension(self):
1435  """get_dimension(Histogram3D self) -> unsigned int"""
1436  return _IMP_statistics.Histogram3D_get_dimension(self)
1437 
1438 
1439  def get_standard_deviation(self, mean):
1440  """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1441  return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1442 
1443 
1444  def get_bounding_box(self):
1445  """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1446  return _IMP_statistics.Histogram3D_get_bounding_box(self)
1447 
1448 
1449  def get_minimum_and_maximum(self):
1450  """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1451  return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1452 
1453 
1454  def show(self, *args):
1455  """
1456  show(Histogram3D self, _ostream out)
1457  show(Histogram3D self)
1458  """
1459  return _IMP_statistics.Histogram3D_show(self, *args)
1460 
1461 
1462  def __str__(self):
1463  """__str__(Histogram3D self) -> std::string"""
1464  return _IMP_statistics.Histogram3D___str__(self)
1465 
1466 
1467  def __repr__(self):
1468  """__repr__(Histogram3D self) -> std::string"""
1469  return _IMP_statistics.Histogram3D___repr__(self)
1470 
1471 
1472  def __cmp__(self, arg2):
1473  """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1474  return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1475 
1476 
1477  def __eq__(self, arg2):
1478  """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1479  return _IMP_statistics.Histogram3D___eq__(self, arg2)
1480 
1481  __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1482  __del__ = lambda self: None
1483 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1484 Histogram3D_swigregister(Histogram3D)
1485 
1486 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1487  """Proxy of C++ IMP::statistics::HistogramD<(4)> class"""
1488  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1489 
1490  def __init__(self, *args):
1491  """
1492  __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1493  __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1494  """
1495  this = _IMP_statistics.new_Histogram4D(*args)
1496  try:
1497  self.this.append(this)
1498  except:
1499  self.this = this
1500 
1501  def add(self, x, weight=1):
1502  """
1503  add(Histogram4D self, Vector4D x, double weight=1)
1504  add(Histogram4D self, Vector4D x)
1505  """
1506  return _IMP_statistics.Histogram4D_add(self, x, weight)
1507 
1508 
1509  def get_total_count(self):
1510  """get_total_count(Histogram4D self) -> double"""
1511  return _IMP_statistics.Histogram4D_get_total_count(self)
1512 
1513 
1514  def get_frequencies(self):
1515  """get_frequencies(Histogram4D self) -> Histogram4D"""
1516  return _IMP_statistics.Histogram4D_get_frequencies(self)
1517 
1518 
1519  def get_probability_distribution_function(self):
1520  """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1521  return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1522 
1523 
1524  def get_counts(self):
1525  """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1526  return _IMP_statistics.Histogram4D_get_counts(self)
1527 
1528 
1529  def get_mean(self):
1530  """get_mean(Histogram4D self) -> Vector4D"""
1531  return _IMP_statistics.Histogram4D_get_mean(self)
1532 
1533 
1534  def get_dimension(self):
1535  """get_dimension(Histogram4D self) -> unsigned int"""
1536  return _IMP_statistics.Histogram4D_get_dimension(self)
1537 
1538 
1539  def get_standard_deviation(self, mean):
1540  """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1541  return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1542 
1543 
1544  def get_bounding_box(self):
1545  """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1546  return _IMP_statistics.Histogram4D_get_bounding_box(self)
1547 
1548 
1549  def get_minimum_and_maximum(self):
1550  """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1551  return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1552 
1553 
1554  def show(self, *args):
1555  """
1556  show(Histogram4D self, _ostream out)
1557  show(Histogram4D self)
1558  """
1559  return _IMP_statistics.Histogram4D_show(self, *args)
1560 
1561 
1562  def __str__(self):
1563  """__str__(Histogram4D self) -> std::string"""
1564  return _IMP_statistics.Histogram4D___str__(self)
1565 
1566 
1567  def __repr__(self):
1568  """__repr__(Histogram4D self) -> std::string"""
1569  return _IMP_statistics.Histogram4D___repr__(self)
1570 
1571 
1572  def __cmp__(self, arg2):
1573  """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1574  return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1575 
1576 
1577  def __eq__(self, arg2):
1578  """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1579  return _IMP_statistics.Histogram4D___eq__(self, arg2)
1580 
1581  __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1582  __del__ = lambda self: None
1583 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1584 Histogram4D_swigregister(Histogram4D)
1585 
1586 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1587  """Proxy of C++ IMP::statistics::HistogramD<(5)> class"""
1588  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1589 
1590  def __init__(self, *args):
1591  """
1592  __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1593  __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1594  """
1595  this = _IMP_statistics.new_Histogram5D(*args)
1596  try:
1597  self.this.append(this)
1598  except:
1599  self.this = this
1600 
1601  def add(self, x, weight=1):
1602  """
1603  add(Histogram5D self, Vector5D x, double weight=1)
1604  add(Histogram5D self, Vector5D x)
1605  """
1606  return _IMP_statistics.Histogram5D_add(self, x, weight)
1607 
1608 
1609  def get_total_count(self):
1610  """get_total_count(Histogram5D self) -> double"""
1611  return _IMP_statistics.Histogram5D_get_total_count(self)
1612 
1613 
1614  def get_frequencies(self):
1615  """get_frequencies(Histogram5D self) -> Histogram5D"""
1616  return _IMP_statistics.Histogram5D_get_frequencies(self)
1617 
1618 
1619  def get_probability_distribution_function(self):
1620  """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1621  return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1622 
1623 
1624  def get_counts(self):
1625  """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1626  return _IMP_statistics.Histogram5D_get_counts(self)
1627 
1628 
1629  def get_mean(self):
1630  """get_mean(Histogram5D self) -> Vector5D"""
1631  return _IMP_statistics.Histogram5D_get_mean(self)
1632 
1633 
1634  def get_dimension(self):
1635  """get_dimension(Histogram5D self) -> unsigned int"""
1636  return _IMP_statistics.Histogram5D_get_dimension(self)
1637 
1638 
1639  def get_standard_deviation(self, mean):
1640  """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1641  return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1642 
1643 
1644  def get_bounding_box(self):
1645  """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1646  return _IMP_statistics.Histogram5D_get_bounding_box(self)
1647 
1648 
1649  def get_minimum_and_maximum(self):
1650  """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1651  return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1652 
1653 
1654  def show(self, *args):
1655  """
1656  show(Histogram5D self, _ostream out)
1657  show(Histogram5D self)
1658  """
1659  return _IMP_statistics.Histogram5D_show(self, *args)
1660 
1661 
1662  def __str__(self):
1663  """__str__(Histogram5D self) -> std::string"""
1664  return _IMP_statistics.Histogram5D___str__(self)
1665 
1666 
1667  def __repr__(self):
1668  """__repr__(Histogram5D self) -> std::string"""
1669  return _IMP_statistics.Histogram5D___repr__(self)
1670 
1671 
1672  def __cmp__(self, arg2):
1673  """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1674  return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1675 
1676 
1677  def __eq__(self, arg2):
1678  """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1679  return _IMP_statistics.Histogram5D___eq__(self, arg2)
1680 
1681  __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1682  __del__ = lambda self: None
1683 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1684 Histogram5D_swigregister(Histogram5D)
1685 
1686 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1687  """Proxy of C++ IMP::statistics::HistogramD<(6)> class"""
1688  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1689 
1690  def __init__(self, *args):
1691  """
1692  __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1693  __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1694  """
1695  this = _IMP_statistics.new_Histogram6D(*args)
1696  try:
1697  self.this.append(this)
1698  except:
1699  self.this = this
1700 
1701  def add(self, x, weight=1):
1702  """
1703  add(Histogram6D self, Vector6D x, double weight=1)
1704  add(Histogram6D self, Vector6D x)
1705  """
1706  return _IMP_statistics.Histogram6D_add(self, x, weight)
1707 
1708 
1709  def get_total_count(self):
1710  """get_total_count(Histogram6D self) -> double"""
1711  return _IMP_statistics.Histogram6D_get_total_count(self)
1712 
1713 
1714  def get_frequencies(self):
1715  """get_frequencies(Histogram6D self) -> Histogram6D"""
1716  return _IMP_statistics.Histogram6D_get_frequencies(self)
1717 
1718 
1719  def get_probability_distribution_function(self):
1720  """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1721  return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1722 
1723 
1724  def get_counts(self):
1725  """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1726  return _IMP_statistics.Histogram6D_get_counts(self)
1727 
1728 
1729  def get_mean(self):
1730  """get_mean(Histogram6D self) -> Vector6D"""
1731  return _IMP_statistics.Histogram6D_get_mean(self)
1732 
1733 
1734  def get_dimension(self):
1735  """get_dimension(Histogram6D self) -> unsigned int"""
1736  return _IMP_statistics.Histogram6D_get_dimension(self)
1737 
1738 
1739  def get_standard_deviation(self, mean):
1740  """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1741  return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1742 
1743 
1744  def get_bounding_box(self):
1745  """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1746  return _IMP_statistics.Histogram6D_get_bounding_box(self)
1747 
1748 
1749  def get_minimum_and_maximum(self):
1750  """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1751  return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1752 
1753 
1754  def show(self, *args):
1755  """
1756  show(Histogram6D self, _ostream out)
1757  show(Histogram6D self)
1758  """
1759  return _IMP_statistics.Histogram6D_show(self, *args)
1760 
1761 
1762  def __str__(self):
1763  """__str__(Histogram6D self) -> std::string"""
1764  return _IMP_statistics.Histogram6D___str__(self)
1765 
1766 
1767  def __repr__(self):
1768  """__repr__(Histogram6D self) -> std::string"""
1769  return _IMP_statistics.Histogram6D___repr__(self)
1770 
1771 
1772  def __cmp__(self, arg2):
1773  """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1774  return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1775 
1776 
1777  def __eq__(self, arg2):
1778  """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1779  return _IMP_statistics.Histogram6D___eq__(self, arg2)
1780 
1781  __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1782  __del__ = lambda self: None
1783 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1784 Histogram6D_swigregister(Histogram6D)
1785 
1786 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1787  """Proxy of C++ IMP::statistics::HistogramD<(-1)> class"""
1788  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1789 
1790  def __init__(self, *args):
1791  """
1792  __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1793  __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1794  """
1795  this = _IMP_statistics.new_HistogramKD(*args)
1796  try:
1797  self.this.append(this)
1798  except:
1799  self.this = this
1800 
1801  def add(self, x, weight=1):
1802  """
1803  add(HistogramKD self, VectorKD x, double weight=1)
1804  add(HistogramKD self, VectorKD x)
1805  """
1806  return _IMP_statistics.HistogramKD_add(self, x, weight)
1807 
1808 
1809  def get_total_count(self):
1810  """get_total_count(HistogramKD self) -> double"""
1811  return _IMP_statistics.HistogramKD_get_total_count(self)
1812 
1813 
1814  def get_frequencies(self):
1815  """get_frequencies(HistogramKD self) -> HistogramKD"""
1816  return _IMP_statistics.HistogramKD_get_frequencies(self)
1817 
1818 
1819  def get_probability_distribution_function(self):
1820  """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1821  return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1822 
1823 
1824  def get_counts(self):
1825  """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1826  return _IMP_statistics.HistogramKD_get_counts(self)
1827 
1828 
1829  def get_mean(self):
1830  """get_mean(HistogramKD self) -> VectorKD"""
1831  return _IMP_statistics.HistogramKD_get_mean(self)
1832 
1833 
1834  def get_dimension(self):
1835  """get_dimension(HistogramKD self) -> unsigned int"""
1836  return _IMP_statistics.HistogramKD_get_dimension(self)
1837 
1838 
1839  def get_standard_deviation(self, mean):
1840  """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1841  return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1842 
1843 
1844  def get_bounding_box(self):
1845  """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1846  return _IMP_statistics.HistogramKD_get_bounding_box(self)
1847 
1848 
1849  def get_minimum_and_maximum(self):
1850  """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1851  return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1852 
1853 
1854  def show(self, *args):
1855  """
1856  show(HistogramKD self, _ostream out)
1857  show(HistogramKD self)
1858  """
1859  return _IMP_statistics.HistogramKD_show(self, *args)
1860 
1861 
1862  def __str__(self):
1863  """__str__(HistogramKD self) -> std::string"""
1864  return _IMP_statistics.HistogramKD___str__(self)
1865 
1866 
1867  def __repr__(self):
1868  """__repr__(HistogramKD self) -> std::string"""
1869  return _IMP_statistics.HistogramKD___repr__(self)
1870 
1871 
1872  def __cmp__(self, arg2):
1873  """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1874  return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1875 
1876 
1877  def __eq__(self, arg2):
1878  """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1879  return _IMP_statistics.HistogramKD___eq__(self, arg2)
1880 
1881  __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1882  __del__ = lambda self: None
1883 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1884 HistogramKD_swigregister(HistogramKD)
1885 
1886 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1887  """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class"""
1888  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1889  __repr__ = _swig_repr
1890 
1891  def __setitem__(self, *args):
1892  """
1893  __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1894  __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1895  """
1896  return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1897 
1898 
1899  def __getitem__(self, *args):
1900  """
1901  __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1902  __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1903  """
1904  return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1905 
1906 
1907  def __init__(self, *args):
1908  """
1909  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1910  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1911  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1912  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1913  __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1914  """
1915  this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1916  try:
1917  self.this.append(this)
1918  except:
1919  self.this = this
1920 
1921  def get_is_dense():
1922  """get_is_dense() -> bool"""
1923  return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1924 
1925  get_is_dense = staticmethod(get_is_dense)
1926 
1927  def show(self, *args):
1928  """
1929  show(_IntDenseGridStorageKD self, _ostream out)
1930  show(_IntDenseGridStorageKD self)
1931  """
1932  return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1933 
1934 
1935  def add_voxel(self, arg2, arg3):
1936  """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1937  return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1938 
1939 
1940  def get_all_voxels(self):
1941  """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1942  return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1943 
1944  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1945  __del__ = lambda self: None
1946 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1947 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1948 
1949 def _IntDenseGridStorageKD_get_is_dense():
1950  """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1951  return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1952 
1953 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1954  """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class"""
1955  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1956  __repr__ = _swig_repr
1957 
1958  def __setitem__(self, *args):
1959  """
1960  __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1961  __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1962  """
1963  return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1964 
1965 
1966  def __getitem__(self, *args):
1967  """
1968  __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1969  __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1970  """
1971  return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1972 
1973 
1974  def __init__(self, *args):
1975  """
1976  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1977  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1978  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1979  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1980  __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1981  """
1982  this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1983  try:
1984  self.this.append(this)
1985  except:
1986  self.this = this
1987 
1988  def get_is_dense():
1989  """get_is_dense() -> bool"""
1990  return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1991 
1992  get_is_dense = staticmethod(get_is_dense)
1993 
1994  def show(self, *args):
1995  """
1996  show(_FloatDenseGridStorageKD self, _ostream out)
1997  show(_FloatDenseGridStorageKD self)
1998  """
1999  return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
2000 
2001 
2002  def add_voxel(self, arg2, arg3):
2003  """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
2004  return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
2005 
2006 
2007  def get_all_voxels(self):
2008  """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
2009  return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
2010 
2011  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
2012  __del__ = lambda self: None
2013 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
2014 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
2015 
2016 def _FloatDenseGridStorageKD_get_is_dense():
2017  """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
2018  return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2019 
2020 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
2021  """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class"""
2022  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2023  __repr__ = _swig_repr
2024 
2025  def __init__(self, *args):
2026  """
2027  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb, double default_value) -> _HistogramCountsGridKD
2028  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
2029  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
2030  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
2031  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
2032  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
2033  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
2034  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
2035  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
2036  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
2037  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
2038  __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
2039  """
2040  this = _IMP_statistics.new__HistogramCountsGridKD(*args)
2041  try:
2042  self.this.append(this)
2043  except:
2044  self.this = this
2045 
2046  def show(self, *args):
2047  """
2048  show(_HistogramCountsGridKD self, _ostream out)
2049  show(_HistogramCountsGridKD self)
2050  """
2051  return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
2052 
2053 
2054  def __getitem__(self, *args):
2055  """
2056  __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
2057  __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
2058  """
2059  return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
2060 
2061 
2062  def __setitem__(self, *args):
2063  """
2064  __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
2065  __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2066  """
2067  return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2068 
2069 
2070  def add_voxel(self, pt, vt):
2071  """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2072  return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2073 
2074 
2075  def get_extended_index(self, index):
2076  """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2077  return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2078 
2079 
2080  def get_bounding_box(self, *args):
2081  """
2082  get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2083  get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2084  get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2085  """
2086  return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2087 
2088 
2089  def set_bounding_box(self, bb3):
2090  """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2091  return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2092 
2093 
2094  def get_nearest_index(self, pt):
2095  """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2096  return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2097 
2098 
2099  def get_nearest_extended_index(self, pt):
2100  """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2101  return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2102 
2103  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2104  __del__ = lambda self: None
2105 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2106 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2107 
2108 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2109  """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class"""
2110  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2111  __repr__ = _swig_repr
2112 
2113  def __setitem__(self, *args):
2114  """
2115  __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2116  __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2117  """
2118  return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2119 
2120 
2121  def __getitem__(self, *args):
2122  """
2123  __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2124  __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2125  """
2126  return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2127 
2128 
2129  def __init__(self, *args):
2130  """
2131  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2132  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2133  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2134  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2135  __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2136  """
2137  this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2138  try:
2139  self.this.append(this)
2140  except:
2141  self.this = this
2142 
2143  def get_is_dense():
2144  """get_is_dense() -> bool"""
2145  return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2146 
2147  get_is_dense = staticmethod(get_is_dense)
2148 
2149  def show(self, *args):
2150  """
2151  show(_IntDenseGridStorage1D self, _ostream out)
2152  show(_IntDenseGridStorage1D self)
2153  """
2154  return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2155 
2156 
2157  def add_voxel(self, arg2, arg3):
2158  """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2159  return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2160 
2161 
2162  def get_all_voxels(self):
2163  """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2164  return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2165 
2166  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2167  __del__ = lambda self: None
2168 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2169 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2170 
2171 def _IntDenseGridStorage1D_get_is_dense():
2172  """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2173  return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2174 
2175 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2176  """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class"""
2177  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2178  __repr__ = _swig_repr
2179 
2180  def __setitem__(self, *args):
2181  """
2182  __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2183  __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2184  """
2185  return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2186 
2187 
2188  def __getitem__(self, *args):
2189  """
2190  __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2191  __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2192  """
2193  return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2194 
2195 
2196  def __init__(self, *args):
2197  """
2198  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2199  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2200  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2201  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2202  __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2203  """
2204  this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2205  try:
2206  self.this.append(this)
2207  except:
2208  self.this = this
2209 
2210  def get_is_dense():
2211  """get_is_dense() -> bool"""
2212  return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2213 
2214  get_is_dense = staticmethod(get_is_dense)
2215 
2216  def show(self, *args):
2217  """
2218  show(_FloatDenseGridStorage1D self, _ostream out)
2219  show(_FloatDenseGridStorage1D self)
2220  """
2221  return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2222 
2223 
2224  def add_voxel(self, arg2, arg3):
2225  """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2226  return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2227 
2228 
2229  def get_all_voxels(self):
2230  """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2231  return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2232 
2233  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2234  __del__ = lambda self: None
2235 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2236 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2237 
2238 def _FloatDenseGridStorage1D_get_is_dense():
2239  """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2240  return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2241 
2242 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2243  """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class"""
2244  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2245  __repr__ = _swig_repr
2246 
2247  def __init__(self, *args):
2248  """
2249  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb, double default_value) -> _HistogramCountsGrid1D
2250  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2251  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2252  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2253  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2254  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2255  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2256  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2257  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2258  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2259  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2260  __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2261  """
2262  this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2263  try:
2264  self.this.append(this)
2265  except:
2266  self.this = this
2267 
2268  def show(self, *args):
2269  """
2270  show(_HistogramCountsGrid1D self, _ostream out)
2271  show(_HistogramCountsGrid1D self)
2272  """
2273  return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2274 
2275 
2276  def __getitem__(self, *args):
2277  """
2278  __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2279  __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2280  """
2281  return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2282 
2283 
2284  def __setitem__(self, *args):
2285  """
2286  __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2287  __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2288  """
2289  return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2290 
2291 
2292  def add_voxel(self, pt, vt):
2293  """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2294  return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2295 
2296 
2297  def get_extended_index(self, index):
2298  """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2299  return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2300 
2301 
2302  def get_bounding_box(self, *args):
2303  """
2304  get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2305  get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2306  get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2307  """
2308  return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2309 
2310 
2311  def set_bounding_box(self, bb3):
2312  """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2313  return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2314 
2315 
2316  def get_nearest_index(self, pt):
2317  """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2318  return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2319 
2320 
2321  def get_nearest_extended_index(self, pt):
2322  """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2323  return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2324 
2325  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2326  __del__ = lambda self: None
2327 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2328 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2329 
2330 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2331  """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class"""
2332  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2333  __repr__ = _swig_repr
2334 
2335  def __setitem__(self, *args):
2336  """
2337  __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2338  __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2339  """
2340  return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2341 
2342 
2343  def __getitem__(self, *args):
2344  """
2345  __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2346  __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2347  """
2348  return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2349 
2350 
2351  def __init__(self, *args):
2352  """
2353  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2354  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2355  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2356  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2357  __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2358  """
2359  this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2360  try:
2361  self.this.append(this)
2362  except:
2363  self.this = this
2364 
2365  def get_is_dense():
2366  """get_is_dense() -> bool"""
2367  return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2368 
2369  get_is_dense = staticmethod(get_is_dense)
2370 
2371  def show(self, *args):
2372  """
2373  show(_IntDenseGridStorage2D self, _ostream out)
2374  show(_IntDenseGridStorage2D self)
2375  """
2376  return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2377 
2378 
2379  def add_voxel(self, arg2, arg3):
2380  """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2381  return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2382 
2383 
2384  def get_all_voxels(self):
2385  """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2386  return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2387 
2388  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2389  __del__ = lambda self: None
2390 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2391 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2392 
2393 def _IntDenseGridStorage2D_get_is_dense():
2394  """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2395  return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2396 
2397 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2398  """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class"""
2399  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2400  __repr__ = _swig_repr
2401 
2402  def __setitem__(self, *args):
2403  """
2404  __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2405  __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2406  """
2407  return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2408 
2409 
2410  def __getitem__(self, *args):
2411  """
2412  __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2413  __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2414  """
2415  return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2416 
2417 
2418  def __init__(self, *args):
2419  """
2420  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2421  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2422  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2423  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2424  __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2425  """
2426  this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2427  try:
2428  self.this.append(this)
2429  except:
2430  self.this = this
2431 
2432  def get_is_dense():
2433  """get_is_dense() -> bool"""
2434  return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2435 
2436  get_is_dense = staticmethod(get_is_dense)
2437 
2438  def show(self, *args):
2439  """
2440  show(_FloatDenseGridStorage2D self, _ostream out)
2441  show(_FloatDenseGridStorage2D self)
2442  """
2443  return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2444 
2445 
2446  def add_voxel(self, arg2, arg3):
2447  """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2448  return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2449 
2450 
2451  def get_all_voxels(self):
2452  """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2453  return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2454 
2455  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2456  __del__ = lambda self: None
2457 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2458 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2459 
2460 def _FloatDenseGridStorage2D_get_is_dense():
2461  """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2462  return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2463 
2464 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2465  """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class"""
2466  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2467  __repr__ = _swig_repr
2468 
2469  def __init__(self, *args):
2470  """
2471  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb, double default_value) -> _HistogramCountsGrid2D
2472  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2473  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2474  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2475  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2476  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2477  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2478  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2479  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2480  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2481  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2482  __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2483  """
2484  this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2485  try:
2486  self.this.append(this)
2487  except:
2488  self.this = this
2489 
2490  def show(self, *args):
2491  """
2492  show(_HistogramCountsGrid2D self, _ostream out)
2493  show(_HistogramCountsGrid2D self)
2494  """
2495  return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2496 
2497 
2498  def __getitem__(self, *args):
2499  """
2500  __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2501  __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2502  """
2503  return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2504 
2505 
2506  def __setitem__(self, *args):
2507  """
2508  __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2509  __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2510  """
2511  return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2512 
2513 
2514  def add_voxel(self, pt, vt):
2515  """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2516  return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2517 
2518 
2519  def get_extended_index(self, index):
2520  """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2521  return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2522 
2523 
2524  def get_bounding_box(self, *args):
2525  """
2526  get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2527  get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2528  get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2529  """
2530  return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2531 
2532 
2533  def set_bounding_box(self, bb3):
2534  """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2535  return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2536 
2537 
2538  def get_nearest_index(self, pt):
2539  """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2540  return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2541 
2542 
2543  def get_nearest_extended_index(self, pt):
2544  """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2545  return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2546 
2547  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2548  __del__ = lambda self: None
2549 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2550 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2551 
2552 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2553  """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class"""
2554  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2555  __repr__ = _swig_repr
2556 
2557  def __setitem__(self, *args):
2558  """
2559  __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2560  __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2561  """
2562  return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2563 
2564 
2565  def __getitem__(self, *args):
2566  """
2567  __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2568  __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2569  """
2570  return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2571 
2572 
2573  def __init__(self, *args):
2574  """
2575  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2576  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2577  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2578  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2579  __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2580  """
2581  this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2582  try:
2583  self.this.append(this)
2584  except:
2585  self.this = this
2586 
2587  def get_is_dense():
2588  """get_is_dense() -> bool"""
2589  return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2590 
2591  get_is_dense = staticmethod(get_is_dense)
2592 
2593  def show(self, *args):
2594  """
2595  show(_IntDenseGridStorage3D self, _ostream out)
2596  show(_IntDenseGridStorage3D self)
2597  """
2598  return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2599 
2600 
2601  def add_voxel(self, arg2, arg3):
2602  """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2603  return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2604 
2605 
2606  def get_all_voxels(self):
2607  """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2608  return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2609 
2610  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2611  __del__ = lambda self: None
2612 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2613 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2614 
2615 def _IntDenseGridStorage3D_get_is_dense():
2616  """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2617  return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2618 
2619 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2620  """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class"""
2621  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2622  __repr__ = _swig_repr
2623 
2624  def __setitem__(self, *args):
2625  """
2626  __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2627  __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2628  """
2629  return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2630 
2631 
2632  def __getitem__(self, *args):
2633  """
2634  __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2635  __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2636  """
2637  return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2638 
2639 
2640  def __init__(self, *args):
2641  """
2642  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2643  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2644  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2645  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2646  __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2647  """
2648  this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2649  try:
2650  self.this.append(this)
2651  except:
2652  self.this = this
2653 
2654  def get_is_dense():
2655  """get_is_dense() -> bool"""
2656  return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2657 
2658  get_is_dense = staticmethod(get_is_dense)
2659 
2660  def show(self, *args):
2661  """
2662  show(_FloatDenseGridStorage3D self, _ostream out)
2663  show(_FloatDenseGridStorage3D self)
2664  """
2665  return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2666 
2667 
2668  def add_voxel(self, arg2, arg3):
2669  """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2670  return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2671 
2672 
2673  def get_all_voxels(self):
2674  """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2675  return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2676 
2677  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2678  __del__ = lambda self: None
2679 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2680 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2681 
2682 def _FloatDenseGridStorage3D_get_is_dense():
2683  """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2684  return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2685 
2686 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2687  """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class"""
2688  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2689  __repr__ = _swig_repr
2690 
2691  def __init__(self, *args):
2692  """
2693  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb, double default_value) -> _HistogramCountsGrid3D
2694  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2695  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2696  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2697  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2698  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2699  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2700  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2701  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2702  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2703  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2704  __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2705  """
2706  this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2707  try:
2708  self.this.append(this)
2709  except:
2710  self.this = this
2711 
2712  def show(self, *args):
2713  """
2714  show(_HistogramCountsGrid3D self, _ostream out)
2715  show(_HistogramCountsGrid3D self)
2716  """
2717  return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2718 
2719 
2720  def __getitem__(self, *args):
2721  """
2722  __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2723  __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2724  """
2725  return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2726 
2727 
2728  def __setitem__(self, *args):
2729  """
2730  __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2731  __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2732  """
2733  return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2734 
2735 
2736  def add_voxel(self, pt, vt):
2737  """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2738  return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2739 
2740 
2741  def get_extended_index(self, index):
2742  """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2743  return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2744 
2745 
2746  def get_bounding_box(self, *args):
2747  """
2748  get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2749  get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2750  get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2751  """
2752  return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2753 
2754 
2755  def set_bounding_box(self, bb3):
2756  """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2757  return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2758 
2759 
2760  def get_nearest_index(self, pt):
2761  """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2762  return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2763 
2764 
2765  def get_nearest_extended_index(self, pt):
2766  """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2767  return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2768 
2769  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2770  __del__ = lambda self: None
2771 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2772 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2773 
2774 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2775  """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class"""
2776  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2777  __repr__ = _swig_repr
2778 
2779  def __setitem__(self, *args):
2780  """
2781  __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2782  __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2783  """
2784  return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2785 
2786 
2787  def __getitem__(self, *args):
2788  """
2789  __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2790  __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2791  """
2792  return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2793 
2794 
2795  def __init__(self, *args):
2796  """
2797  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2798  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2799  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2800  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2801  __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2802  """
2803  this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2804  try:
2805  self.this.append(this)
2806  except:
2807  self.this = this
2808 
2809  def get_is_dense():
2810  """get_is_dense() -> bool"""
2811  return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2812 
2813  get_is_dense = staticmethod(get_is_dense)
2814 
2815  def show(self, *args):
2816  """
2817  show(_IntDenseGridStorage4D self, _ostream out)
2818  show(_IntDenseGridStorage4D self)
2819  """
2820  return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2821 
2822 
2823  def add_voxel(self, arg2, arg3):
2824  """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2825  return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2826 
2827 
2828  def get_all_voxels(self):
2829  """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2830  return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2831 
2832  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2833  __del__ = lambda self: None
2834 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2835 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2836 
2837 def _IntDenseGridStorage4D_get_is_dense():
2838  """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2839  return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2840 
2841 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2842  """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class"""
2843  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2844  __repr__ = _swig_repr
2845 
2846  def __setitem__(self, *args):
2847  """
2848  __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2849  __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2850  """
2851  return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2852 
2853 
2854  def __getitem__(self, *args):
2855  """
2856  __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2857  __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2858  """
2859  return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2860 
2861 
2862  def __init__(self, *args):
2863  """
2864  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2865  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2866  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2867  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2868  __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2869  """
2870  this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2871  try:
2872  self.this.append(this)
2873  except:
2874  self.this = this
2875 
2876  def get_is_dense():
2877  """get_is_dense() -> bool"""
2878  return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2879 
2880  get_is_dense = staticmethod(get_is_dense)
2881 
2882  def show(self, *args):
2883  """
2884  show(_FloatDenseGridStorage4D self, _ostream out)
2885  show(_FloatDenseGridStorage4D self)
2886  """
2887  return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2888 
2889 
2890  def add_voxel(self, arg2, arg3):
2891  """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2892  return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2893 
2894 
2895  def get_all_voxels(self):
2896  """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2897  return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2898 
2899  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2900  __del__ = lambda self: None
2901 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2902 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2903 
2904 def _FloatDenseGridStorage4D_get_is_dense():
2905  """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2906  return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2907 
2908 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2909  """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class"""
2910  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2911  __repr__ = _swig_repr
2912 
2913  def __init__(self, *args):
2914  """
2915  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb, double default_value) -> _HistogramCountsGrid4D
2916  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2917  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2918  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2919  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2920  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2921  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2922  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2923  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2924  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2925  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2926  __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2927  """
2928  this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2929  try:
2930  self.this.append(this)
2931  except:
2932  self.this = this
2933 
2934  def show(self, *args):
2935  """
2936  show(_HistogramCountsGrid4D self, _ostream out)
2937  show(_HistogramCountsGrid4D self)
2938  """
2939  return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2940 
2941 
2942  def __getitem__(self, *args):
2943  """
2944  __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2945  __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2946  """
2947  return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2948 
2949 
2950  def __setitem__(self, *args):
2951  """
2952  __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2953  __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2954  """
2955  return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2956 
2957 
2958  def add_voxel(self, pt, vt):
2959  """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2960  return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2961 
2962 
2963  def get_extended_index(self, index):
2964  """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2965  return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2966 
2967 
2968  def get_bounding_box(self, *args):
2969  """
2970  get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2971  get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2972  get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2973  """
2974  return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2975 
2976 
2977  def set_bounding_box(self, bb3):
2978  """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2979  return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2980 
2981 
2982  def get_nearest_index(self, pt):
2983  """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2984  return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2985 
2986 
2987  def get_nearest_extended_index(self, pt):
2988  """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2989  return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2990 
2991  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2992  __del__ = lambda self: None
2993 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
2994 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2995 
2996 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2997  """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class"""
2998  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2999  __repr__ = _swig_repr
3000 
3001  def __setitem__(self, *args):
3002  """
3003  __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
3004  __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
3005  """
3006  return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
3007 
3008 
3009  def __getitem__(self, *args):
3010  """
3011  __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
3012  __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
3013  """
3014  return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
3015 
3016 
3017  def __init__(self, *args):
3018  """
3019  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
3020  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
3021  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
3022  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
3023  __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
3024  """
3025  this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
3026  try:
3027  self.this.append(this)
3028  except:
3029  self.this = this
3030 
3031  def get_is_dense():
3032  """get_is_dense() -> bool"""
3033  return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3034 
3035  get_is_dense = staticmethod(get_is_dense)
3036 
3037  def show(self, *args):
3038  """
3039  show(_IntDenseGridStorage5D self, _ostream out)
3040  show(_IntDenseGridStorage5D self)
3041  """
3042  return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
3043 
3044 
3045  def add_voxel(self, arg2, arg3):
3046  """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
3047  return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
3048 
3049 
3050  def get_all_voxels(self):
3051  """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
3052  return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3053 
3054  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3055  __del__ = lambda self: None
3056 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3057 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3058 
3059 def _IntDenseGridStorage5D_get_is_dense():
3060  """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3061  return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3062 
3063 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3064  """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class"""
3065  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3066  __repr__ = _swig_repr
3067 
3068  def __setitem__(self, *args):
3069  """
3070  __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3071  __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3072  """
3073  return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3074 
3075 
3076  def __getitem__(self, *args):
3077  """
3078  __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3079  __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3080  """
3081  return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3082 
3083 
3084  def __init__(self, *args):
3085  """
3086  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3087  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3088  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3089  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3090  __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3091  """
3092  this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3093  try:
3094  self.this.append(this)
3095  except:
3096  self.this = this
3097 
3098  def get_is_dense():
3099  """get_is_dense() -> bool"""
3100  return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3101 
3102  get_is_dense = staticmethod(get_is_dense)
3103 
3104  def show(self, *args):
3105  """
3106  show(_FloatDenseGridStorage5D self, _ostream out)
3107  show(_FloatDenseGridStorage5D self)
3108  """
3109  return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3110 
3111 
3112  def add_voxel(self, arg2, arg3):
3113  """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3114  return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3115 
3116 
3117  def get_all_voxels(self):
3118  """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3119  return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3120 
3121  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3122  __del__ = lambda self: None
3123 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3124 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3125 
3126 def _FloatDenseGridStorage5D_get_is_dense():
3127  """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3128  return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3129 
3130 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3131  """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class"""
3132  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3133  __repr__ = _swig_repr
3134 
3135  def __init__(self, *args):
3136  """
3137  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb, double default_value) -> _HistogramCountsGrid5D
3138  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3139  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3140  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3141  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3142  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3143  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3144  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3145  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3146  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3147  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3148  __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3149  """
3150  this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3151  try:
3152  self.this.append(this)
3153  except:
3154  self.this = this
3155 
3156  def show(self, *args):
3157  """
3158  show(_HistogramCountsGrid5D self, _ostream out)
3159  show(_HistogramCountsGrid5D self)
3160  """
3161  return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3162 
3163 
3164  def __getitem__(self, *args):
3165  """
3166  __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3167  __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3168  """
3169  return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3170 
3171 
3172  def __setitem__(self, *args):
3173  """
3174  __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3175  __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3176  """
3177  return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3178 
3179 
3180  def add_voxel(self, pt, vt):
3181  """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3182  return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3183 
3184 
3185  def get_extended_index(self, index):
3186  """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3187  return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3188 
3189 
3190  def get_bounding_box(self, *args):
3191  """
3192  get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3193  get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3194  get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3195  """
3196  return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3197 
3198 
3199  def set_bounding_box(self, bb3):
3200  """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3201  return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3202 
3203 
3204  def get_nearest_index(self, pt):
3205  """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3206  return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3207 
3208 
3209  def get_nearest_extended_index(self, pt):
3210  """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3211  return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3212 
3213  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3214  __del__ = lambda self: None
3215 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3216 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3217 
3218 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3219  """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class"""
3220  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3221  __repr__ = _swig_repr
3222 
3223  def __setitem__(self, *args):
3224  """
3225  __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3226  __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3227  """
3228  return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3229 
3230 
3231  def __getitem__(self, *args):
3232  """
3233  __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3234  __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3235  """
3236  return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3237 
3238 
3239  def __init__(self, *args):
3240  """
3241  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3242  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3243  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3244  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3245  __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3246  """
3247  this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3248  try:
3249  self.this.append(this)
3250  except:
3251  self.this = this
3252 
3253  def get_is_dense():
3254  """get_is_dense() -> bool"""
3255  return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3256 
3257  get_is_dense = staticmethod(get_is_dense)
3258 
3259  def show(self, *args):
3260  """
3261  show(_IntDenseGridStorage6D self, _ostream out)
3262  show(_IntDenseGridStorage6D self)
3263  """
3264  return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3265 
3266 
3267  def add_voxel(self, arg2, arg3):
3268  """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3269  return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3270 
3271 
3272  def get_all_voxels(self):
3273  """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3274  return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3275 
3276  __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3277  __del__ = lambda self: None
3278 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3279 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3280 
3281 def _IntDenseGridStorage6D_get_is_dense():
3282  """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3283  return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3284 
3285 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3286  """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class"""
3287  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3288  __repr__ = _swig_repr
3289 
3290  def __setitem__(self, *args):
3291  """
3292  __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3293  __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3294  """
3295  return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3296 
3297 
3298  def __getitem__(self, *args):
3299  """
3300  __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3301  __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3302  """
3303  return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3304 
3305 
3306  def __init__(self, *args):
3307  """
3308  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3309  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3310  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3311  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3312  __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3313  """
3314  this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3315  try:
3316  self.this.append(this)
3317  except:
3318  self.this = this
3319 
3320  def get_is_dense():
3321  """get_is_dense() -> bool"""
3322  return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3323 
3324  get_is_dense = staticmethod(get_is_dense)
3325 
3326  def show(self, *args):
3327  """
3328  show(_FloatDenseGridStorage6D self, _ostream out)
3329  show(_FloatDenseGridStorage6D self)
3330  """
3331  return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3332 
3333 
3334  def add_voxel(self, arg2, arg3):
3335  """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3336  return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3337 
3338 
3339  def get_all_voxels(self):
3340  """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3341  return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3342 
3343  __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3344  __del__ = lambda self: None
3345 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3346 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3347 
3348 def _FloatDenseGridStorage6D_get_is_dense():
3349  """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3350  return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3351 
3352 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3353  """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class"""
3354  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3355  __repr__ = _swig_repr
3356 
3357  def __init__(self, *args):
3358  """
3359  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb, double default_value) -> _HistogramCountsGrid6D
3360  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3361  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3362  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3363  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3364  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3365  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3366  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3367  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3368  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3369  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3370  __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3371  """
3372  this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3373  try:
3374  self.this.append(this)
3375  except:
3376  self.this = this
3377 
3378  def show(self, *args):
3379  """
3380  show(_HistogramCountsGrid6D self, _ostream out)
3381  show(_HistogramCountsGrid6D self)
3382  """
3383  return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3384 
3385 
3386  def __getitem__(self, *args):
3387  """
3388  __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3389  __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3390  """
3391  return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3392 
3393 
3394  def __setitem__(self, *args):
3395  """
3396  __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3397  __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3398  """
3399  return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3400 
3401 
3402  def add_voxel(self, pt, vt):
3403  """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3404  return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3405 
3406 
3407  def get_extended_index(self, index):
3408  """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3409  return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3410 
3411 
3412  def get_bounding_box(self, *args):
3413  """
3414  get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3415  get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3416  get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3417  """
3418  return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3419 
3420 
3421  def set_bounding_box(self, bb3):
3422  """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3423  return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3424 
3425 
3426  def get_nearest_index(self, pt):
3427  """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3428  return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3429 
3430 
3431  def get_nearest_extended_index(self, pt):
3432  """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3433  return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3434 
3435  __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3436  __del__ = lambda self: None
3437 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3438 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3439 
3440 
3441 from . import _histogram
3442 show_histogram= _histogram.show_histogram
3443 
3444 
3445 def get_module_version():
3446  """get_module_version() -> std::string const"""
3447  return _IMP_statistics.get_module_version()
3448 
3449 def get_example_path(fname):
3450  """get_example_path(std::string fname) -> std::string"""
3451  return _IMP_statistics.get_example_path(fname)
3452 
3453 def get_data_path(fname):
3454  """get_data_path(std::string fname) -> std::string"""
3455  return _IMP_statistics.get_data_path(fname)
3456 
3457 from . import _version_check
3458 _version_check.check_version(get_module_version())
3459 __version__ = get_module_version()
3460 
3461 
3462 
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:106
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:28
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)