10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_statistics', [dirname(__file__)])
24 import _IMP_statistics
25 return _IMP_statistics
28 _mod = imp.load_module(
'_IMP_statistics', fp, pathname, description)
32 _IMP_statistics = swig_import_helper()
33 del swig_import_helper
35 import _IMP_statistics
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
110 weakref_proxy =
lambda x: x
113 class IMP_STATISTICS_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
125 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
130 incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
131 incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
133 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
138 decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
139 decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
141 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
150 """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
151 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
155 """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
156 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
160 """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
161 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
165 """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
166 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
170 """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
171 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
176 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
181 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
186 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
191 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
196 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
201 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
207 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
213 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
214 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
223 _IMP_statistics.IMP_DEBUG_swigconstant(_IMP_statistics)
224 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
226 _IMP_statistics.IMP_RELEASE_swigconstant(_IMP_statistics)
227 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
229 _IMP_statistics.IMP_SILENT_swigconstant(_IMP_statistics)
230 IMP_SILENT = _IMP_statistics.IMP_SILENT
232 _IMP_statistics.IMP_PROGRESS_swigconstant(_IMP_statistics)
233 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
235 _IMP_statistics.IMP_TERSE_swigconstant(_IMP_statistics)
236 IMP_TERSE = _IMP_statistics.IMP_TERSE
238 _IMP_statistics.IMP_VERBOSE_swigconstant(_IMP_statistics)
239 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
241 _IMP_statistics.IMP_MEMORY_swigconstant(_IMP_statistics)
242 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
244 _IMP_statistics.IMP_NONE_swigconstant(_IMP_statistics)
245 IMP_NONE = _IMP_statistics.IMP_NONE
247 _IMP_statistics.IMP_USAGE_swigconstant(_IMP_statistics)
248 IMP_USAGE = _IMP_statistics.IMP_USAGE
250 _IMP_statistics.IMP_INTERNAL_swigconstant(_IMP_statistics)
251 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
253 _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_statistics)
254 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
256 _IMP_statistics.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_statistics)
257 IMP_COMPILER_HAS_AUTO = _IMP_statistics.IMP_COMPILER_HAS_AUTO
259 _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_statistics)
260 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
262 _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_statistics)
263 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR
265 _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
266 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
268 _IMP_statistics.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_statistics)
269 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
271 _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_statistics)
272 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
274 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_statistics)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
277 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_statistics)
278 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
280 _IMP_statistics.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
281 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
284 class _DirectorObjects(object):
285 """@internal Simple class to keep references to director objects
286 to prevent premature deletion."""
289 def register(self, obj):
290 """Take a reference to a director object; will only work for
291 refcounted C++ classes"""
292 if hasattr(obj,
'get_ref_count'):
293 self._objects.append(obj)
295 """Only drop our reference and allow cleanup by Python if no other
296 Python references exist (we hold 3 references: one in self._objects,
297 one in x, and one in the argument list for getrefcount) *and* no
298 other C++ references exist (the Python object always holds one)"""
299 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
300 or x.get_ref_count() > 1]
304 def get_object_count(self):
305 """Get number of director objects (useful for testing only)"""
306 return len(self._objects)
307 _director_objects = _DirectorObjects()
309 class _ostream(object):
310 """Proxy of C++ std::ostream class"""
311 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
313 def __init__(self, *args, **kwargs):
314 raise AttributeError(
"No constructor defined")
315 __repr__ = _swig_repr
317 def write(self, osa_buf):
318 """write(_ostream self, char const * osa_buf)"""
319 return _IMP_statistics._ostream_write(self, osa_buf)
321 _ostream_swigregister = _IMP_statistics._ostream_swigregister
322 _ostream_swigregister(_ostream)
325 _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_statistics)
326 IMP_COMPILER_HAS_OVERRIDE = _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE
328 _IMP_statistics.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_statistics)
329 IMP_COMPILER_HAS_FINAL = _IMP_statistics.IMP_COMPILER_HAS_FINAL
331 _IMP_statistics.IMP_HAS_NOEXCEPT_swigconstant(_IMP_statistics)
332 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
334 _IMP_statistics.IMP_C_OPEN_BINARY_swigconstant(_IMP_statistics)
335 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
338 _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
339 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
341 _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
342 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
344 _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
345 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
347 _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
348 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
350 _IMP_statistics.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_statistics)
351 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
353 _IMP_statistics.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
354 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
357 _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
358 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
360 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
361 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
363 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
364 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
366 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
367 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
369 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
370 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
372 _IMP_statistics.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_statistics)
373 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
375 _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_statistics)
376 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
378 _IMP_statistics.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_statistics)
379 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
381 _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_statistics)
382 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
385 _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
386 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
388 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
389 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
391 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
392 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
394 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
395 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
397 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
398 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
400 _IMP_statistics.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_statistics)
401 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
403 _IMP_statistics.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_statistics)
404 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
406 _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_statistics)
407 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
410 _plural_types.append(
"Histogram1Ds")
411 _value_types.append(
"Histogram1D")
415 _plural_types.append(
"Histogram2Ds")
416 _value_types.append(
"Histogram2D")
420 _plural_types.append(
"Histogram3Ds")
421 _value_types.append(
"Histogram3D")
425 _plural_types.append(
"Histogram4Ds")
426 _value_types.append(
"Histogram4D")
430 _plural_types.append(
"Histogram5Ds")
431 _value_types.append(
"Histogram5D")
435 _plural_types.append(
"Histogram6Ds")
436 _value_types.append(
"Histogram6D")
440 _plural_types.append(
"Histogram1Ds")
441 _value_types.append(
"HistogramD<1>")
445 _plural_types.append(
"Histogram2Ds")
446 _value_types.append(
"HistogramD<2>")
450 _plural_types.append(
"Histogram3Ds")
451 _value_types.append(
"HistogramD<3>")
455 _plural_types.append(
"Histogram4Ds")
456 _value_types.append(
"HistogramD<4>")
460 _plural_types.append(
"Histogram5Ds")
461 _value_types.append(
"HistogramD<5>")
465 _plural_types.append(
"Histogram6Ds")
466 _value_types.append(
"HistogramD<6>")
470 _plural_types.append(
"HistogramKDs")
471 _value_types.append(
"HistogramKD")
475 _plural_types.append(
"HistogramKDs")
476 _value_types.append(
"HistogramD<-1>")
479 _object_types.append(
"PartitionalClustering")
482 def _object_cast_to_PartitionalClustering(o):
483 """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
484 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
486 _object_types.append(
"PartitionalClusteringWithCenter")
489 def _object_cast_to_PartitionalClusteringWithCenter(o):
490 """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
491 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
493 _object_types.append(
"Embedding")
496 def _object_cast_to_Embedding(o):
497 """_object_cast_to_Embedding(Object o) -> Embedding"""
498 return _IMP_statistics._object_cast_to_Embedding(o)
500 _object_types.append(
"ConfigurationSetXYZEmbedding")
503 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
504 """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
505 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
507 _object_types.append(
"VectorDEmbedding")
510 def _object_cast_to_VectorDEmbedding(o):
511 """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
512 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
514 _object_types.append(
"ParticleEmbedding")
517 def _object_cast_to_ParticleEmbedding(o):
518 """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
519 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
521 _object_types.append(
"Metric")
524 def _object_cast_to_Metric(o):
525 """_object_cast_to_Metric(Object o) -> Metric"""
526 return _IMP_statistics._object_cast_to_Metric(o)
528 _object_types.append(
"EuclideanMetric")
531 def _object_cast_to_EuclideanMetric(o):
532 """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
533 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
535 _object_types.append(
"ConfigurationSetRMSDMetric")
538 def _object_cast_to_ConfigurationSetRMSDMetric(o):
539 """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
540 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
542 _object_types.append(
"RecursivePartitionalClusteringMetric")
545 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
546 """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
547 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
549 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
552 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
553 """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
554 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
556 _object_types.append(
"ChiSquareMetric")
559 def _object_cast_to_ChiSquareMetric(o):
560 """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
561 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
563 """Proxy of C++ IMP::statistics::PartitionalClustering class"""
564 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
566 def __init__(self, *args, **kwargs):
567 raise AttributeError(
"No constructor defined - class is abstract")
569 def get_number_of_clusters(self):
570 """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
571 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
574 def get_cluster(self, cluster_index):
575 """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
576 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
579 def get_cluster_representative(self, cluster_index):
580 """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
581 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
583 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
584 __del__ =
lambda self:
None
587 """__str__(PartitionalClustering self) -> std::string"""
588 return _IMP_statistics.PartitionalClustering___str__(self)
592 """__repr__(PartitionalClustering self) -> std::string"""
593 return _IMP_statistics.PartitionalClustering___repr__(self)
598 return _object_cast_to_PartitionalClustering(o)
600 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
601 PartitionalClustering_swigregister(PartitionalClustering)
605 """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
606 return _IMP_statistics.validate_partitional_clustering(pc, n)
608 """Proxy of C++ IMP::statistics::Embedding class"""
609 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
611 def __init__(self, name):
612 """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
613 if self.__class__ == Embedding:
617 this = _IMP_statistics.new_Embedding(_self, name)
619 self.this.append(this)
623 if self.__class__ != Embedding:
624 _director_objects.register(self)
629 def do_get_weight(self, i):
630 """do_get_weight(Embedding self, unsigned int i) -> double"""
631 return _IMP_statistics.Embedding_do_get_weight(self, i)
634 def get_point(self, i):
635 """get_point(Embedding self, unsigned int i) -> VectorKD"""
636 return _IMP_statistics.Embedding_get_point(self, i)
639 def get_number_of_items(self):
640 """get_number_of_items(Embedding self) -> unsigned int"""
641 return _IMP_statistics.Embedding_get_number_of_items(self)
644 def get_weight(self, i):
645 """get_weight(Embedding self, unsigned int i) -> double"""
646 return _IMP_statistics.Embedding_get_weight(self, i)
649 def get_points(self):
650 """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
651 return _IMP_statistics.Embedding_get_points(self)
655 """__str__(Embedding self) -> std::string"""
656 return _IMP_statistics.Embedding___str__(self)
660 """__repr__(Embedding self) -> std::string"""
661 return _IMP_statistics.Embedding___repr__(self)
666 return _object_cast_to_Embedding(o)
669 def get_type_name(self):
670 return self.__class__.__name__
671 def do_show(self, out):
673 def get_version_info(self):
674 if"IMP::statistics" ==
"IMP":
675 return VersionInfo(self.__module__,
682 return _object_cast_to_Embedding(o)
684 __swig_destroy__ = _IMP_statistics.delete_Embedding
685 __del__ =
lambda self:
None
686 def __disown__(self):
688 _IMP_statistics.disown_Embedding(self)
689 return weakref_proxy(self)
691 def do_destroy(self):
692 """do_destroy(Embedding self)"""
693 return _IMP_statistics.Embedding_do_destroy(self)
695 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
696 Embedding_swigregister(Embedding)
699 """Proxy of C++ IMP::statistics::Metric class"""
700 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
702 def __init__(self, name):
703 """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
704 if self.__class__ == Metric:
708 this = _IMP_statistics.new_Metric(_self, name)
710 self.this.append(this)
714 if self.__class__ != Metric:
715 _director_objects.register(self)
720 def do_get_weight(self, i):
721 """do_get_weight(Metric self, unsigned int i) -> double"""
722 return _IMP_statistics.Metric_do_get_weight(self, i)
726 """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
727 return _IMP_statistics.Metric_get_distance(self, i, j)
730 def get_weight(self, i):
731 """get_weight(Metric self, unsigned int i) -> double"""
732 return _IMP_statistics.Metric_get_weight(self, i)
735 def get_number_of_items(self):
736 """get_number_of_items(Metric self) -> unsigned int"""
737 return _IMP_statistics.Metric_get_number_of_items(self)
739 __swig_destroy__ = _IMP_statistics.delete_Metric
740 __del__ =
lambda self:
None
743 """__str__(Metric self) -> std::string"""
744 return _IMP_statistics.Metric___str__(self)
748 """__repr__(Metric self) -> std::string"""
749 return _IMP_statistics.Metric___repr__(self)
754 return _object_cast_to_Metric(o)
757 def get_type_name(self):
758 return self.__class__.__name__
759 def do_show(self, out):
761 def get_version_info(self):
762 if"IMP::statistics" ==
"IMP":
763 return VersionInfo(self.__module__,
770 return _object_cast_to_Metric(o)
772 def __disown__(self):
774 _IMP_statistics.disown_Metric(self)
775 return weakref_proxy(self)
777 def do_destroy(self):
778 """do_destroy(Metric self)"""
779 return _IMP_statistics.Metric_do_destroy(self)
781 Metric_swigregister = _IMP_statistics.Metric_swigregister
782 Metric_swigregister(Metric)
784 class ChiSquareMetric(Metric):
785 """Proxy of C++ IMP::statistics::ChiSquareMetric class"""
786 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
788 def __init__(self, data_exp, constr_type=0):
790 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
791 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
793 this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
795 self.this.append(this)
799 def add_configuration(self, data, stddev, weight=1.0):
801 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
802 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
804 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
807 def get_data(self, i):
808 """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
809 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
812 def get_standard_deviation(self, i):
813 """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
814 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
817 def do_get_weight(self, i):
818 """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
819 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
822 def get_chi_square_experimental(self, i):
823 """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
824 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
827 def get_version_info(self):
828 """get_version_info(ChiSquareMetric self) -> VersionInfo"""
829 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
833 """__str__(ChiSquareMetric self) -> std::string"""
834 return _IMP_statistics.ChiSquareMetric___str__(self)
838 """__repr__(ChiSquareMetric self) -> std::string"""
839 return _IMP_statistics.ChiSquareMetric___repr__(self)
844 return _object_cast_to_ChiSquareMetric(o)
846 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
847 ChiSquareMetric_swigregister(ChiSquareMetric)
849 class PartitionalClusteringWithCenter(PartitionalClustering):
850 """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class"""
851 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
853 def __init__(self, *args, **kwargs):
854 raise AttributeError(
"No constructor defined")
856 def get_cluster_center(self, i):
857 """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
858 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
861 def get_version_info(self):
862 """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
863 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
867 """__str__(PartitionalClusteringWithCenter self) -> std::string"""
868 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
872 """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
873 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
878 return _object_cast_to_PartitionalClusteringWithCenter(o)
880 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
881 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
883 class ConfigurationSetXYZEmbedding(Embedding):
884 """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class"""
885 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
887 def __init__(self, cs, pi, align=False):
889 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
890 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
892 this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
894 self.this.append(this)
898 def get_version_info(self):
899 """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
900 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
904 """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
905 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
909 """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
910 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
915 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
917 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
918 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
920 class ParticleEmbedding(Embedding):
921 """Proxy of C++ IMP::statistics::ParticleEmbedding class"""
922 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
924 def __init__(self, *args):
926 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
927 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
928 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
930 this = _IMP_statistics.new_ParticleEmbedding(*args)
932 self.this.append(this)
936 def get_version_info(self):
937 """get_version_info(ParticleEmbedding self) -> VersionInfo"""
938 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
942 """__str__(ParticleEmbedding self) -> std::string"""
943 return _IMP_statistics.ParticleEmbedding___str__(self)
947 """__repr__(ParticleEmbedding self) -> std::string"""
948 return _IMP_statistics.ParticleEmbedding___repr__(self)
953 return _object_cast_to_ParticleEmbedding(o)
955 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
956 ParticleEmbedding_swigregister(ParticleEmbedding)
958 class VectorDEmbedding(Embedding):
959 """Proxy of C++ IMP::statistics::VectorDEmbedding class"""
960 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
962 def __init__(self, *args):
964 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
965 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
966 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
967 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
968 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
969 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
971 this = _IMP_statistics.new_VectorDEmbedding(*args)
973 self.this.append(this)
977 def get_version_info(self):
978 """get_version_info(VectorDEmbedding self) -> VersionInfo"""
979 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
983 """__str__(VectorDEmbedding self) -> std::string"""
984 return _IMP_statistics.VectorDEmbedding___str__(self)
988 """__repr__(VectorDEmbedding self) -> std::string"""
989 return _IMP_statistics.VectorDEmbedding___repr__(self)
994 return _object_cast_to_VectorDEmbedding(o)
996 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
997 VectorDEmbedding_swigregister(VectorDEmbedding)
999 class EuclideanMetric(Metric):
1000 """Proxy of C++ IMP::statistics::EuclideanMetric class"""
1001 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1003 def __init__(self, em):
1004 """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
1005 this = _IMP_statistics.new_EuclideanMetric(em)
1007 self.this.append(this)
1011 def get_version_info(self):
1012 """get_version_info(EuclideanMetric self) -> VersionInfo"""
1013 return _IMP_statistics.EuclideanMetric_get_version_info(self)
1017 """__str__(EuclideanMetric self) -> std::string"""
1018 return _IMP_statistics.EuclideanMetric___str__(self)
1022 """__repr__(EuclideanMetric self) -> std::string"""
1023 return _IMP_statistics.EuclideanMetric___repr__(self)
1028 return _object_cast_to_EuclideanMetric(o)
1030 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
1031 EuclideanMetric_swigregister(EuclideanMetric)
1033 class ConfigurationSetRMSDMetric(Metric):
1034 """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class"""
1035 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1037 def __init__(self, cs, sc, align=False):
1039 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
1040 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
1042 this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
1044 self.this.append(this)
1048 def get_version_info(self):
1049 """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
1050 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
1054 """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
1055 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
1059 """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
1060 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
1065 return _object_cast_to_ConfigurationSetRMSDMetric(o)
1067 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
1068 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
1072 """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
1073 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
1076 """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
1077 return _IMP_statistics.create_bin_based_clustering(embed, side)
1081 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1082 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1084 return _IMP_statistics.create_centrality_clustering(*args)
1087 """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1088 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1092 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1093 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1095 return _IMP_statistics.create_connectivity_clustering(*args)
1097 def create_gromos_clustering(d, cutoff):
1098 """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1099 return _IMP_statistics.create_gromos_clustering(d, cutoff)
1102 """get_quantile(Histogram1D h, double fraction) -> double"""
1103 return _IMP_statistics.get_quantile(h, fraction)
1106 """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1107 return _IMP_statistics.get_centroids(d, pc)
1110 """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1111 return _IMP_statistics.get_representatives(d, pc)
1112 class RecursivePartitionalClusteringEmbedding(Embedding):
1113 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class"""
1114 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1116 def __init__(self, metric, clustering):
1117 """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1118 this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1120 self.this.append(this)
1124 def create_full_clustering(self, center_cluster):
1125 """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1126 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1129 def get_version_info(self):
1130 """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1131 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1135 """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1136 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1140 """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1141 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1146 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1148 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1149 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1151 class RecursivePartitionalClusteringMetric(Metric):
1152 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class"""
1153 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1155 def __init__(self, metric, clustering):
1156 """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1157 this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1159 self.this.append(this)
1163 def create_full_clustering(self, center_cluster):
1164 """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1165 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1168 def get_version_info(self):
1169 """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1170 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1174 """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1175 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1179 """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1180 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1185 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1187 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1188 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1190 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1191 """Proxy of C++ IMP::statistics::HistogramD<(1)> class"""
1192 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1194 def __init__(self, *args):
1196 __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1197 __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1199 this = _IMP_statistics.new_Histogram1D(*args)
1201 self.this.append(this)
1205 def add(self, x, weight=1):
1207 add(Histogram1D self, Vector1D x, double weight=1)
1208 add(Histogram1D self, Vector1D x)
1210 return _IMP_statistics.Histogram1D_add(self, x, weight)
1213 def get_total_count(self):
1214 """get_total_count(Histogram1D self) -> double"""
1215 return _IMP_statistics.Histogram1D_get_total_count(self)
1218 def get_frequencies(self):
1219 """get_frequencies(Histogram1D self) -> Histogram1D"""
1220 return _IMP_statistics.Histogram1D_get_frequencies(self)
1223 def get_probability_distribution_function(self):
1224 """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1225 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1228 def get_counts(self):
1229 """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1230 return _IMP_statistics.Histogram1D_get_counts(self)
1234 """get_mean(Histogram1D self) -> Vector1D"""
1235 return _IMP_statistics.Histogram1D_get_mean(self)
1238 def get_dimension(self):
1239 """get_dimension(Histogram1D self) -> unsigned int"""
1240 return _IMP_statistics.Histogram1D_get_dimension(self)
1243 def get_standard_deviation(self, mean):
1244 """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1245 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1248 def get_bounding_box(self):
1249 """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1250 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1253 def get_minimum_and_maximum(self):
1254 """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1255 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1258 def show(self, *args):
1260 show(Histogram1D self, _ostream out)
1261 show(Histogram1D self)
1263 return _IMP_statistics.Histogram1D_show(self, *args)
1267 """__str__(Histogram1D self) -> std::string"""
1268 return _IMP_statistics.Histogram1D___str__(self)
1272 """__repr__(Histogram1D self) -> std::string"""
1273 return _IMP_statistics.Histogram1D___repr__(self)
1276 def __cmp__(self, arg2):
1277 """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1278 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1281 def __eq__(self, arg2):
1282 """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1283 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1285 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1286 __del__ =
lambda self:
None
1287 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1288 Histogram1D_swigregister(Histogram1D)
1290 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1291 """Proxy of C++ IMP::statistics::HistogramD<(2)> class"""
1292 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1294 def __init__(self, *args):
1296 __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1297 __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1299 this = _IMP_statistics.new_Histogram2D(*args)
1301 self.this.append(this)
1305 def add(self, x, weight=1):
1307 add(Histogram2D self, Vector2D x, double weight=1)
1308 add(Histogram2D self, Vector2D x)
1310 return _IMP_statistics.Histogram2D_add(self, x, weight)
1313 def get_total_count(self):
1314 """get_total_count(Histogram2D self) -> double"""
1315 return _IMP_statistics.Histogram2D_get_total_count(self)
1318 def get_frequencies(self):
1319 """get_frequencies(Histogram2D self) -> Histogram2D"""
1320 return _IMP_statistics.Histogram2D_get_frequencies(self)
1323 def get_probability_distribution_function(self):
1324 """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1325 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1328 def get_counts(self):
1329 """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1330 return _IMP_statistics.Histogram2D_get_counts(self)
1334 """get_mean(Histogram2D self) -> Vector2D"""
1335 return _IMP_statistics.Histogram2D_get_mean(self)
1338 def get_dimension(self):
1339 """get_dimension(Histogram2D self) -> unsigned int"""
1340 return _IMP_statistics.Histogram2D_get_dimension(self)
1343 def get_standard_deviation(self, mean):
1344 """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1345 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1348 def get_bounding_box(self):
1349 """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1350 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1353 def get_minimum_and_maximum(self):
1354 """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1355 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1358 def show(self, *args):
1360 show(Histogram2D self, _ostream out)
1361 show(Histogram2D self)
1363 return _IMP_statistics.Histogram2D_show(self, *args)
1367 """__str__(Histogram2D self) -> std::string"""
1368 return _IMP_statistics.Histogram2D___str__(self)
1372 """__repr__(Histogram2D self) -> std::string"""
1373 return _IMP_statistics.Histogram2D___repr__(self)
1376 def __cmp__(self, arg2):
1377 """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1378 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1381 def __eq__(self, arg2):
1382 """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1383 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1385 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1386 __del__ =
lambda self:
None
1387 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1388 Histogram2D_swigregister(Histogram2D)
1390 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1391 """Proxy of C++ IMP::statistics::HistogramD<(3)> class"""
1392 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1394 def __init__(self, *args):
1396 __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1397 __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1399 this = _IMP_statistics.new_Histogram3D(*args)
1401 self.this.append(this)
1405 def add(self, x, weight=1):
1407 add(Histogram3D self, Vector3D x, double weight=1)
1408 add(Histogram3D self, Vector3D x)
1410 return _IMP_statistics.Histogram3D_add(self, x, weight)
1413 def get_total_count(self):
1414 """get_total_count(Histogram3D self) -> double"""
1415 return _IMP_statistics.Histogram3D_get_total_count(self)
1418 def get_frequencies(self):
1419 """get_frequencies(Histogram3D self) -> Histogram3D"""
1420 return _IMP_statistics.Histogram3D_get_frequencies(self)
1423 def get_probability_distribution_function(self):
1424 """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1425 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1428 def get_counts(self):
1429 """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1430 return _IMP_statistics.Histogram3D_get_counts(self)
1434 """get_mean(Histogram3D self) -> Vector3D"""
1435 return _IMP_statistics.Histogram3D_get_mean(self)
1438 def get_dimension(self):
1439 """get_dimension(Histogram3D self) -> unsigned int"""
1440 return _IMP_statistics.Histogram3D_get_dimension(self)
1443 def get_standard_deviation(self, mean):
1444 """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1445 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1448 def get_bounding_box(self):
1449 """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1450 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1453 def get_minimum_and_maximum(self):
1454 """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1455 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1458 def show(self, *args):
1460 show(Histogram3D self, _ostream out)
1461 show(Histogram3D self)
1463 return _IMP_statistics.Histogram3D_show(self, *args)
1467 """__str__(Histogram3D self) -> std::string"""
1468 return _IMP_statistics.Histogram3D___str__(self)
1472 """__repr__(Histogram3D self) -> std::string"""
1473 return _IMP_statistics.Histogram3D___repr__(self)
1476 def __cmp__(self, arg2):
1477 """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1478 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1481 def __eq__(self, arg2):
1482 """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1483 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1485 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1486 __del__ =
lambda self:
None
1487 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1488 Histogram3D_swigregister(Histogram3D)
1490 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1491 """Proxy of C++ IMP::statistics::HistogramD<(4)> class"""
1492 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1494 def __init__(self, *args):
1496 __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1497 __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1499 this = _IMP_statistics.new_Histogram4D(*args)
1501 self.this.append(this)
1505 def add(self, x, weight=1):
1507 add(Histogram4D self, Vector4D x, double weight=1)
1508 add(Histogram4D self, Vector4D x)
1510 return _IMP_statistics.Histogram4D_add(self, x, weight)
1513 def get_total_count(self):
1514 """get_total_count(Histogram4D self) -> double"""
1515 return _IMP_statistics.Histogram4D_get_total_count(self)
1518 def get_frequencies(self):
1519 """get_frequencies(Histogram4D self) -> Histogram4D"""
1520 return _IMP_statistics.Histogram4D_get_frequencies(self)
1523 def get_probability_distribution_function(self):
1524 """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1525 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1528 def get_counts(self):
1529 """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1530 return _IMP_statistics.Histogram4D_get_counts(self)
1534 """get_mean(Histogram4D self) -> Vector4D"""
1535 return _IMP_statistics.Histogram4D_get_mean(self)
1538 def get_dimension(self):
1539 """get_dimension(Histogram4D self) -> unsigned int"""
1540 return _IMP_statistics.Histogram4D_get_dimension(self)
1543 def get_standard_deviation(self, mean):
1544 """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1545 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1548 def get_bounding_box(self):
1549 """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1550 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1553 def get_minimum_and_maximum(self):
1554 """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1555 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1558 def show(self, *args):
1560 show(Histogram4D self, _ostream out)
1561 show(Histogram4D self)
1563 return _IMP_statistics.Histogram4D_show(self, *args)
1567 """__str__(Histogram4D self) -> std::string"""
1568 return _IMP_statistics.Histogram4D___str__(self)
1572 """__repr__(Histogram4D self) -> std::string"""
1573 return _IMP_statistics.Histogram4D___repr__(self)
1576 def __cmp__(self, arg2):
1577 """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1578 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1581 def __eq__(self, arg2):
1582 """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1583 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1585 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1586 __del__ =
lambda self:
None
1587 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1588 Histogram4D_swigregister(Histogram4D)
1590 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1591 """Proxy of C++ IMP::statistics::HistogramD<(5)> class"""
1592 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1594 def __init__(self, *args):
1596 __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1597 __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1599 this = _IMP_statistics.new_Histogram5D(*args)
1601 self.this.append(this)
1605 def add(self, x, weight=1):
1607 add(Histogram5D self, Vector5D x, double weight=1)
1608 add(Histogram5D self, Vector5D x)
1610 return _IMP_statistics.Histogram5D_add(self, x, weight)
1613 def get_total_count(self):
1614 """get_total_count(Histogram5D self) -> double"""
1615 return _IMP_statistics.Histogram5D_get_total_count(self)
1618 def get_frequencies(self):
1619 """get_frequencies(Histogram5D self) -> Histogram5D"""
1620 return _IMP_statistics.Histogram5D_get_frequencies(self)
1623 def get_probability_distribution_function(self):
1624 """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1625 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1628 def get_counts(self):
1629 """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1630 return _IMP_statistics.Histogram5D_get_counts(self)
1634 """get_mean(Histogram5D self) -> Vector5D"""
1635 return _IMP_statistics.Histogram5D_get_mean(self)
1638 def get_dimension(self):
1639 """get_dimension(Histogram5D self) -> unsigned int"""
1640 return _IMP_statistics.Histogram5D_get_dimension(self)
1643 def get_standard_deviation(self, mean):
1644 """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1645 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1648 def get_bounding_box(self):
1649 """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1650 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1653 def get_minimum_and_maximum(self):
1654 """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1655 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1658 def show(self, *args):
1660 show(Histogram5D self, _ostream out)
1661 show(Histogram5D self)
1663 return _IMP_statistics.Histogram5D_show(self, *args)
1667 """__str__(Histogram5D self) -> std::string"""
1668 return _IMP_statistics.Histogram5D___str__(self)
1672 """__repr__(Histogram5D self) -> std::string"""
1673 return _IMP_statistics.Histogram5D___repr__(self)
1676 def __cmp__(self, arg2):
1677 """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1678 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1681 def __eq__(self, arg2):
1682 """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1683 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1685 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1686 __del__ =
lambda self:
None
1687 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1688 Histogram5D_swigregister(Histogram5D)
1690 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1691 """Proxy of C++ IMP::statistics::HistogramD<(6)> class"""
1692 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1694 def __init__(self, *args):
1696 __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1697 __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1699 this = _IMP_statistics.new_Histogram6D(*args)
1701 self.this.append(this)
1705 def add(self, x, weight=1):
1707 add(Histogram6D self, Vector6D x, double weight=1)
1708 add(Histogram6D self, Vector6D x)
1710 return _IMP_statistics.Histogram6D_add(self, x, weight)
1713 def get_total_count(self):
1714 """get_total_count(Histogram6D self) -> double"""
1715 return _IMP_statistics.Histogram6D_get_total_count(self)
1718 def get_frequencies(self):
1719 """get_frequencies(Histogram6D self) -> Histogram6D"""
1720 return _IMP_statistics.Histogram6D_get_frequencies(self)
1723 def get_probability_distribution_function(self):
1724 """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1725 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1728 def get_counts(self):
1729 """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1730 return _IMP_statistics.Histogram6D_get_counts(self)
1734 """get_mean(Histogram6D self) -> Vector6D"""
1735 return _IMP_statistics.Histogram6D_get_mean(self)
1738 def get_dimension(self):
1739 """get_dimension(Histogram6D self) -> unsigned int"""
1740 return _IMP_statistics.Histogram6D_get_dimension(self)
1743 def get_standard_deviation(self, mean):
1744 """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1745 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1748 def get_bounding_box(self):
1749 """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1750 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1753 def get_minimum_and_maximum(self):
1754 """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1755 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1758 def show(self, *args):
1760 show(Histogram6D self, _ostream out)
1761 show(Histogram6D self)
1763 return _IMP_statistics.Histogram6D_show(self, *args)
1767 """__str__(Histogram6D self) -> std::string"""
1768 return _IMP_statistics.Histogram6D___str__(self)
1772 """__repr__(Histogram6D self) -> std::string"""
1773 return _IMP_statistics.Histogram6D___repr__(self)
1776 def __cmp__(self, arg2):
1777 """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1778 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1781 def __eq__(self, arg2):
1782 """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1783 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1785 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1786 __del__ =
lambda self:
None
1787 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1788 Histogram6D_swigregister(Histogram6D)
1790 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1791 """Proxy of C++ IMP::statistics::HistogramD<(-1)> class"""
1792 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1794 def __init__(self, *args):
1796 __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1797 __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1799 this = _IMP_statistics.new_HistogramKD(*args)
1801 self.this.append(this)
1805 def add(self, x, weight=1):
1807 add(HistogramKD self, VectorKD x, double weight=1)
1808 add(HistogramKD self, VectorKD x)
1810 return _IMP_statistics.HistogramKD_add(self, x, weight)
1813 def get_total_count(self):
1814 """get_total_count(HistogramKD self) -> double"""
1815 return _IMP_statistics.HistogramKD_get_total_count(self)
1818 def get_frequencies(self):
1819 """get_frequencies(HistogramKD self) -> HistogramKD"""
1820 return _IMP_statistics.HistogramKD_get_frequencies(self)
1823 def get_probability_distribution_function(self):
1824 """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1825 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1828 def get_counts(self):
1829 """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1830 return _IMP_statistics.HistogramKD_get_counts(self)
1834 """get_mean(HistogramKD self) -> VectorKD"""
1835 return _IMP_statistics.HistogramKD_get_mean(self)
1838 def get_dimension(self):
1839 """get_dimension(HistogramKD self) -> unsigned int"""
1840 return _IMP_statistics.HistogramKD_get_dimension(self)
1843 def get_standard_deviation(self, mean):
1844 """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1845 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1848 def get_bounding_box(self):
1849 """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1850 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1853 def get_minimum_and_maximum(self):
1854 """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1855 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1858 def show(self, *args):
1860 show(HistogramKD self, _ostream out)
1861 show(HistogramKD self)
1863 return _IMP_statistics.HistogramKD_show(self, *args)
1867 """__str__(HistogramKD self) -> std::string"""
1868 return _IMP_statistics.HistogramKD___str__(self)
1872 """__repr__(HistogramKD self) -> std::string"""
1873 return _IMP_statistics.HistogramKD___repr__(self)
1876 def __cmp__(self, arg2):
1877 """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1878 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1881 def __eq__(self, arg2):
1882 """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1883 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1885 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1886 __del__ =
lambda self:
None
1887 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1888 HistogramKD_swigregister(HistogramKD)
1890 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1891 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class"""
1892 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1893 __repr__ = _swig_repr
1895 def __setitem__(self, *args):
1897 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1898 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1900 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1903 def __getitem__(self, *args):
1905 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1906 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1908 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1911 def __init__(self, *args):
1913 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1914 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1915 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1916 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1917 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1919 this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1921 self.this.append(this)
1926 """get_is_dense() -> bool"""
1927 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1929 get_is_dense = staticmethod(get_is_dense)
1931 def show(self, *args):
1933 show(_IntDenseGridStorageKD self, _ostream out)
1934 show(_IntDenseGridStorageKD self)
1936 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1939 def add_voxel(self, arg2, arg3):
1940 """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1941 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1944 def get_all_voxels(self):
1945 """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1946 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1948 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1949 __del__ =
lambda self:
None
1950 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1951 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1953 def _IntDenseGridStorageKD_get_is_dense():
1954 """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1955 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1957 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1958 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class"""
1959 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1960 __repr__ = _swig_repr
1962 def __setitem__(self, *args):
1964 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1965 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1967 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1970 def __getitem__(self, *args):
1972 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1973 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1975 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1978 def __init__(self, *args):
1980 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1981 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1982 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1983 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1984 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1986 this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1988 self.this.append(this)
1993 """get_is_dense() -> bool"""
1994 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1996 get_is_dense = staticmethod(get_is_dense)
1998 def show(self, *args):
2000 show(_FloatDenseGridStorageKD self, _ostream out)
2001 show(_FloatDenseGridStorageKD self)
2003 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
2006 def add_voxel(self, arg2, arg3):
2007 """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
2008 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
2011 def get_all_voxels(self):
2012 """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
2013 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
2015 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
2016 __del__ =
lambda self:
None
2017 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
2018 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
2020 def _FloatDenseGridStorageKD_get_is_dense():
2021 """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
2022 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2024 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
2025 """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class"""
2026 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2027 __repr__ = _swig_repr
2029 def __init__(self, *args):
2031 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb, double default_value) -> _HistogramCountsGridKD
2032 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
2033 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
2034 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
2035 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
2036 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
2037 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
2038 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
2039 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
2040 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
2041 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
2042 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
2044 this = _IMP_statistics.new__HistogramCountsGridKD(*args)
2046 self.this.append(this)
2050 def show(self, *args):
2052 show(_HistogramCountsGridKD self, _ostream out)
2053 show(_HistogramCountsGridKD self)
2055 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
2058 def __getitem__(self, *args):
2060 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
2061 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
2063 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
2066 def __setitem__(self, *args):
2068 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
2069 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2071 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2074 def add_voxel(self, pt, vt):
2075 """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2076 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2079 def get_extended_index(self, index):
2080 """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2081 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2084 def get_bounding_box(self, *args):
2086 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2087 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2088 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2090 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2093 def set_bounding_box(self, bb3):
2094 """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2095 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2098 def get_nearest_index(self, pt):
2099 """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2100 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2103 def get_nearest_extended_index(self, pt):
2104 """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2105 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2107 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2108 __del__ =
lambda self:
None
2109 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2110 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2112 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2113 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class"""
2114 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2115 __repr__ = _swig_repr
2117 def __setitem__(self, *args):
2119 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2120 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2122 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2125 def __getitem__(self, *args):
2127 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2128 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2130 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2133 def __init__(self, *args):
2135 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2136 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2137 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2138 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2139 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2141 this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2143 self.this.append(this)
2148 """get_is_dense() -> bool"""
2149 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2151 get_is_dense = staticmethod(get_is_dense)
2153 def show(self, *args):
2155 show(_IntDenseGridStorage1D self, _ostream out)
2156 show(_IntDenseGridStorage1D self)
2158 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2161 def add_voxel(self, arg2, arg3):
2162 """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2163 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2166 def get_all_voxels(self):
2167 """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2168 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2170 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2171 __del__ =
lambda self:
None
2172 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2173 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2175 def _IntDenseGridStorage1D_get_is_dense():
2176 """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2177 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2179 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2180 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class"""
2181 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2182 __repr__ = _swig_repr
2184 def __setitem__(self, *args):
2186 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2187 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2189 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2192 def __getitem__(self, *args):
2194 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2195 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2197 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2200 def __init__(self, *args):
2202 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2203 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2204 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2205 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2206 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2208 this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2210 self.this.append(this)
2215 """get_is_dense() -> bool"""
2216 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2218 get_is_dense = staticmethod(get_is_dense)
2220 def show(self, *args):
2222 show(_FloatDenseGridStorage1D self, _ostream out)
2223 show(_FloatDenseGridStorage1D self)
2225 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2228 def add_voxel(self, arg2, arg3):
2229 """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2230 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2233 def get_all_voxels(self):
2234 """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2235 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2237 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2238 __del__ =
lambda self:
None
2239 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2240 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2242 def _FloatDenseGridStorage1D_get_is_dense():
2243 """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2244 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2246 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2247 """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class"""
2248 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2249 __repr__ = _swig_repr
2251 def __init__(self, *args):
2253 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb, double default_value) -> _HistogramCountsGrid1D
2254 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2255 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2256 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2257 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2258 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2259 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2260 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2261 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2262 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2263 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2264 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2266 this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2268 self.this.append(this)
2272 def show(self, *args):
2274 show(_HistogramCountsGrid1D self, _ostream out)
2275 show(_HistogramCountsGrid1D self)
2277 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2280 def __getitem__(self, *args):
2282 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2283 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2285 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2288 def __setitem__(self, *args):
2290 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2291 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2293 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2296 def add_voxel(self, pt, vt):
2297 """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2298 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2301 def get_extended_index(self, index):
2302 """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2303 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2306 def get_bounding_box(self, *args):
2308 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2309 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2310 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2312 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2315 def set_bounding_box(self, bb3):
2316 """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2317 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2320 def get_nearest_index(self, pt):
2321 """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2322 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2325 def get_nearest_extended_index(self, pt):
2326 """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2327 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2329 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2330 __del__ =
lambda self:
None
2331 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2332 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2334 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2335 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class"""
2336 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2337 __repr__ = _swig_repr
2339 def __setitem__(self, *args):
2341 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2342 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2344 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2347 def __getitem__(self, *args):
2349 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2350 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2352 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2355 def __init__(self, *args):
2357 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2358 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2359 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2360 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2361 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2363 this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2365 self.this.append(this)
2370 """get_is_dense() -> bool"""
2371 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2373 get_is_dense = staticmethod(get_is_dense)
2375 def show(self, *args):
2377 show(_IntDenseGridStorage2D self, _ostream out)
2378 show(_IntDenseGridStorage2D self)
2380 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2383 def add_voxel(self, arg2, arg3):
2384 """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2385 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2388 def get_all_voxels(self):
2389 """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2390 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2392 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2393 __del__ =
lambda self:
None
2394 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2395 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2397 def _IntDenseGridStorage2D_get_is_dense():
2398 """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2399 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2401 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2402 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class"""
2403 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2404 __repr__ = _swig_repr
2406 def __setitem__(self, *args):
2408 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2409 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2411 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2414 def __getitem__(self, *args):
2416 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2417 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2419 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2422 def __init__(self, *args):
2424 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2425 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2426 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2427 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2428 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2430 this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2432 self.this.append(this)
2437 """get_is_dense() -> bool"""
2438 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2440 get_is_dense = staticmethod(get_is_dense)
2442 def show(self, *args):
2444 show(_FloatDenseGridStorage2D self, _ostream out)
2445 show(_FloatDenseGridStorage2D self)
2447 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2450 def add_voxel(self, arg2, arg3):
2451 """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2452 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2455 def get_all_voxels(self):
2456 """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2457 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2459 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2460 __del__ =
lambda self:
None
2461 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2462 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2464 def _FloatDenseGridStorage2D_get_is_dense():
2465 """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2466 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2468 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2469 """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class"""
2470 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2471 __repr__ = _swig_repr
2473 def __init__(self, *args):
2475 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb, double default_value) -> _HistogramCountsGrid2D
2476 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2477 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2478 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2479 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2480 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2481 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2482 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2483 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2484 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2485 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2486 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2488 this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2490 self.this.append(this)
2494 def show(self, *args):
2496 show(_HistogramCountsGrid2D self, _ostream out)
2497 show(_HistogramCountsGrid2D self)
2499 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2502 def __getitem__(self, *args):
2504 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2505 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2507 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2510 def __setitem__(self, *args):
2512 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2513 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2515 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2518 def add_voxel(self, pt, vt):
2519 """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2520 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2523 def get_extended_index(self, index):
2524 """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2525 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2528 def get_bounding_box(self, *args):
2530 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2531 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2532 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2534 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2537 def set_bounding_box(self, bb3):
2538 """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2539 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2542 def get_nearest_index(self, pt):
2543 """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2544 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2547 def get_nearest_extended_index(self, pt):
2548 """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2549 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2551 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2552 __del__ =
lambda self:
None
2553 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2554 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2556 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2557 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class"""
2558 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2559 __repr__ = _swig_repr
2561 def __setitem__(self, *args):
2563 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2564 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2566 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2569 def __getitem__(self, *args):
2571 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2572 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2574 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2577 def __init__(self, *args):
2579 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2580 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2581 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2582 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2583 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2585 this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2587 self.this.append(this)
2592 """get_is_dense() -> bool"""
2593 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2595 get_is_dense = staticmethod(get_is_dense)
2597 def show(self, *args):
2599 show(_IntDenseGridStorage3D self, _ostream out)
2600 show(_IntDenseGridStorage3D self)
2602 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2605 def add_voxel(self, arg2, arg3):
2606 """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2607 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2610 def get_all_voxels(self):
2611 """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2612 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2614 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2615 __del__ =
lambda self:
None
2616 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2617 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2619 def _IntDenseGridStorage3D_get_is_dense():
2620 """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2621 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2623 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2624 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class"""
2625 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2626 __repr__ = _swig_repr
2628 def __setitem__(self, *args):
2630 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2631 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2633 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2636 def __getitem__(self, *args):
2638 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2639 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2641 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2644 def __init__(self, *args):
2646 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2647 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2648 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2649 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2650 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2652 this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2654 self.this.append(this)
2659 """get_is_dense() -> bool"""
2660 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2662 get_is_dense = staticmethod(get_is_dense)
2664 def show(self, *args):
2666 show(_FloatDenseGridStorage3D self, _ostream out)
2667 show(_FloatDenseGridStorage3D self)
2669 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2672 def add_voxel(self, arg2, arg3):
2673 """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2674 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2677 def get_all_voxels(self):
2678 """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2679 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2681 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2682 __del__ =
lambda self:
None
2683 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2684 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2686 def _FloatDenseGridStorage3D_get_is_dense():
2687 """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2688 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2690 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2691 """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class"""
2692 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2693 __repr__ = _swig_repr
2695 def __init__(self, *args):
2697 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb, double default_value) -> _HistogramCountsGrid3D
2698 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2699 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2700 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2701 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2702 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2703 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2704 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2705 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2706 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2707 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2708 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2710 this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2712 self.this.append(this)
2716 def show(self, *args):
2718 show(_HistogramCountsGrid3D self, _ostream out)
2719 show(_HistogramCountsGrid3D self)
2721 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2724 def __getitem__(self, *args):
2726 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2727 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2729 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2732 def __setitem__(self, *args):
2734 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2735 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2737 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2740 def add_voxel(self, pt, vt):
2741 """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2742 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2745 def get_extended_index(self, index):
2746 """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2747 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2750 def get_bounding_box(self, *args):
2752 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2753 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2754 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2756 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2759 def set_bounding_box(self, bb3):
2760 """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2761 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2764 def get_nearest_index(self, pt):
2765 """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2766 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2769 def get_nearest_extended_index(self, pt):
2770 """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2771 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2773 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2774 __del__ =
lambda self:
None
2775 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2776 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2778 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2779 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class"""
2780 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2781 __repr__ = _swig_repr
2783 def __setitem__(self, *args):
2785 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2786 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2788 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2791 def __getitem__(self, *args):
2793 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2794 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2796 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2799 def __init__(self, *args):
2801 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2802 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2803 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2804 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2805 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2807 this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2809 self.this.append(this)
2814 """get_is_dense() -> bool"""
2815 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2817 get_is_dense = staticmethod(get_is_dense)
2819 def show(self, *args):
2821 show(_IntDenseGridStorage4D self, _ostream out)
2822 show(_IntDenseGridStorage4D self)
2824 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2827 def add_voxel(self, arg2, arg3):
2828 """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2829 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2832 def get_all_voxels(self):
2833 """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2834 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2836 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2837 __del__ =
lambda self:
None
2838 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2839 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2841 def _IntDenseGridStorage4D_get_is_dense():
2842 """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2843 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2845 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2846 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class"""
2847 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2848 __repr__ = _swig_repr
2850 def __setitem__(self, *args):
2852 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2853 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2855 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2858 def __getitem__(self, *args):
2860 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2861 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2863 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2866 def __init__(self, *args):
2868 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2869 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2870 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2871 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2872 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2874 this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2876 self.this.append(this)
2881 """get_is_dense() -> bool"""
2882 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2884 get_is_dense = staticmethod(get_is_dense)
2886 def show(self, *args):
2888 show(_FloatDenseGridStorage4D self, _ostream out)
2889 show(_FloatDenseGridStorage4D self)
2891 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2894 def add_voxel(self, arg2, arg3):
2895 """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2896 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2899 def get_all_voxels(self):
2900 """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2901 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2903 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2904 __del__ =
lambda self:
None
2905 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2906 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2908 def _FloatDenseGridStorage4D_get_is_dense():
2909 """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2910 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2912 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2913 """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class"""
2914 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2915 __repr__ = _swig_repr
2917 def __init__(self, *args):
2919 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb, double default_value) -> _HistogramCountsGrid4D
2920 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2921 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2922 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2923 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2924 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2925 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2926 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2927 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2928 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2929 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2930 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2932 this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2934 self.this.append(this)
2938 def show(self, *args):
2940 show(_HistogramCountsGrid4D self, _ostream out)
2941 show(_HistogramCountsGrid4D self)
2943 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2946 def __getitem__(self, *args):
2948 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2949 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2951 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2954 def __setitem__(self, *args):
2956 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2957 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2959 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2962 def add_voxel(self, pt, vt):
2963 """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2964 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2967 def get_extended_index(self, index):
2968 """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2969 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2972 def get_bounding_box(self, *args):
2974 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2975 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2976 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2978 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2981 def set_bounding_box(self, bb3):
2982 """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2983 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2986 def get_nearest_index(self, pt):
2987 """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2988 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2991 def get_nearest_extended_index(self, pt):
2992 """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2993 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2995 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2996 __del__ =
lambda self:
None
2997 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
2998 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
3000 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3001 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class"""
3002 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3003 __repr__ = _swig_repr
3005 def __setitem__(self, *args):
3007 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
3008 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
3010 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
3013 def __getitem__(self, *args):
3015 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
3016 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
3018 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
3021 def __init__(self, *args):
3023 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
3024 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
3025 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
3026 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
3027 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
3029 this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
3031 self.this.append(this)
3036 """get_is_dense() -> bool"""
3037 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3039 get_is_dense = staticmethod(get_is_dense)
3041 def show(self, *args):
3043 show(_IntDenseGridStorage5D self, _ostream out)
3044 show(_IntDenseGridStorage5D self)
3046 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
3049 def add_voxel(self, arg2, arg3):
3050 """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
3051 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
3054 def get_all_voxels(self):
3055 """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
3056 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3058 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3059 __del__ =
lambda self:
None
3060 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3061 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3063 def _IntDenseGridStorage5D_get_is_dense():
3064 """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3065 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3067 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3068 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class"""
3069 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3070 __repr__ = _swig_repr
3072 def __setitem__(self, *args):
3074 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3075 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3077 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3080 def __getitem__(self, *args):
3082 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3083 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3085 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3088 def __init__(self, *args):
3090 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3091 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3092 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3093 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3094 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3096 this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3098 self.this.append(this)
3103 """get_is_dense() -> bool"""
3104 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3106 get_is_dense = staticmethod(get_is_dense)
3108 def show(self, *args):
3110 show(_FloatDenseGridStorage5D self, _ostream out)
3111 show(_FloatDenseGridStorage5D self)
3113 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3116 def add_voxel(self, arg2, arg3):
3117 """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3118 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3121 def get_all_voxels(self):
3122 """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3123 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3125 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3126 __del__ =
lambda self:
None
3127 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3128 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3130 def _FloatDenseGridStorage5D_get_is_dense():
3131 """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3132 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3134 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3135 """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class"""
3136 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3137 __repr__ = _swig_repr
3139 def __init__(self, *args):
3141 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb, double default_value) -> _HistogramCountsGrid5D
3142 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3143 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3144 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3145 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3146 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3147 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3148 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3149 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3150 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3151 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3152 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3154 this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3156 self.this.append(this)
3160 def show(self, *args):
3162 show(_HistogramCountsGrid5D self, _ostream out)
3163 show(_HistogramCountsGrid5D self)
3165 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3168 def __getitem__(self, *args):
3170 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3171 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3173 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3176 def __setitem__(self, *args):
3178 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3179 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3181 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3184 def add_voxel(self, pt, vt):
3185 """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3186 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3189 def get_extended_index(self, index):
3190 """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3191 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3194 def get_bounding_box(self, *args):
3196 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3197 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3198 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3200 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3203 def set_bounding_box(self, bb3):
3204 """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3205 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3208 def get_nearest_index(self, pt):
3209 """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3210 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3213 def get_nearest_extended_index(self, pt):
3214 """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3215 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3217 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3218 __del__ =
lambda self:
None
3219 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3220 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3222 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3223 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class"""
3224 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3225 __repr__ = _swig_repr
3227 def __setitem__(self, *args):
3229 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3230 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3232 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3235 def __getitem__(self, *args):
3237 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3238 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3240 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3243 def __init__(self, *args):
3245 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3246 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3247 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3248 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3249 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3251 this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3253 self.this.append(this)
3258 """get_is_dense() -> bool"""
3259 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3261 get_is_dense = staticmethod(get_is_dense)
3263 def show(self, *args):
3265 show(_IntDenseGridStorage6D self, _ostream out)
3266 show(_IntDenseGridStorage6D self)
3268 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3271 def add_voxel(self, arg2, arg3):
3272 """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3273 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3276 def get_all_voxels(self):
3277 """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3278 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3280 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3281 __del__ =
lambda self:
None
3282 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3283 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3285 def _IntDenseGridStorage6D_get_is_dense():
3286 """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3287 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3289 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3290 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class"""
3291 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3292 __repr__ = _swig_repr
3294 def __setitem__(self, *args):
3296 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3297 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3299 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3302 def __getitem__(self, *args):
3304 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3305 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3307 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3310 def __init__(self, *args):
3312 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3313 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3314 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3315 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3316 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3318 this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3320 self.this.append(this)
3325 """get_is_dense() -> bool"""
3326 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3328 get_is_dense = staticmethod(get_is_dense)
3330 def show(self, *args):
3332 show(_FloatDenseGridStorage6D self, _ostream out)
3333 show(_FloatDenseGridStorage6D self)
3335 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3338 def add_voxel(self, arg2, arg3):
3339 """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3340 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3343 def get_all_voxels(self):
3344 """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3345 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3347 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3348 __del__ =
lambda self:
None
3349 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3350 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3352 def _FloatDenseGridStorage6D_get_is_dense():
3353 """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3354 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3356 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3357 """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class"""
3358 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3359 __repr__ = _swig_repr
3361 def __init__(self, *args):
3363 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb, double default_value) -> _HistogramCountsGrid6D
3364 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3365 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3366 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3367 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3368 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3369 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3370 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3371 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3372 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3373 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3374 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3376 this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3378 self.this.append(this)
3382 def show(self, *args):
3384 show(_HistogramCountsGrid6D self, _ostream out)
3385 show(_HistogramCountsGrid6D self)
3387 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3390 def __getitem__(self, *args):
3392 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3393 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3395 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3398 def __setitem__(self, *args):
3400 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3401 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3403 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3406 def add_voxel(self, pt, vt):
3407 """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3408 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3411 def get_extended_index(self, index):
3412 """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3413 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3416 def get_bounding_box(self, *args):
3418 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3419 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3420 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3422 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3425 def set_bounding_box(self, bb3):
3426 """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3427 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3430 def get_nearest_index(self, pt):
3431 """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3432 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3435 def get_nearest_extended_index(self, pt):
3436 """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3437 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3439 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3440 __del__ =
lambda self:
None
3441 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3442 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3445 from .
import _histogram
3446 show_histogram= _histogram.show_histogram
3450 """get_module_version() -> std::string const"""
3451 return _IMP_statistics.get_module_version()
3454 """get_example_path(std::string fname) -> std::string"""
3455 return _IMP_statistics.get_example_path(fname)
3458 """get_data_path(std::string fname) -> std::string"""
3459 return _IMP_statistics.get_data_path(fname)
3461 from .
import _version_check
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
def get_data_path
Return the full path to one of this module's data files.
def get_module_version
Return the version of this module, as a string.
def get_example_path
Return the full path to one of this module's example files.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
double get_quantile(const Histogram1D &h, double fraction)
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
Version and module information for Objects.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Ints get_representatives(Embedding *d, PartitionalClustering *pc)