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