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