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