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