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