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