11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_statistics', [dirname(__file__)])
20 import _IMP_statistics
21 return _IMP_statistics
24 _mod = imp.load_module(
'_IMP_statistics', fp, pathname, description)
28 _IMP_statistics = swig_import_helper()
29 del swig_import_helper
31 import _IMP_statistics
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
72 def _swig_setattr_nondynamic_method(set):
73 def set_attr(self,name,value):
74 if (name ==
"thisown"):
return self.this.own(value)
75 if hasattr(self,name)
or (name ==
"this"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
89 class IMP_STATISTICS_SwigPyIterator(object):
90 """Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class"""
91 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
92 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
94 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
98 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
102 incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
103 incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
105 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
109 decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
110 decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
112 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
114 def distance(self, *args):
115 """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
116 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, *args)
118 def equal(self, *args):
119 """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
120 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, *args)
123 """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
124 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
127 """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
128 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
131 """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
132 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
135 """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
136 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
138 def advance(self, *args):
139 """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
140 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, *args)
142 def __eq__(self, *args):
143 """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
144 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, *args)
146 def __ne__(self, *args):
147 """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
148 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, *args)
150 def __iadd__(self, *args):
151 """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
152 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, *args)
154 def __isub__(self, *args):
155 """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
156 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, *args)
158 def __add__(self, *args):
159 """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
160 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, *args)
162 def __sub__(self, *args):
164 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
165 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
169 def __iter__(self):
return self
170 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
171 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
178 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
179 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
180 IMP_SILENT = _IMP_statistics.IMP_SILENT
181 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
182 IMP_TERSE = _IMP_statistics.IMP_TERSE
183 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
184 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
185 IMP_NONE = _IMP_statistics.IMP_NONE
186 IMP_USAGE = _IMP_statistics.IMP_USAGE
187 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_statistics.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_statistics.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_statistics.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_statistics.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_statistics.IMPBASE_SHOW_WARNINGS
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 """Proxy of C++ std::ostream class"""
224 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
225 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
226 __repr__ = _swig_repr
227 def write(self, *args):
228 """write(_ostream self, char const * osa_buf)"""
229 return _IMP_statistics._ostream_write(self, *args)
231 _ostream_swigregister = _IMP_statistics._ostream_swigregister
232 _ostream_swigregister(_ostream)
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_statistics.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_statistics.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_statistics.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
260 IMP_STATISTICS_HAS_IMP_BASE = _IMP_statistics.IMP_STATISTICS_HAS_IMP_BASE
261 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
262 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
263 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
264 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
265 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
266 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
267 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
269 _plural_types.append(
"Histogram1Ds")
270 _value_types.append(
"Histogram1D")
273 _plural_types.append(
"Histogram2Ds")
274 _value_types.append(
"Histogram2D")
277 _plural_types.append(
"Histogram3Ds")
278 _value_types.append(
"Histogram3D")
281 _plural_types.append(
"Histogram4Ds")
282 _value_types.append(
"Histogram4D")
285 _plural_types.append(
"Histogram5Ds")
286 _value_types.append(
"Histogram5D")
289 _plural_types.append(
"Histogram6Ds")
290 _value_types.append(
"Histogram6D")
293 _plural_types.append(
"Histogram1Ds")
294 _value_types.append(
"HistogramD<1>")
297 _plural_types.append(
"Histogram2Ds")
298 _value_types.append(
"HistogramD<2>")
301 _plural_types.append(
"Histogram3Ds")
302 _value_types.append(
"HistogramD<3>")
305 _plural_types.append(
"Histogram4Ds")
306 _value_types.append(
"HistogramD<4>")
309 _plural_types.append(
"Histogram5Ds")
310 _value_types.append(
"HistogramD<5>")
313 _plural_types.append(
"Histogram6Ds")
314 _value_types.append(
"HistogramD<6>")
317 _plural_types.append(
"HistogramKDs")
318 _value_types.append(
"HistogramKD")
321 _plural_types.append(
"HistogramKDs")
322 _value_types.append(
"HistogramD<-1>")
324 _object_types.append(
"PartitionalClustering")
327 def _object_cast_to_PartitionalClustering(*args):
328 """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
329 return _IMP_statistics._object_cast_to_PartitionalClustering(*args)
330 _object_types.append(
"PartitionalClusteringWithCenter")
333 def _object_cast_to_PartitionalClusteringWithCenter(*args):
334 """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
335 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(*args)
336 _object_types.append(
"Embedding")
339 def _object_cast_to_Embedding(*args):
340 """_object_cast_to_Embedding(Object o) -> Embedding"""
341 return _IMP_statistics._object_cast_to_Embedding(*args)
342 _object_types.append(
"ConfigurationSetXYZEmbedding")
345 def _object_cast_to_ConfigurationSetXYZEmbedding(*args):
346 """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
347 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(*args)
348 _object_types.append(
"VectorDEmbedding")
351 def _object_cast_to_VectorDEmbedding(*args):
352 """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
353 return _IMP_statistics._object_cast_to_VectorDEmbedding(*args)
354 _object_types.append(
"ParticleEmbedding")
357 def _object_cast_to_ParticleEmbedding(*args):
358 """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
359 return _IMP_statistics._object_cast_to_ParticleEmbedding(*args)
360 _object_types.append(
"Metric")
363 def _object_cast_to_Metric(*args):
364 """_object_cast_to_Metric(Object o) -> Metric"""
365 return _IMP_statistics._object_cast_to_Metric(*args)
366 _object_types.append(
"EuclideanMetric")
369 def _object_cast_to_EuclideanMetric(*args):
370 """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
371 return _IMP_statistics._object_cast_to_EuclideanMetric(*args)
372 _object_types.append(
"ConfigurationSetRMSDMetric")
375 def _object_cast_to_ConfigurationSetRMSDMetric(*args):
376 """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
377 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(*args)
378 _object_types.append(
"RecursivePartitionalClusteringMetric")
381 def _object_cast_to_RecursivePartitionalClusteringMetric(*args):
382 """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
383 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(*args)
384 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
387 def _object_cast_to_RecursivePartitionalClusteringEmbedding(*args):
388 """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
389 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(*args)
390 _object_types.append(
"ChiSquareMetric")
393 def _object_cast_to_ChiSquareMetric(*args):
394 """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
395 return _IMP_statistics._object_cast_to_ChiSquareMetric(*args)
397 """Proxy of C++ IMP::statistics::PartitionalClustering class"""
398 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
399 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
400 def get_number_of_clusters(self):
401 """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
402 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
404 def get_cluster(self, *args):
405 """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
406 return _IMP_statistics.PartitionalClustering_get_cluster(self, *args)
408 def get_cluster_representative(self, *args):
409 """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
410 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, *args)
412 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
413 __del__ =
lambda self :
None;
415 """__str__(PartitionalClustering self) -> std::string"""
416 return _IMP_statistics.PartitionalClustering___str__(self)
419 """__repr__(PartitionalClustering self) -> std::string"""
420 return _IMP_statistics.PartitionalClustering___repr__(self)
423 return _object_cast_to_PartitionalClustering(o)
424 get_from = staticmethod(get_from)
426 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
427 PartitionalClustering_swigregister(PartitionalClustering)
431 """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
432 return _IMP_statistics.validate_partitional_clustering(*args)
434 """Proxy of C++ IMP::statistics::Embedding class"""
435 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
436 def __init__(self, *args):
437 """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
438 if self.__class__ == Embedding:
442 this = _IMP_statistics.new_Embedding(_self, *args)
443 try: self.this.append(this)
444 except: self.this = this
445 if self.__class__ != Embedding:
447 IMP.base._director_objects.register(self)
451 def do_get_weight(self, *args):
452 """do_get_weight(Embedding self, unsigned int i) -> double"""
453 return _IMP_statistics.Embedding_do_get_weight(self, *args)
455 def get_point(self, *args):
456 """get_point(Embedding self, unsigned int i) -> VectorKD"""
457 return _IMP_statistics.Embedding_get_point(self, *args)
459 def get_number_of_items(self):
460 """get_number_of_items(Embedding self) -> unsigned int"""
461 return _IMP_statistics.Embedding_get_number_of_items(self)
463 def get_weight(self, *args):
464 """get_weight(Embedding self, unsigned int i) -> double"""
465 return _IMP_statistics.Embedding_get_weight(self, *args)
467 def get_points(self):
468 """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
469 return _IMP_statistics.Embedding_get_points(self)
472 """__str__(Embedding self) -> std::string"""
473 return _IMP_statistics.Embedding___str__(self)
476 """__repr__(Embedding self) -> std::string"""
477 return _IMP_statistics.Embedding___repr__(self)
480 return _object_cast_to_Embedding(o)
481 get_from = staticmethod(get_from)
483 def get_type_name(self):
484 return self.__class__.__name__
485 def do_show(self, out):
487 def get_version_info(self):
488 if"IMP::statistics" ==
"IMP":
489 return VersionInfo(
"python",
"0")
491 return IMP.VersionInfo(
"python",
"0")
493 return _object_cast_to_Embedding(o)
494 get_from = staticmethod(get_from)
496 __swig_destroy__ = _IMP_statistics.delete_Embedding
497 __del__ =
lambda self :
None;
498 def __disown__(self):
500 _IMP_statistics.disown_Embedding(self)
501 return weakref_proxy(self)
502 def do_destroy(self):
503 """do_destroy(Embedding self)"""
504 return _IMP_statistics.Embedding_do_destroy(self)
506 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
507 Embedding_swigregister(Embedding)
510 """Proxy of C++ IMP::statistics::Metric class"""
511 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
512 def __init__(self, *args):
513 """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
514 if self.__class__ == Metric:
518 this = _IMP_statistics.new_Metric(_self, *args)
519 try: self.this.append(this)
520 except: self.this = this
521 if self.__class__ != Metric:
523 IMP.base._director_objects.register(self)
527 def do_get_weight(self, *args):
528 """do_get_weight(Metric self, unsigned int i) -> double"""
529 return _IMP_statistics.Metric_do_get_weight(self, *args)
532 """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
533 return _IMP_statistics.Metric_get_distance(self, *args)
535 def get_weight(self, *args):
536 """get_weight(Metric self, unsigned int i) -> double"""
537 return _IMP_statistics.Metric_get_weight(self, *args)
539 def get_number_of_items(self):
540 """get_number_of_items(Metric self) -> unsigned int"""
541 return _IMP_statistics.Metric_get_number_of_items(self)
543 __swig_destroy__ = _IMP_statistics.delete_Metric
544 __del__ =
lambda self :
None;
546 """__str__(Metric self) -> std::string"""
547 return _IMP_statistics.Metric___str__(self)
550 """__repr__(Metric self) -> std::string"""
551 return _IMP_statistics.Metric___repr__(self)
554 return _object_cast_to_Metric(o)
555 get_from = staticmethod(get_from)
557 def get_type_name(self):
558 return self.__class__.__name__
559 def do_show(self, out):
561 def get_version_info(self):
562 if"IMP::statistics" ==
"IMP":
563 return VersionInfo(
"python",
"0")
565 return IMP.VersionInfo(
"python",
"0")
567 return _object_cast_to_Metric(o)
568 get_from = staticmethod(get_from)
570 def __disown__(self):
572 _IMP_statistics.disown_Metric(self)
573 return weakref_proxy(self)
574 def do_destroy(self):
575 """do_destroy(Metric self)"""
576 return _IMP_statistics.Metric_do_destroy(self)
578 Metric_swigregister = _IMP_statistics.Metric_swigregister
579 Metric_swigregister(Metric)
581 class ChiSquareMetric(Metric):
582 """Proxy of C++ IMP::statistics::ChiSquareMetric class"""
583 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
584 def __init__(self, *args):
586 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
587 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
589 this = _IMP_statistics.new_ChiSquareMetric(*args)
590 try: self.this.append(this)
591 except: self.this = this
592 def add_configuration(self, *args):
594 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
595 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
597 return _IMP_statistics.ChiSquareMetric_add_configuration(self, *args)
599 def get_data(self, *args):
600 """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
601 return _IMP_statistics.ChiSquareMetric_get_data(self, *args)
603 def get_standard_deviation(self, *args):
604 """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
605 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, *args)
607 def do_get_weight(self, *args):
608 """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
609 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, *args)
611 def get_chi_square_experimental(self, *args):
612 """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
613 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, *args)
615 def get_version_info(self):
616 """get_version_info(ChiSquareMetric self) -> VersionInfo"""
617 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
620 """__str__(ChiSquareMetric self) -> std::string"""
621 return _IMP_statistics.ChiSquareMetric___str__(self)
624 """__repr__(ChiSquareMetric self) -> std::string"""
625 return _IMP_statistics.ChiSquareMetric___repr__(self)
628 return _object_cast_to_ChiSquareMetric(o)
629 get_from = staticmethod(get_from)
631 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
632 ChiSquareMetric_swigregister(ChiSquareMetric)
634 class PartitionalClusteringWithCenter(PartitionalClustering):
635 """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class"""
636 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
637 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
638 def get_cluster_center(self, *args):
639 """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
640 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, *args)
642 def get_version_info(self):
643 """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
644 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
647 """__str__(PartitionalClusteringWithCenter self) -> std::string"""
648 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
651 """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
652 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
655 return _object_cast_to_PartitionalClusteringWithCenter(o)
656 get_from = staticmethod(get_from)
658 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
659 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
661 class ConfigurationSetXYZEmbedding(Embedding):
662 """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class"""
663 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
664 def __init__(self, *args):
666 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
667 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
669 this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(*args)
670 try: self.this.append(this)
671 except: self.this = this
672 def get_version_info(self):
673 """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
674 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
677 """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
678 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
681 """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
682 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
685 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
686 get_from = staticmethod(get_from)
688 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
689 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
691 class ParticleEmbedding(Embedding):
692 """Proxy of C++ IMP::statistics::ParticleEmbedding class"""
693 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
694 def __init__(self, *args):
696 __init__(IMP::statistics::ParticleEmbedding self, IMP::kernel::ParticlesTemp const & ps, IMP::kernel::FloatKeys const & ks=IMP::kernel::FloatKeys(
697 IMP::kernel::internal::
699 IMP::kernel::internal::
702 bool rescale=False) -> ParticleEmbedding
703 __init__(IMP::statistics::ParticleEmbedding self, IMP::kernel::ParticlesTemp const & ps, IMP::kernel::FloatKeys const & ks=IMP::kernel::FloatKeys(
704 IMP::kernel::internal::
706 IMP::kernel::internal::
708 3)) -> ParticleEmbedding
709 __init__(IMP::statistics::ParticleEmbedding self, IMP::kernel::ParticlesTemp const & ps) -> ParticleEmbedding
711 this = _IMP_statistics.new_ParticleEmbedding(*args)
712 try: self.this.append(this)
713 except: self.this = this
714 def get_version_info(self):
715 """get_version_info(ParticleEmbedding self) -> VersionInfo"""
716 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
719 """__str__(ParticleEmbedding self) -> std::string"""
720 return _IMP_statistics.ParticleEmbedding___str__(self)
723 """__repr__(ParticleEmbedding self) -> std::string"""
724 return _IMP_statistics.ParticleEmbedding___repr__(self)
727 return _object_cast_to_ParticleEmbedding(o)
728 get_from = staticmethod(get_from)
730 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
731 ParticleEmbedding_swigregister(ParticleEmbedding)
733 class VectorDEmbedding(Embedding):
734 """Proxy of C++ IMP::statistics::VectorDEmbedding class"""
735 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
736 def __init__(self, *args):
738 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
739 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
740 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
741 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
742 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
743 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
745 this = _IMP_statistics.new_VectorDEmbedding(*args)
746 try: self.this.append(this)
747 except: self.this = this
748 def get_version_info(self):
749 """get_version_info(VectorDEmbedding self) -> VersionInfo"""
750 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
753 """__str__(VectorDEmbedding self) -> std::string"""
754 return _IMP_statistics.VectorDEmbedding___str__(self)
757 """__repr__(VectorDEmbedding self) -> std::string"""
758 return _IMP_statistics.VectorDEmbedding___repr__(self)
761 return _object_cast_to_VectorDEmbedding(o)
762 get_from = staticmethod(get_from)
764 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
765 VectorDEmbedding_swigregister(VectorDEmbedding)
767 class EuclideanMetric(Metric):
768 """Proxy of C++ IMP::statistics::EuclideanMetric class"""
769 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
770 def __init__(self, *args):
771 """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
772 this = _IMP_statistics.new_EuclideanMetric(*args)
773 try: self.this.append(this)
774 except: self.this = this
775 def get_version_info(self):
776 """get_version_info(EuclideanMetric self) -> VersionInfo"""
777 return _IMP_statistics.EuclideanMetric_get_version_info(self)
780 """__str__(EuclideanMetric self) -> std::string"""
781 return _IMP_statistics.EuclideanMetric___str__(self)
784 """__repr__(EuclideanMetric self) -> std::string"""
785 return _IMP_statistics.EuclideanMetric___repr__(self)
788 return _object_cast_to_EuclideanMetric(o)
789 get_from = staticmethod(get_from)
791 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
792 EuclideanMetric_swigregister(EuclideanMetric)
794 class ConfigurationSetRMSDMetric(Metric):
795 """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class"""
796 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
797 def __init__(self, *args):
799 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
800 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
802 this = _IMP_statistics.new_ConfigurationSetRMSDMetric(*args)
803 try: self.this.append(this)
804 except: self.this = this
805 def get_version_info(self):
806 """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
807 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
810 """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
811 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
814 """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
815 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
818 return _object_cast_to_ConfigurationSetRMSDMetric(o)
819 get_from = staticmethod(get_from)
821 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
822 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
826 """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
827 return _IMP_statistics.create_lloyds_kmeans(*args)
830 """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
831 return _IMP_statistics.create_bin_based_clustering(*args)
835 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
836 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
838 return _IMP_statistics.create_centrality_clustering(*args)
841 """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
842 return _IMP_statistics.create_diameter_clustering(*args)
846 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
847 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
849 return _IMP_statistics.create_connectivity_clustering(*args)
852 """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
853 return _IMP_statistics.create_gromos_clustering(*args)
856 """get_quantile(Histogram1D h, double fraction) -> double"""
857 return _IMP_statistics.get_quantile(*args)
860 """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
861 return _IMP_statistics.get_centroids(*args)
864 """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
865 return _IMP_statistics.get_representatives(*args)
866 class RecursivePartitionalClusteringEmbedding(Embedding):
867 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class"""
868 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
869 def __init__(self, *args):
870 """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
871 this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(*args)
872 try: self.this.append(this)
873 except: self.this = this
874 def create_full_clustering(self, *args):
875 """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
876 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, *args)
878 def get_version_info(self):
879 """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
880 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
883 """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
884 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
887 """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
888 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
891 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
892 get_from = staticmethod(get_from)
894 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
895 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
897 class RecursivePartitionalClusteringMetric(Metric):
898 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class"""
899 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
900 def __init__(self, *args):
901 """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
902 this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(*args)
903 try: self.this.append(this)
904 except: self.this = this
905 def create_full_clustering(self, *args):
906 """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
907 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, *args)
909 def get_version_info(self):
910 """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
911 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
914 """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
915 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
918 """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
919 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
922 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
923 get_from = staticmethod(get_from)
925 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
926 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
928 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
929 """Proxy of C++ IMP::statistics::HistogramD<(1)> class"""
930 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
931 def __init__(self, *args):
933 __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
934 __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
936 this = _IMP_statistics.new_Histogram1D(*args)
937 try: self.this.append(this)
938 except: self.this = this
939 def add(self, *args):
941 add(Histogram1D self, Vector1D x, double weight=1)
942 add(Histogram1D self, Vector1D x)
944 return _IMP_statistics.Histogram1D_add(self, *args)
946 def get_total_count(self):
947 """get_total_count(Histogram1D self) -> double"""
948 return _IMP_statistics.Histogram1D_get_total_count(self)
950 def get_frequencies(self):
951 """get_frequencies(Histogram1D self) -> Histogram1D"""
952 return _IMP_statistics.Histogram1D_get_frequencies(self)
954 def get_probability_distribution_function(self):
955 """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
956 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
958 def get_counts(self):
959 """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
960 return _IMP_statistics.Histogram1D_get_counts(self)
963 """get_mean(Histogram1D self) -> Vector1D"""
964 return _IMP_statistics.Histogram1D_get_mean(self)
966 def get_dimension(self):
967 """get_dimension(Histogram1D self) -> unsigned int"""
968 return _IMP_statistics.Histogram1D_get_dimension(self)
970 def get_standard_deviation(self, *args):
971 """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
972 return _IMP_statistics.Histogram1D_get_standard_deviation(self, *args)
974 def get_bounding_box(self):
975 """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
976 return _IMP_statistics.Histogram1D_get_bounding_box(self)
978 def get_minimum_and_maximum(self):
979 """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
980 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
982 def show(self, *args):
984 show(Histogram1D self, _ostream out=std::cout)
985 show(Histogram1D self)
987 return _IMP_statistics.Histogram1D_show(self, *args)
990 """__str__(Histogram1D self) -> std::string"""
991 return _IMP_statistics.Histogram1D___str__(self)
994 """__repr__(Histogram1D self) -> std::string"""
995 return _IMP_statistics.Histogram1D___repr__(self)
997 def __cmp__(self, *args):
998 """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
999 return _IMP_statistics.Histogram1D___cmp__(self, *args)
1001 def __eq__(self, *args):
1002 """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1003 return _IMP_statistics.Histogram1D___eq__(self, *args)
1005 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1006 __del__ =
lambda self :
None;
1007 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1008 Histogram1D_swigregister(Histogram1D)
1010 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1011 """Proxy of C++ IMP::statistics::HistogramD<(2)> class"""
1012 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1013 def __init__(self, *args):
1015 __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1016 __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1018 this = _IMP_statistics.new_Histogram2D(*args)
1019 try: self.this.append(this)
1020 except: self.this = this
1021 def add(self, *args):
1023 add(Histogram2D self, Vector2D x, double weight=1)
1024 add(Histogram2D self, Vector2D x)
1026 return _IMP_statistics.Histogram2D_add(self, *args)
1028 def get_total_count(self):
1029 """get_total_count(Histogram2D self) -> double"""
1030 return _IMP_statistics.Histogram2D_get_total_count(self)
1032 def get_frequencies(self):
1033 """get_frequencies(Histogram2D self) -> Histogram2D"""
1034 return _IMP_statistics.Histogram2D_get_frequencies(self)
1036 def get_probability_distribution_function(self):
1037 """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1038 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1040 def get_counts(self):
1041 """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1042 return _IMP_statistics.Histogram2D_get_counts(self)
1045 """get_mean(Histogram2D self) -> Vector2D"""
1046 return _IMP_statistics.Histogram2D_get_mean(self)
1048 def get_dimension(self):
1049 """get_dimension(Histogram2D self) -> unsigned int"""
1050 return _IMP_statistics.Histogram2D_get_dimension(self)
1052 def get_standard_deviation(self, *args):
1053 """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1054 return _IMP_statistics.Histogram2D_get_standard_deviation(self, *args)
1056 def get_bounding_box(self):
1057 """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1058 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1060 def get_minimum_and_maximum(self):
1061 """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1062 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1064 def show(self, *args):
1066 show(Histogram2D self, _ostream out=std::cout)
1067 show(Histogram2D self)
1069 return _IMP_statistics.Histogram2D_show(self, *args)
1072 """__str__(Histogram2D self) -> std::string"""
1073 return _IMP_statistics.Histogram2D___str__(self)
1076 """__repr__(Histogram2D self) -> std::string"""
1077 return _IMP_statistics.Histogram2D___repr__(self)
1079 def __cmp__(self, *args):
1080 """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1081 return _IMP_statistics.Histogram2D___cmp__(self, *args)
1083 def __eq__(self, *args):
1084 """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1085 return _IMP_statistics.Histogram2D___eq__(self, *args)
1087 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1088 __del__ =
lambda self :
None;
1089 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1090 Histogram2D_swigregister(Histogram2D)
1092 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1093 """Proxy of C++ IMP::statistics::HistogramD<(3)> class"""
1094 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1095 def __init__(self, *args):
1097 __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1098 __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1100 this = _IMP_statistics.new_Histogram3D(*args)
1101 try: self.this.append(this)
1102 except: self.this = this
1103 def add(self, *args):
1105 add(Histogram3D self, Vector3D x, double weight=1)
1106 add(Histogram3D self, Vector3D x)
1108 return _IMP_statistics.Histogram3D_add(self, *args)
1110 def get_total_count(self):
1111 """get_total_count(Histogram3D self) -> double"""
1112 return _IMP_statistics.Histogram3D_get_total_count(self)
1114 def get_frequencies(self):
1115 """get_frequencies(Histogram3D self) -> Histogram3D"""
1116 return _IMP_statistics.Histogram3D_get_frequencies(self)
1118 def get_probability_distribution_function(self):
1119 """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1120 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1122 def get_counts(self):
1123 """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1124 return _IMP_statistics.Histogram3D_get_counts(self)
1127 """get_mean(Histogram3D self) -> Vector3D"""
1128 return _IMP_statistics.Histogram3D_get_mean(self)
1130 def get_dimension(self):
1131 """get_dimension(Histogram3D self) -> unsigned int"""
1132 return _IMP_statistics.Histogram3D_get_dimension(self)
1134 def get_standard_deviation(self, *args):
1135 """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1136 return _IMP_statistics.Histogram3D_get_standard_deviation(self, *args)
1138 def get_bounding_box(self):
1139 """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1140 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1142 def get_minimum_and_maximum(self):
1143 """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1144 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1146 def show(self, *args):
1148 show(Histogram3D self, _ostream out=std::cout)
1149 show(Histogram3D self)
1151 return _IMP_statistics.Histogram3D_show(self, *args)
1154 """__str__(Histogram3D self) -> std::string"""
1155 return _IMP_statistics.Histogram3D___str__(self)
1158 """__repr__(Histogram3D self) -> std::string"""
1159 return _IMP_statistics.Histogram3D___repr__(self)
1161 def __cmp__(self, *args):
1162 """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1163 return _IMP_statistics.Histogram3D___cmp__(self, *args)
1165 def __eq__(self, *args):
1166 """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1167 return _IMP_statistics.Histogram3D___eq__(self, *args)
1169 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1170 __del__ =
lambda self :
None;
1171 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1172 Histogram3D_swigregister(Histogram3D)
1174 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1175 """Proxy of C++ IMP::statistics::HistogramD<(4)> class"""
1176 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1177 def __init__(self, *args):
1179 __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1180 __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1182 this = _IMP_statistics.new_Histogram4D(*args)
1183 try: self.this.append(this)
1184 except: self.this = this
1185 def add(self, *args):
1187 add(Histogram4D self, Vector4D x, double weight=1)
1188 add(Histogram4D self, Vector4D x)
1190 return _IMP_statistics.Histogram4D_add(self, *args)
1192 def get_total_count(self):
1193 """get_total_count(Histogram4D self) -> double"""
1194 return _IMP_statistics.Histogram4D_get_total_count(self)
1196 def get_frequencies(self):
1197 """get_frequencies(Histogram4D self) -> Histogram4D"""
1198 return _IMP_statistics.Histogram4D_get_frequencies(self)
1200 def get_probability_distribution_function(self):
1201 """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1202 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1204 def get_counts(self):
1205 """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1206 return _IMP_statistics.Histogram4D_get_counts(self)
1209 """get_mean(Histogram4D self) -> Vector4D"""
1210 return _IMP_statistics.Histogram4D_get_mean(self)
1212 def get_dimension(self):
1213 """get_dimension(Histogram4D self) -> unsigned int"""
1214 return _IMP_statistics.Histogram4D_get_dimension(self)
1216 def get_standard_deviation(self, *args):
1217 """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1218 return _IMP_statistics.Histogram4D_get_standard_deviation(self, *args)
1220 def get_bounding_box(self):
1221 """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1222 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1224 def get_minimum_and_maximum(self):
1225 """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1226 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1228 def show(self, *args):
1230 show(Histogram4D self, _ostream out=std::cout)
1231 show(Histogram4D self)
1233 return _IMP_statistics.Histogram4D_show(self, *args)
1236 """__str__(Histogram4D self) -> std::string"""
1237 return _IMP_statistics.Histogram4D___str__(self)
1240 """__repr__(Histogram4D self) -> std::string"""
1241 return _IMP_statistics.Histogram4D___repr__(self)
1243 def __cmp__(self, *args):
1244 """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1245 return _IMP_statistics.Histogram4D___cmp__(self, *args)
1247 def __eq__(self, *args):
1248 """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1249 return _IMP_statistics.Histogram4D___eq__(self, *args)
1251 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1252 __del__ =
lambda self :
None;
1253 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1254 Histogram4D_swigregister(Histogram4D)
1256 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1257 """Proxy of C++ IMP::statistics::HistogramD<(5)> class"""
1258 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1259 def __init__(self, *args):
1261 __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1262 __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1264 this = _IMP_statistics.new_Histogram5D(*args)
1265 try: self.this.append(this)
1266 except: self.this = this
1267 def add(self, *args):
1269 add(Histogram5D self, Vector5D x, double weight=1)
1270 add(Histogram5D self, Vector5D x)
1272 return _IMP_statistics.Histogram5D_add(self, *args)
1274 def get_total_count(self):
1275 """get_total_count(Histogram5D self) -> double"""
1276 return _IMP_statistics.Histogram5D_get_total_count(self)
1278 def get_frequencies(self):
1279 """get_frequencies(Histogram5D self) -> Histogram5D"""
1280 return _IMP_statistics.Histogram5D_get_frequencies(self)
1282 def get_probability_distribution_function(self):
1283 """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1284 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1286 def get_counts(self):
1287 """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1288 return _IMP_statistics.Histogram5D_get_counts(self)
1291 """get_mean(Histogram5D self) -> Vector5D"""
1292 return _IMP_statistics.Histogram5D_get_mean(self)
1294 def get_dimension(self):
1295 """get_dimension(Histogram5D self) -> unsigned int"""
1296 return _IMP_statistics.Histogram5D_get_dimension(self)
1298 def get_standard_deviation(self, *args):
1299 """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1300 return _IMP_statistics.Histogram5D_get_standard_deviation(self, *args)
1302 def get_bounding_box(self):
1303 """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1304 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1306 def get_minimum_and_maximum(self):
1307 """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1308 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1310 def show(self, *args):
1312 show(Histogram5D self, _ostream out=std::cout)
1313 show(Histogram5D self)
1315 return _IMP_statistics.Histogram5D_show(self, *args)
1318 """__str__(Histogram5D self) -> std::string"""
1319 return _IMP_statistics.Histogram5D___str__(self)
1322 """__repr__(Histogram5D self) -> std::string"""
1323 return _IMP_statistics.Histogram5D___repr__(self)
1325 def __cmp__(self, *args):
1326 """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1327 return _IMP_statistics.Histogram5D___cmp__(self, *args)
1329 def __eq__(self, *args):
1330 """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1331 return _IMP_statistics.Histogram5D___eq__(self, *args)
1333 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1334 __del__ =
lambda self :
None;
1335 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1336 Histogram5D_swigregister(Histogram5D)
1338 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1339 """Proxy of C++ IMP::statistics::HistogramD<(6)> class"""
1340 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1341 def __init__(self, *args):
1343 __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1344 __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1346 this = _IMP_statistics.new_Histogram6D(*args)
1347 try: self.this.append(this)
1348 except: self.this = this
1349 def add(self, *args):
1351 add(Histogram6D self, Vector6D x, double weight=1)
1352 add(Histogram6D self, Vector6D x)
1354 return _IMP_statistics.Histogram6D_add(self, *args)
1356 def get_total_count(self):
1357 """get_total_count(Histogram6D self) -> double"""
1358 return _IMP_statistics.Histogram6D_get_total_count(self)
1360 def get_frequencies(self):
1361 """get_frequencies(Histogram6D self) -> Histogram6D"""
1362 return _IMP_statistics.Histogram6D_get_frequencies(self)
1364 def get_probability_distribution_function(self):
1365 """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1366 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1368 def get_counts(self):
1369 """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1370 return _IMP_statistics.Histogram6D_get_counts(self)
1373 """get_mean(Histogram6D self) -> Vector6D"""
1374 return _IMP_statistics.Histogram6D_get_mean(self)
1376 def get_dimension(self):
1377 """get_dimension(Histogram6D self) -> unsigned int"""
1378 return _IMP_statistics.Histogram6D_get_dimension(self)
1380 def get_standard_deviation(self, *args):
1381 """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1382 return _IMP_statistics.Histogram6D_get_standard_deviation(self, *args)
1384 def get_bounding_box(self):
1385 """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1386 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1388 def get_minimum_and_maximum(self):
1389 """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1390 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1392 def show(self, *args):
1394 show(Histogram6D self, _ostream out=std::cout)
1395 show(Histogram6D self)
1397 return _IMP_statistics.Histogram6D_show(self, *args)
1400 """__str__(Histogram6D self) -> std::string"""
1401 return _IMP_statistics.Histogram6D___str__(self)
1404 """__repr__(Histogram6D self) -> std::string"""
1405 return _IMP_statistics.Histogram6D___repr__(self)
1407 def __cmp__(self, *args):
1408 """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1409 return _IMP_statistics.Histogram6D___cmp__(self, *args)
1411 def __eq__(self, *args):
1412 """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1413 return _IMP_statistics.Histogram6D___eq__(self, *args)
1415 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1416 __del__ =
lambda self :
None;
1417 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1418 Histogram6D_swigregister(Histogram6D)
1420 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1421 """Proxy of C++ IMP::statistics::HistogramD<(-1)> class"""
1422 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1423 def __init__(self, *args):
1425 __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1426 __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1428 this = _IMP_statistics.new_HistogramKD(*args)
1429 try: self.this.append(this)
1430 except: self.this = this
1431 def add(self, *args):
1433 add(HistogramKD self, VectorKD x, double weight=1)
1434 add(HistogramKD self, VectorKD x)
1436 return _IMP_statistics.HistogramKD_add(self, *args)
1438 def get_total_count(self):
1439 """get_total_count(HistogramKD self) -> double"""
1440 return _IMP_statistics.HistogramKD_get_total_count(self)
1442 def get_frequencies(self):
1443 """get_frequencies(HistogramKD self) -> HistogramKD"""
1444 return _IMP_statistics.HistogramKD_get_frequencies(self)
1446 def get_probability_distribution_function(self):
1447 """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1448 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1450 def get_counts(self):
1451 """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1452 return _IMP_statistics.HistogramKD_get_counts(self)
1455 """get_mean(HistogramKD self) -> VectorKD"""
1456 return _IMP_statistics.HistogramKD_get_mean(self)
1458 def get_dimension(self):
1459 """get_dimension(HistogramKD self) -> unsigned int"""
1460 return _IMP_statistics.HistogramKD_get_dimension(self)
1462 def get_standard_deviation(self, *args):
1463 """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1464 return _IMP_statistics.HistogramKD_get_standard_deviation(self, *args)
1466 def get_bounding_box(self):
1467 """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1468 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1470 def get_minimum_and_maximum(self):
1471 """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1472 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1474 def show(self, *args):
1476 show(HistogramKD self, _ostream out=std::cout)
1477 show(HistogramKD self)
1479 return _IMP_statistics.HistogramKD_show(self, *args)
1482 """__str__(HistogramKD self) -> std::string"""
1483 return _IMP_statistics.HistogramKD___str__(self)
1486 """__repr__(HistogramKD self) -> std::string"""
1487 return _IMP_statistics.HistogramKD___repr__(self)
1489 def __cmp__(self, *args):
1490 """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1491 return _IMP_statistics.HistogramKD___cmp__(self, *args)
1493 def __eq__(self, *args):
1494 """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1495 return _IMP_statistics.HistogramKD___eq__(self, *args)
1497 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1498 __del__ =
lambda self :
None;
1499 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1500 HistogramKD_swigregister(HistogramKD)
1502 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1503 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class"""
1504 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1505 __repr__ = _swig_repr
1506 def __setitem__(self, *args):
1508 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1509 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1511 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1513 def __getitem__(self, *args):
1515 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1516 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1518 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1520 def __init__(self, *args):
1522 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1523 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1524 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1525 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value=int()) -> _IntDenseGridStorageKD
1526 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1528 this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1529 try: self.this.append(this)
1530 except: self.this = this
1532 """get_is_dense() -> bool"""
1533 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1535 get_is_dense = staticmethod(get_is_dense)
1536 def show(self, *args):
1538 show(_IntDenseGridStorageKD self, _ostream out=std::cout)
1539 show(_IntDenseGridStorageKD self)
1541 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1543 def add_voxel(self, *args):
1544 """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1545 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, *args)
1547 def get_all_voxels(self):
1548 """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::base::Vector< int >"""
1549 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1551 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1552 __del__ =
lambda self :
None;
1553 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1554 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1556 def _IntDenseGridStorageKD_get_is_dense():
1557 """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1558 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1560 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1561 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class"""
1562 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1563 __repr__ = _swig_repr
1564 def __setitem__(self, *args):
1566 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1567 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1569 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1571 def __getitem__(self, *args):
1573 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1574 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1576 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1578 def __init__(self, *args):
1580 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1581 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1582 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1583 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1584 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1586 this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1587 try: self.this.append(this)
1588 except: self.this = this
1590 """get_is_dense() -> bool"""
1591 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1593 get_is_dense = staticmethod(get_is_dense)
1594 def show(self, *args):
1596 show(_FloatDenseGridStorageKD self, _ostream out=std::cout)
1597 show(_FloatDenseGridStorageKD self)
1599 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1601 def add_voxel(self, *args):
1602 """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1603 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, *args)
1605 def get_all_voxels(self):
1606 """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::base::Vector< double >"""
1607 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1609 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1610 __del__ =
lambda self :
None;
1611 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
1612 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1614 def _FloatDenseGridStorageKD_get_is_dense():
1615 """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
1616 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1618 class _HistogramCountsGridKD(_FloatDenseGridStorageKD,IMP.algebra.DefaultEmbeddingKD,IMP.algebra._GeometricPrimitiveKD):
1619 """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class"""
1620 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1621 __repr__ = _swig_repr
1622 def __init__(self, *args):
1624 __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
1625 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
1626 __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
1627 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
1628 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1629 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
1630 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1631 __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
1632 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
1633 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1634 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
1635 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
1637 this = _IMP_statistics.new__HistogramCountsGridKD(*args)
1638 try: self.this.append(this)
1639 except: self.this = this
1640 def show(self, *args):
1642 show(_HistogramCountsGridKD self, _ostream out=std::cout)
1643 show(_HistogramCountsGridKD self)
1645 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1647 def __getitem__(self, *args):
1649 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1650 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1652 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1654 def __setitem__(self, *args):
1656 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1657 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1659 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1661 def add_voxel(self, *args):
1662 """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1663 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, *args)
1665 def get_extended_index(self, *args):
1666 """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1667 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, *args)
1669 def get_bounding_box(self, *args):
1671 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1672 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1673 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1675 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1677 def set_bounding_box(self, *args):
1678 """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1679 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, *args)
1681 def get_nearest_index(self, *args):
1682 """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1683 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, *args)
1685 def get_nearest_extended_index(self, *args):
1686 """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1687 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, *args)
1689 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1690 __del__ =
lambda self :
None;
1691 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
1692 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1694 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1695 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class"""
1696 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1697 __repr__ = _swig_repr
1698 def __setitem__(self, *args):
1700 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1701 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1703 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1705 def __getitem__(self, *args):
1707 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1708 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1710 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1712 def __init__(self, *args):
1714 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1715 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1716 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
1717 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value=int()) -> _IntDenseGridStorage1D
1718 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
1720 this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
1721 try: self.this.append(this)
1722 except: self.this = this
1724 """get_is_dense() -> bool"""
1725 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1727 get_is_dense = staticmethod(get_is_dense)
1728 def show(self, *args):
1730 show(_IntDenseGridStorage1D self, _ostream out=std::cout)
1731 show(_IntDenseGridStorage1D self)
1733 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1735 def add_voxel(self, *args):
1736 """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1737 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, *args)
1739 def get_all_voxels(self):
1740 """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::base::Vector< int >"""
1741 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1743 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1744 __del__ =
lambda self :
None;
1745 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
1746 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1748 def _IntDenseGridStorage1D_get_is_dense():
1749 """_IntDenseGridStorage1D_get_is_dense() -> bool"""
1750 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1752 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1753 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class"""
1754 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1755 __repr__ = _swig_repr
1756 def __setitem__(self, *args):
1758 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1759 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1761 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1763 def __getitem__(self, *args):
1765 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1766 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1768 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1770 def __init__(self, *args):
1772 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1773 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1774 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
1775 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1776 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
1778 this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
1779 try: self.this.append(this)
1780 except: self.this = this
1782 """get_is_dense() -> bool"""
1783 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1785 get_is_dense = staticmethod(get_is_dense)
1786 def show(self, *args):
1788 show(_FloatDenseGridStorage1D self, _ostream out=std::cout)
1789 show(_FloatDenseGridStorage1D self)
1791 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1793 def add_voxel(self, *args):
1794 """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1795 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, *args)
1797 def get_all_voxels(self):
1798 """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::base::Vector< double >"""
1799 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1801 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1802 __del__ =
lambda self :
None;
1803 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
1804 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1806 def _FloatDenseGridStorage1D_get_is_dense():
1807 """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
1808 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1810 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D,IMP.algebra.DefaultEmbedding1D,IMP.algebra._GeometricPrimitive1D):
1811 """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class"""
1812 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1813 __repr__ = _swig_repr
1814 def __init__(self, *args):
1816 __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
1817 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
1818 __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
1819 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
1820 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1821 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
1822 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1823 __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
1824 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
1825 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1826 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
1827 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
1829 this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
1830 try: self.this.append(this)
1831 except: self.this = this
1832 def show(self, *args):
1834 show(_HistogramCountsGrid1D self, _ostream out=std::cout)
1835 show(_HistogramCountsGrid1D self)
1837 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1839 def __getitem__(self, *args):
1841 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1842 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1844 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1846 def __setitem__(self, *args):
1848 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1849 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1851 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1853 def add_voxel(self, *args):
1854 """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1855 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, *args)
1857 def get_extended_index(self, *args):
1858 """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1859 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, *args)
1861 def get_bounding_box(self, *args):
1863 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1864 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1865 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1867 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1869 def set_bounding_box(self, *args):
1870 """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1871 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, *args)
1873 def get_nearest_index(self, *args):
1874 """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1875 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, *args)
1877 def get_nearest_extended_index(self, *args):
1878 """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1879 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, *args)
1881 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1882 __del__ =
lambda self :
None;
1883 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
1884 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1886 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1887 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class"""
1888 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1889 __repr__ = _swig_repr
1890 def __setitem__(self, *args):
1892 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1893 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1895 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1897 def __getitem__(self, *args):
1899 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1900 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1902 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1904 def __init__(self, *args):
1906 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1907 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1908 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
1909 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value=int()) -> _IntDenseGridStorage2D
1910 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
1912 this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
1913 try: self.this.append(this)
1914 except: self.this = this
1916 """get_is_dense() -> bool"""
1917 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1919 get_is_dense = staticmethod(get_is_dense)
1920 def show(self, *args):
1922 show(_IntDenseGridStorage2D self, _ostream out=std::cout)
1923 show(_IntDenseGridStorage2D self)
1925 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1927 def add_voxel(self, *args):
1928 """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1929 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, *args)
1931 def get_all_voxels(self):
1932 """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::base::Vector< int >"""
1933 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1935 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1936 __del__ =
lambda self :
None;
1937 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
1938 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1940 def _IntDenseGridStorage2D_get_is_dense():
1941 """_IntDenseGridStorage2D_get_is_dense() -> bool"""
1942 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1944 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1945 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class"""
1946 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1947 __repr__ = _swig_repr
1948 def __setitem__(self, *args):
1950 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1951 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1953 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1955 def __getitem__(self, *args):
1957 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1958 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1960 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1962 def __init__(self, *args):
1964 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1965 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1966 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
1967 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1968 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
1970 this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
1971 try: self.this.append(this)
1972 except: self.this = this
1974 """get_is_dense() -> bool"""
1975 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1977 get_is_dense = staticmethod(get_is_dense)
1978 def show(self, *args):
1980 show(_FloatDenseGridStorage2D self, _ostream out=std::cout)
1981 show(_FloatDenseGridStorage2D self)
1983 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1985 def add_voxel(self, *args):
1986 """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1987 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, *args)
1989 def get_all_voxels(self):
1990 """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::base::Vector< double >"""
1991 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1993 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1994 __del__ =
lambda self :
None;
1995 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
1996 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1998 def _FloatDenseGridStorage2D_get_is_dense():
1999 """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2000 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2002 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D,IMP.algebra.DefaultEmbedding2D,IMP.algebra._GeometricPrimitive2D):
2003 """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class"""
2004 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2005 __repr__ = _swig_repr
2006 def __init__(self, *args):
2008 __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
2009 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2010 __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
2011 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2012 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
2013 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2014 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2015 __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
2016 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2017 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
2018 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2019 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2021 this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2022 try: self.this.append(this)
2023 except: self.this = this
2024 def show(self, *args):
2026 show(_HistogramCountsGrid2D self, _ostream out=std::cout)
2027 show(_HistogramCountsGrid2D self)
2029 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2031 def __getitem__(self, *args):
2033 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2034 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2036 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2038 def __setitem__(self, *args):
2040 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2041 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2043 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2045 def add_voxel(self, *args):
2046 """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2047 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, *args)
2049 def get_extended_index(self, *args):
2050 """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2051 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, *args)
2053 def get_bounding_box(self, *args):
2055 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2056 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2057 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2059 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2061 def set_bounding_box(self, *args):
2062 """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2063 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, *args)
2065 def get_nearest_index(self, *args):
2066 """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2067 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, *args)
2069 def get_nearest_extended_index(self, *args):
2070 """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2071 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, *args)
2073 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2074 __del__ =
lambda self :
None;
2075 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2076 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2078 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2079 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class"""
2080 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2081 __repr__ = _swig_repr
2082 def __setitem__(self, *args):
2084 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2085 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2087 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2089 def __getitem__(self, *args):
2091 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2092 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2094 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2096 def __init__(self, *args):
2098 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2099 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
2100 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2101 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value=int()) -> _IntDenseGridStorage3D
2102 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2104 this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2105 try: self.this.append(this)
2106 except: self.this = this
2108 """get_is_dense() -> bool"""
2109 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2111 get_is_dense = staticmethod(get_is_dense)
2112 def show(self, *args):
2114 show(_IntDenseGridStorage3D self, _ostream out=std::cout)
2115 show(_IntDenseGridStorage3D self)
2117 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2119 def add_voxel(self, *args):
2120 """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2121 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, *args)
2123 def get_all_voxels(self):
2124 """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::base::Vector< int >"""
2125 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2127 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2128 __del__ =
lambda self :
None;
2129 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2130 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2132 def _IntDenseGridStorage3D_get_is_dense():
2133 """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2134 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2136 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2137 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class"""
2138 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2139 __repr__ = _swig_repr
2140 def __setitem__(self, *args):
2142 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2143 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2145 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2147 def __getitem__(self, *args):
2149 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2150 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2152 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2154 def __init__(self, *args):
2156 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2157 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2158 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2159 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2160 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2162 this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2163 try: self.this.append(this)
2164 except: self.this = this
2166 """get_is_dense() -> bool"""
2167 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2169 get_is_dense = staticmethod(get_is_dense)
2170 def show(self, *args):
2172 show(_FloatDenseGridStorage3D self, _ostream out=std::cout)
2173 show(_FloatDenseGridStorage3D self)
2175 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2177 def add_voxel(self, *args):
2178 """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2179 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, *args)
2181 def get_all_voxels(self):
2182 """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::base::Vector< double >"""
2183 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2185 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2186 __del__ =
lambda self :
None;
2187 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2188 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2190 def _FloatDenseGridStorage3D_get_is_dense():
2191 """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2192 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2194 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D,IMP.algebra.DefaultEmbedding3D,IMP.algebra._GeometricPrimitive3D):
2195 """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class"""
2196 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2197 __repr__ = _swig_repr
2198 def __init__(self, *args):
2200 __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
2201 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2202 __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
2203 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2204 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2205 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2206 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2207 __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
2208 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2209 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2210 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2211 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2213 this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2214 try: self.this.append(this)
2215 except: self.this = this
2216 def show(self, *args):
2218 show(_HistogramCountsGrid3D self, _ostream out=std::cout)
2219 show(_HistogramCountsGrid3D self)
2221 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2223 def __getitem__(self, *args):
2225 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2226 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2228 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2230 def __setitem__(self, *args):
2232 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2233 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2235 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2237 def add_voxel(self, *args):
2238 """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2239 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, *args)
2241 def get_extended_index(self, *args):
2242 """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2243 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, *args)
2245 def get_bounding_box(self, *args):
2247 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2248 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2249 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2251 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2253 def set_bounding_box(self, *args):
2254 """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2255 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, *args)
2257 def get_nearest_index(self, *args):
2258 """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2259 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, *args)
2261 def get_nearest_extended_index(self, *args):
2262 """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2263 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, *args)
2265 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2266 __del__ =
lambda self :
None;
2267 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2268 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2270 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2271 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class"""
2272 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2273 __repr__ = _swig_repr
2274 def __setitem__(self, *args):
2276 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2277 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2279 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2281 def __getitem__(self, *args):
2283 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2284 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2286 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2288 def __init__(self, *args):
2290 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2291 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2292 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2293 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value=int()) -> _IntDenseGridStorage4D
2294 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2296 this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2297 try: self.this.append(this)
2298 except: self.this = this
2300 """get_is_dense() -> bool"""
2301 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2303 get_is_dense = staticmethod(get_is_dense)
2304 def show(self, *args):
2306 show(_IntDenseGridStorage4D self, _ostream out=std::cout)
2307 show(_IntDenseGridStorage4D self)
2309 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2311 def add_voxel(self, *args):
2312 """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2313 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, *args)
2315 def get_all_voxels(self):
2316 """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::base::Vector< int >"""
2317 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2319 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2320 __del__ =
lambda self :
None;
2321 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2322 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2324 def _IntDenseGridStorage4D_get_is_dense():
2325 """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2326 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2328 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2329 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class"""
2330 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2331 __repr__ = _swig_repr
2332 def __setitem__(self, *args):
2334 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2335 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2337 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2339 def __getitem__(self, *args):
2341 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2342 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2344 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2346 def __init__(self, *args):
2348 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2349 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2350 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2351 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2352 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2354 this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2355 try: self.this.append(this)
2356 except: self.this = this
2358 """get_is_dense() -> bool"""
2359 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2361 get_is_dense = staticmethod(get_is_dense)
2362 def show(self, *args):
2364 show(_FloatDenseGridStorage4D self, _ostream out=std::cout)
2365 show(_FloatDenseGridStorage4D self)
2367 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2369 def add_voxel(self, *args):
2370 """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2371 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, *args)
2373 def get_all_voxels(self):
2374 """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::base::Vector< double >"""
2375 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2377 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2378 __del__ =
lambda self :
None;
2379 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2380 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2382 def _FloatDenseGridStorage4D_get_is_dense():
2383 """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2384 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2386 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D,IMP.algebra.DefaultEmbedding4D,IMP.algebra._GeometricPrimitive4D):
2387 """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class"""
2388 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2389 __repr__ = _swig_repr
2390 def __init__(self, *args):
2392 __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
2393 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2394 __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
2395 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2396 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2397 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2398 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2399 __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
2400 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2401 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2402 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2403 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2405 this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2406 try: self.this.append(this)
2407 except: self.this = this
2408 def show(self, *args):
2410 show(_HistogramCountsGrid4D self, _ostream out=std::cout)
2411 show(_HistogramCountsGrid4D self)
2413 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2415 def __getitem__(self, *args):
2417 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2418 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2420 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2422 def __setitem__(self, *args):
2424 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2425 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2427 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2429 def add_voxel(self, *args):
2430 """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2431 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, *args)
2433 def get_extended_index(self, *args):
2434 """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2435 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, *args)
2437 def get_bounding_box(self, *args):
2439 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2440 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2441 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2443 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2445 def set_bounding_box(self, *args):
2446 """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2447 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, *args)
2449 def get_nearest_index(self, *args):
2450 """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2451 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, *args)
2453 def get_nearest_extended_index(self, *args):
2454 """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2455 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, *args)
2457 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2458 __del__ =
lambda self :
None;
2459 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
2460 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2462 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2463 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class"""
2464 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2465 __repr__ = _swig_repr
2466 def __setitem__(self, *args):
2468 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2469 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2471 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2473 def __getitem__(self, *args):
2475 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2476 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2478 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2480 def __init__(self, *args):
2482 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2483 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2484 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
2485 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value=int()) -> _IntDenseGridStorage5D
2486 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
2488 this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
2489 try: self.this.append(this)
2490 except: self.this = this
2492 """get_is_dense() -> bool"""
2493 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2495 get_is_dense = staticmethod(get_is_dense)
2496 def show(self, *args):
2498 show(_IntDenseGridStorage5D self, _ostream out=std::cout)
2499 show(_IntDenseGridStorage5D self)
2501 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2503 def add_voxel(self, *args):
2504 """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2505 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, *args)
2507 def get_all_voxels(self):
2508 """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::base::Vector< int >"""
2509 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2511 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2512 __del__ =
lambda self :
None;
2513 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
2514 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2516 def _IntDenseGridStorage5D_get_is_dense():
2517 """_IntDenseGridStorage5D_get_is_dense() -> bool"""
2518 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2520 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2521 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class"""
2522 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2523 __repr__ = _swig_repr
2524 def __setitem__(self, *args):
2526 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2527 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2529 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2531 def __getitem__(self, *args):
2533 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2534 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2536 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2538 def __init__(self, *args):
2540 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2541 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2542 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
2543 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2544 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
2546 this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
2547 try: self.this.append(this)
2548 except: self.this = this
2550 """get_is_dense() -> bool"""
2551 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2553 get_is_dense = staticmethod(get_is_dense)
2554 def show(self, *args):
2556 show(_FloatDenseGridStorage5D self, _ostream out=std::cout)
2557 show(_FloatDenseGridStorage5D self)
2559 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2561 def add_voxel(self, *args):
2562 """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2563 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, *args)
2565 def get_all_voxels(self):
2566 """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::base::Vector< double >"""
2567 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2569 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2570 __del__ =
lambda self :
None;
2571 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
2572 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2574 def _FloatDenseGridStorage5D_get_is_dense():
2575 """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
2576 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2578 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D,IMP.algebra.DefaultEmbedding5D,IMP.algebra._GeometricPrimitive5D):
2579 """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class"""
2580 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2581 __repr__ = _swig_repr
2582 def __init__(self, *args):
2584 __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
2585 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
2586 __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
2587 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
2588 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2589 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
2590 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2591 __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
2592 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
2593 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2594 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
2595 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
2597 this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
2598 try: self.this.append(this)
2599 except: self.this = this
2600 def show(self, *args):
2602 show(_HistogramCountsGrid5D self, _ostream out=std::cout)
2603 show(_HistogramCountsGrid5D self)
2605 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2607 def __getitem__(self, *args):
2609 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2610 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2612 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2614 def __setitem__(self, *args):
2616 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2617 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2619 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2621 def add_voxel(self, *args):
2622 """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2623 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, *args)
2625 def get_extended_index(self, *args):
2626 """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2627 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, *args)
2629 def get_bounding_box(self, *args):
2631 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2632 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2633 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2635 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2637 def set_bounding_box(self, *args):
2638 """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2639 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, *args)
2641 def get_nearest_index(self, *args):
2642 """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2643 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, *args)
2645 def get_nearest_extended_index(self, *args):
2646 """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2647 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, *args)
2649 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2650 __del__ =
lambda self :
None;
2651 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
2652 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2654 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2655 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class"""
2656 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2657 __repr__ = _swig_repr
2658 def __setitem__(self, *args):
2660 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2661 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2663 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2665 def __getitem__(self, *args):
2667 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2668 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2670 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2672 def __init__(self, *args):
2674 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2675 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2676 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
2677 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value=int()) -> _IntDenseGridStorage6D
2678 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
2680 this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
2681 try: self.this.append(this)
2682 except: self.this = this
2684 """get_is_dense() -> bool"""
2685 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2687 get_is_dense = staticmethod(get_is_dense)
2688 def show(self, *args):
2690 show(_IntDenseGridStorage6D self, _ostream out=std::cout)
2691 show(_IntDenseGridStorage6D self)
2693 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2695 def add_voxel(self, *args):
2696 """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2697 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, *args)
2699 def get_all_voxels(self):
2700 """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::base::Vector< int >"""
2701 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2703 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2704 __del__ =
lambda self :
None;
2705 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
2706 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2708 def _IntDenseGridStorage6D_get_is_dense():
2709 """_IntDenseGridStorage6D_get_is_dense() -> bool"""
2710 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2712 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2713 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class"""
2714 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2715 __repr__ = _swig_repr
2716 def __setitem__(self, *args):
2718 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2719 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2721 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2723 def __getitem__(self, *args):
2725 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2726 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2728 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2730 def __init__(self, *args):
2732 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2733 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2734 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
2735 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2736 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
2738 this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
2739 try: self.this.append(this)
2740 except: self.this = this
2742 """get_is_dense() -> bool"""
2743 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2745 get_is_dense = staticmethod(get_is_dense)
2746 def show(self, *args):
2748 show(_FloatDenseGridStorage6D self, _ostream out=std::cout)
2749 show(_FloatDenseGridStorage6D self)
2751 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2753 def add_voxel(self, *args):
2754 """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2755 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, *args)
2757 def get_all_voxels(self):
2758 """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::base::Vector< double >"""
2759 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2761 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2762 __del__ =
lambda self :
None;
2763 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
2764 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2766 def _FloatDenseGridStorage6D_get_is_dense():
2767 """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
2768 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2770 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D,IMP.algebra.DefaultEmbedding6D,IMP.algebra._GeometricPrimitive6D):
2771 """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class"""
2772 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2773 __repr__ = _swig_repr
2774 def __init__(self, *args):
2776 __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
2777 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
2778 __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
2779 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
2780 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2781 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
2782 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2783 __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
2784 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
2785 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2786 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
2787 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
2789 this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
2790 try: self.this.append(this)
2791 except: self.this = this
2792 def show(self, *args):
2794 show(_HistogramCountsGrid6D self, _ostream out=std::cout)
2795 show(_HistogramCountsGrid6D self)
2797 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2799 def __getitem__(self, *args):
2801 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2802 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2804 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2806 def __setitem__(self, *args):
2808 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2809 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2811 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2813 def add_voxel(self, *args):
2814 """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2815 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, *args)
2817 def get_extended_index(self, *args):
2818 """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2819 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, *args)
2821 def get_bounding_box(self, *args):
2823 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2824 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2825 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2827 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2829 def set_bounding_box(self, *args):
2830 """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2831 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, *args)
2833 def get_nearest_index(self, *args):
2834 """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2835 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, *args)
2837 def get_nearest_extended_index(self, *args):
2838 """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2839 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, *args)
2841 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2842 __del__ =
lambda self :
None;
2843 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
2844 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2846 from .
import _histogram
2847 show_histogram= _histogram.show_histogram
2850 def get_module_version():
2851 """get_module_version() -> std::string const"""
2852 return _IMP_statistics.get_module_version()
2855 """get_example_path(std::string fname) -> std::string"""
2856 return _IMP_statistics.get_example_path(*args)
2859 """get_data_path(std::string fname) -> std::string"""
2860 return _IMP_statistics.get_data_path(*args)
2861 from .
import _version_check
2862 _version_check.check_version(get_module_version())
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to installed data.
double get_quantile(const Histogram1D &h, double fraction)
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
PartitionalClustering * create_gromos_clustering(Metric *d, double cutoff)
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
Base functionality and abstract base classes for representation, scoring and sampling.
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
Common base class for heavy weight IMP objects.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
Ints get_representatives(Embedding *d, PartitionalClustering *pc)