14 from sys
import version_info
as _swig_python_version_info
15 import _IMP_statistics
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_STATISTICS_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
77 r"""value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
78 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
81 r"""incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
82 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
86 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
94 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
98 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
101 r"""next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
102 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
105 r"""__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
106 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
109 r"""previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
110 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
114 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
118 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
122 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
126 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
130 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
134 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
139 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
146 _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
153 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
155 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
157 IMP_SILENT = _IMP_statistics.IMP_SILENT
159 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
161 IMP_TERSE = _IMP_statistics.IMP_TERSE
163 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
165 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
167 IMP_NONE = _IMP_statistics.IMP_NONE
169 IMP_USAGE = _IMP_statistics.IMP_USAGE
171 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_statistics.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_statistics._ostream_write(self, osa_buf)
238 _IMP_statistics._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
248 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
270 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
272 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
274 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
276 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
278 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
280 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
282 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
286 _plural_types.append(
"Histogram1Ds")
287 _value_types.append(
"Histogram1D")
291 _plural_types.append(
"Histogram2Ds")
292 _value_types.append(
"Histogram2D")
296 _plural_types.append(
"Histogram3Ds")
297 _value_types.append(
"Histogram3D")
301 _plural_types.append(
"Histogram4Ds")
302 _value_types.append(
"Histogram4D")
306 _plural_types.append(
"Histogram5Ds")
307 _value_types.append(
"Histogram5D")
311 _plural_types.append(
"Histogram6Ds")
312 _value_types.append(
"Histogram6D")
316 _plural_types.append(
"Histogram1Ds")
317 _value_types.append(
"HistogramD<1>")
321 _plural_types.append(
"Histogram2Ds")
322 _value_types.append(
"HistogramD<2>")
326 _plural_types.append(
"Histogram3Ds")
327 _value_types.append(
"HistogramD<3>")
331 _plural_types.append(
"Histogram4Ds")
332 _value_types.append(
"HistogramD<4>")
336 _plural_types.append(
"Histogram5Ds")
337 _value_types.append(
"HistogramD<5>")
341 _plural_types.append(
"Histogram6Ds")
342 _value_types.append(
"HistogramD<6>")
346 _plural_types.append(
"HistogramKDs")
347 _value_types.append(
"HistogramKD")
351 _plural_types.append(
"HistogramKDs")
352 _value_types.append(
"HistogramD<-1>")
355 _object_types.append(
"PartitionalClustering")
358 def _object_cast_to_PartitionalClustering(o):
359 r"""_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
360 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
362 _object_types.append(
"PartitionalClusteringWithCenter")
365 def _object_cast_to_PartitionalClusteringWithCenter(o):
366 r"""_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
367 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
369 _object_types.append(
"Embedding")
372 def _object_cast_to_Embedding(o):
373 r"""_object_cast_to_Embedding(Object o) -> Embedding"""
374 return _IMP_statistics._object_cast_to_Embedding(o)
376 _object_types.append(
"ConfigurationSetXYZEmbedding")
379 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
380 r"""_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
381 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
383 _object_types.append(
"VectorDEmbedding")
386 def _object_cast_to_VectorDEmbedding(o):
387 r"""_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
388 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
390 _object_types.append(
"ParticleEmbedding")
393 def _object_cast_to_ParticleEmbedding(o):
394 r"""_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
395 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
397 _object_types.append(
"Metric")
400 def _object_cast_to_Metric(o):
401 r"""_object_cast_to_Metric(Object o) -> Metric"""
402 return _IMP_statistics._object_cast_to_Metric(o)
404 _object_types.append(
"EuclideanMetric")
407 def _object_cast_to_EuclideanMetric(o):
408 r"""_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
409 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
411 _object_types.append(
"ConfigurationSetRMSDMetric")
414 def _object_cast_to_ConfigurationSetRMSDMetric(o):
415 r"""_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
416 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
418 _object_types.append(
"RecursivePartitionalClusteringMetric")
421 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
422 r"""_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
423 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
425 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
428 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
429 r"""_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
430 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
432 _object_types.append(
"ChiSquareMetric")
435 def _object_cast_to_ChiSquareMetric(o):
436 r"""_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
437 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
439 r"""Proxy of C++ IMP::statistics::PartitionalClustering class."""
441 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
443 def __init__(self, *args, **kwargs):
444 raise AttributeError(
"No constructor defined - class is abstract")
446 def get_number_of_clusters(self):
447 r"""get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
448 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
450 def get_cluster(self, cluster_index):
451 r"""get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
452 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
454 def get_cluster_representative(self, cluster_index):
455 r"""get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
456 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
457 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
460 r"""__str__(PartitionalClustering self) -> std::string"""
461 return _IMP_statistics.PartitionalClustering___str__(self)
464 r"""__repr__(PartitionalClustering self) -> std::string"""
465 return _IMP_statistics.PartitionalClustering___repr__(self)
469 return _object_cast_to_PartitionalClustering(o)
473 _IMP_statistics.PartitionalClustering_swigregister(PartitionalClustering)
476 r"""validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
477 return _IMP_statistics.validate_partitional_clustering(pc, n)
479 r"""Proxy of C++ IMP::statistics::Embedding class."""
481 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
483 def __init__(self, name):
484 r"""__init__(Embedding self, std::string name) -> Embedding"""
485 if self.__class__ == Embedding:
489 _IMP_statistics.Embedding_swiginit(self, _IMP_statistics.new_Embedding(_self, name))
491 if self.__class__ != Embedding:
492 _director_objects.register(self)
497 def do_get_weight(self, i):
498 r"""do_get_weight(Embedding self, unsigned int i) -> double"""
499 return _IMP_statistics.Embedding_do_get_weight(self, i)
501 def get_point(self, i):
502 r"""get_point(Embedding self, unsigned int i) -> VectorKD"""
503 return _IMP_statistics.Embedding_get_point(self, i)
505 def get_number_of_items(self):
506 r"""get_number_of_items(Embedding self) -> unsigned int"""
507 return _IMP_statistics.Embedding_get_number_of_items(self)
509 def get_weight(self, i):
510 r"""get_weight(Embedding self, unsigned int i) -> double"""
511 return _IMP_statistics.Embedding_get_weight(self, i)
513 def get_points(self):
514 r"""get_points(Embedding self) -> IMP::algebra::VectorKDs"""
515 return _IMP_statistics.Embedding_get_points(self)
518 r"""__str__(Embedding self) -> std::string"""
519 return _IMP_statistics.Embedding___str__(self)
522 r"""__repr__(Embedding self) -> std::string"""
523 return _IMP_statistics.Embedding___repr__(self)
527 return _object_cast_to_Embedding(o)
530 def do_show(self, out):
535 return _object_cast_to_Embedding(o)
537 __swig_destroy__ = _IMP_statistics.delete_Embedding
538 def __disown__(self):
540 _IMP_statistics.disown_Embedding(self)
541 return weakref.proxy(self)
543 def do_destroy(self):
544 r"""do_destroy(Embedding self)"""
545 return _IMP_statistics.Embedding_do_destroy(self)
548 _IMP_statistics.Embedding_swigregister(Embedding)
550 r"""Proxy of C++ IMP::statistics::Metric class."""
552 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
554 def __init__(self, name):
555 r"""__init__(Metric self, std::string name) -> Metric"""
556 if self.__class__ == Metric:
560 _IMP_statistics.Metric_swiginit(self, _IMP_statistics.new_Metric(_self, name))
562 if self.__class__ != Metric:
563 _director_objects.register(self)
568 def do_get_weight(self, i):
569 r"""do_get_weight(Metric self, unsigned int i) -> double"""
570 return _IMP_statistics.Metric_do_get_weight(self, i)
573 r"""get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
574 return _IMP_statistics.Metric_get_distance(self, i, j)
576 def get_weight(self, i):
577 r"""get_weight(Metric self, unsigned int i) -> double"""
578 return _IMP_statistics.Metric_get_weight(self, i)
580 def get_number_of_items(self):
581 r"""get_number_of_items(Metric self) -> unsigned int"""
582 return _IMP_statistics.Metric_get_number_of_items(self)
583 __swig_destroy__ = _IMP_statistics.delete_Metric
586 r"""__str__(Metric self) -> std::string"""
587 return _IMP_statistics.Metric___str__(self)
590 r"""__repr__(Metric self) -> std::string"""
591 return _IMP_statistics.Metric___repr__(self)
595 return _object_cast_to_Metric(o)
598 def do_show(self, out):
603 return _object_cast_to_Metric(o)
605 def __disown__(self):
607 _IMP_statistics.disown_Metric(self)
608 return weakref.proxy(self)
610 def do_destroy(self):
611 r"""do_destroy(Metric self)"""
612 return _IMP_statistics.Metric_do_destroy(self)
615 _IMP_statistics.Metric_swigregister(Metric)
616 class ChiSquareMetric(Metric):
617 r"""Proxy of C++ IMP::statistics::ChiSquareMetric class."""
619 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
621 def __init__(self, data_exp, constr_type=0):
622 r"""__init__(ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric"""
623 _IMP_statistics.ChiSquareMetric_swiginit(self, _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type))
625 def add_configuration(self, data, stddev, weight=1.0):
626 r"""add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)"""
627 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
629 def get_data(self, i):
630 r"""get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
631 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
633 def get_standard_deviation(self, i):
634 r"""get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
635 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
637 def do_get_weight(self, i):
638 r"""do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
639 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
641 def get_chi_square_experimental(self, i):
642 r"""get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
643 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
645 def get_version_info(self):
646 r"""get_version_info(ChiSquareMetric self) -> VersionInfo"""
647 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
648 __swig_destroy__ = _IMP_statistics.delete_ChiSquareMetric
651 r"""__str__(ChiSquareMetric self) -> std::string"""
652 return _IMP_statistics.ChiSquareMetric___str__(self)
655 r"""__repr__(ChiSquareMetric self) -> std::string"""
656 return _IMP_statistics.ChiSquareMetric___repr__(self)
660 return _object_cast_to_ChiSquareMetric(o)
664 _IMP_statistics.ChiSquareMetric_swigregister(ChiSquareMetric)
665 class PartitionalClusteringWithCenter(PartitionalClustering):
666 r"""Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
668 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
670 def __init__(self, *args, **kwargs):
671 raise AttributeError(
"No constructor defined")
673 def get_cluster_center(self, i):
674 r"""get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
675 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
677 def get_version_info(self):
678 r"""get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
679 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
680 __swig_destroy__ = _IMP_statistics.delete_PartitionalClusteringWithCenter
683 r"""__str__(PartitionalClusteringWithCenter self) -> std::string"""
684 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
687 r"""__repr__(PartitionalClusteringWithCenter self) -> std::string"""
688 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
692 return _object_cast_to_PartitionalClusteringWithCenter(o)
696 _IMP_statistics.PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
697 class ConfigurationSetXYZEmbedding(Embedding):
698 r"""Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
700 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
702 def __init__(self, cs, pi, align=False):
703 r"""__init__(ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding"""
704 _IMP_statistics.ConfigurationSetXYZEmbedding_swiginit(self, _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align))
706 def get_version_info(self):
707 r"""get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
708 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
709 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetXYZEmbedding
712 r"""__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
713 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
716 r"""__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
717 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
721 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
725 _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
726 class ParticleEmbedding(Embedding):
727 r"""Proxy of C++ IMP::statistics::ParticleEmbedding class."""
729 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
731 def __init__(self, *args):
733 __init__(ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks=IMP::FloatKeys(
738 3), bool rescale=False) -> ParticleEmbedding
740 _IMP_statistics.ParticleEmbedding_swiginit(self, _IMP_statistics.new_ParticleEmbedding(*args))
742 def get_version_info(self):
743 r"""get_version_info(ParticleEmbedding self) -> VersionInfo"""
744 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
745 __swig_destroy__ = _IMP_statistics.delete_ParticleEmbedding
748 r"""__str__(ParticleEmbedding self) -> std::string"""
749 return _IMP_statistics.ParticleEmbedding___str__(self)
752 r"""__repr__(ParticleEmbedding self) -> std::string"""
753 return _IMP_statistics.ParticleEmbedding___repr__(self)
757 return _object_cast_to_ParticleEmbedding(o)
761 _IMP_statistics.ParticleEmbedding_swigregister(ParticleEmbedding)
762 class VectorDEmbedding(Embedding):
763 r"""Proxy of C++ IMP::statistics::VectorDEmbedding class."""
765 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
767 def __init__(self, *args):
769 __init__(VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
770 __init__(VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
771 __init__(VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
772 __init__(VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
773 __init__(VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
774 __init__(VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
776 _IMP_statistics.VectorDEmbedding_swiginit(self, _IMP_statistics.new_VectorDEmbedding(*args))
778 def get_version_info(self):
779 r"""get_version_info(VectorDEmbedding self) -> VersionInfo"""
780 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
781 __swig_destroy__ = _IMP_statistics.delete_VectorDEmbedding
784 r"""__str__(VectorDEmbedding self) -> std::string"""
785 return _IMP_statistics.VectorDEmbedding___str__(self)
788 r"""__repr__(VectorDEmbedding self) -> std::string"""
789 return _IMP_statistics.VectorDEmbedding___repr__(self)
793 return _object_cast_to_VectorDEmbedding(o)
797 _IMP_statistics.VectorDEmbedding_swigregister(VectorDEmbedding)
798 class EuclideanMetric(Metric):
799 r"""Proxy of C++ IMP::statistics::EuclideanMetric class."""
801 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
803 def __init__(self, em):
804 r"""__init__(EuclideanMetric self, Embedding em) -> EuclideanMetric"""
805 _IMP_statistics.EuclideanMetric_swiginit(self, _IMP_statistics.new_EuclideanMetric(em))
807 def get_version_info(self):
808 r"""get_version_info(EuclideanMetric self) -> VersionInfo"""
809 return _IMP_statistics.EuclideanMetric_get_version_info(self)
810 __swig_destroy__ = _IMP_statistics.delete_EuclideanMetric
813 r"""__str__(EuclideanMetric self) -> std::string"""
814 return _IMP_statistics.EuclideanMetric___str__(self)
817 r"""__repr__(EuclideanMetric self) -> std::string"""
818 return _IMP_statistics.EuclideanMetric___repr__(self)
822 return _object_cast_to_EuclideanMetric(o)
826 _IMP_statistics.EuclideanMetric_swigregister(EuclideanMetric)
827 class ConfigurationSetRMSDMetric(Metric):
828 r"""Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
830 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
832 def __init__(self, cs, sc, align=False):
833 r"""__init__(ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric"""
834 _IMP_statistics.ConfigurationSetRMSDMetric_swiginit(self, _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align))
836 def get_version_info(self):
837 r"""get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
838 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
839 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetRMSDMetric
842 r"""__str__(ConfigurationSetRMSDMetric self) -> std::string"""
843 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
846 r"""__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
847 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
851 return _object_cast_to_ConfigurationSetRMSDMetric(o)
855 _IMP_statistics.ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
858 r"""create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
859 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
862 r"""create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
863 return _IMP_statistics.create_bin_based_clustering(embed, side)
867 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
868 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
870 return _IMP_statistics.create_centrality_clustering(*args)
873 r"""create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
874 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
878 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
879 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
881 return _IMP_statistics.create_connectivity_clustering(*args)
883 def create_gromos_clustering(d, cutoff):
884 r"""create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
885 return _IMP_statistics.create_gromos_clustering(d, cutoff)
888 r"""get_quantile(Histogram1D h, double fraction) -> double"""
889 return _IMP_statistics.get_quantile(h, fraction)
892 r"""get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
893 return _IMP_statistics.get_centroids(d, pc)
896 r"""get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
897 return _IMP_statistics.get_representatives(d, pc)
898 class RecursivePartitionalClusteringEmbedding(Embedding):
899 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
901 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
903 def __init__(self, metric, clustering):
904 r"""__init__(RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
905 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering))
907 def create_full_clustering(self, center_cluster):
908 r"""create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
909 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
911 def get_version_info(self):
912 r"""get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
913 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
914 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringEmbedding
917 r"""__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
918 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
921 r"""__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
922 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
926 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
930 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
931 class RecursivePartitionalClusteringMetric(Metric):
932 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
934 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
936 def __init__(self, metric, clustering):
937 r"""__init__(RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
938 _IMP_statistics.RecursivePartitionalClusteringMetric_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering))
940 def create_full_clustering(self, center_cluster):
941 r"""create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
942 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
944 def get_version_info(self):
945 r"""get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
946 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
947 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringMetric
950 r"""__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
951 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
954 r"""__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
955 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
959 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
963 _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
964 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
965 r"""Proxy of C++ IMP::statistics::HistogramD< 1 > class."""
967 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
969 def __init__(self, *args):
971 __init__(Histogram1D self) -> Histogram1D
972 __init__(Histogram1D self, double voxel_size, BoundingBox1D bb) -> Histogram1D
974 _IMP_statistics.Histogram1D_swiginit(self, _IMP_statistics.new_Histogram1D(*args))
976 def add(self, x, weight=1):
977 r"""add(Histogram1D self, Vector1D x, double weight=1)"""
978 return _IMP_statistics.Histogram1D_add(self, x, weight)
980 def get_total_count(self):
981 r"""get_total_count(Histogram1D self) -> double"""
982 return _IMP_statistics.Histogram1D_get_total_count(self)
984 def get_frequencies(self):
985 r"""get_frequencies(Histogram1D self) -> Histogram1D"""
986 return _IMP_statistics.Histogram1D_get_frequencies(self)
988 def get_probability_distribution_function(self):
989 r"""get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
990 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
992 def get_counts(self):
993 r"""get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
994 return _IMP_statistics.Histogram1D_get_counts(self)
997 r"""get_mean(Histogram1D self) -> Vector1D"""
998 return _IMP_statistics.Histogram1D_get_mean(self)
1000 def get_dimension(self):
1001 r"""get_dimension(Histogram1D self) -> unsigned int"""
1002 return _IMP_statistics.Histogram1D_get_dimension(self)
1004 def get_standard_deviation(self, mean):
1005 r"""get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1006 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1008 def get_bounding_box(self):
1009 r"""get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1010 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1012 def get_minimum_and_maximum(self):
1013 r"""get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1014 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1016 def show(self, *args):
1017 r"""show(Histogram1D self, _ostream out=std::cout)"""
1018 return _IMP_statistics.Histogram1D_show(self, *args)
1021 r"""__str__(Histogram1D self) -> std::string"""
1022 return _IMP_statistics.Histogram1D___str__(self)
1025 r"""__repr__(Histogram1D self) -> std::string"""
1026 return _IMP_statistics.Histogram1D___repr__(self)
1028 def __cmp__(self, arg2):
1029 r"""__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1030 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1032 def __eq__(self, arg2):
1033 r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1034 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1035 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1038 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1039 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1040 r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1042 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1044 def __init__(self, *args):
1046 __init__(Histogram2D self) -> Histogram2D
1047 __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1049 _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1051 def add(self, x, weight=1):
1052 r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1053 return _IMP_statistics.Histogram2D_add(self, x, weight)
1055 def get_total_count(self):
1056 r"""get_total_count(Histogram2D self) -> double"""
1057 return _IMP_statistics.Histogram2D_get_total_count(self)
1059 def get_frequencies(self):
1060 r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1061 return _IMP_statistics.Histogram2D_get_frequencies(self)
1063 def get_probability_distribution_function(self):
1064 r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1065 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1067 def get_counts(self):
1068 r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1069 return _IMP_statistics.Histogram2D_get_counts(self)
1072 r"""get_mean(Histogram2D self) -> Vector2D"""
1073 return _IMP_statistics.Histogram2D_get_mean(self)
1075 def get_dimension(self):
1076 r"""get_dimension(Histogram2D self) -> unsigned int"""
1077 return _IMP_statistics.Histogram2D_get_dimension(self)
1079 def get_standard_deviation(self, mean):
1080 r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1081 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1083 def get_bounding_box(self):
1084 r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1085 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1087 def get_minimum_and_maximum(self):
1088 r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1089 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1091 def show(self, *args):
1092 r"""show(Histogram2D self, _ostream out=std::cout)"""
1093 return _IMP_statistics.Histogram2D_show(self, *args)
1096 r"""__str__(Histogram2D self) -> std::string"""
1097 return _IMP_statistics.Histogram2D___str__(self)
1100 r"""__repr__(Histogram2D self) -> std::string"""
1101 return _IMP_statistics.Histogram2D___repr__(self)
1103 def __cmp__(self, arg2):
1104 r"""__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1105 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1107 def __eq__(self, arg2):
1108 r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1109 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1110 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1113 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1114 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1115 r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1117 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1119 def __init__(self, *args):
1121 __init__(Histogram3D self) -> Histogram3D
1122 __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1124 _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1126 def add(self, x, weight=1):
1127 r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1128 return _IMP_statistics.Histogram3D_add(self, x, weight)
1130 def get_total_count(self):
1131 r"""get_total_count(Histogram3D self) -> double"""
1132 return _IMP_statistics.Histogram3D_get_total_count(self)
1134 def get_frequencies(self):
1135 r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1136 return _IMP_statistics.Histogram3D_get_frequencies(self)
1138 def get_probability_distribution_function(self):
1139 r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1140 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1142 def get_counts(self):
1143 r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1144 return _IMP_statistics.Histogram3D_get_counts(self)
1147 r"""get_mean(Histogram3D self) -> Vector3D"""
1148 return _IMP_statistics.Histogram3D_get_mean(self)
1150 def get_dimension(self):
1151 r"""get_dimension(Histogram3D self) -> unsigned int"""
1152 return _IMP_statistics.Histogram3D_get_dimension(self)
1154 def get_standard_deviation(self, mean):
1155 r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1156 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1158 def get_bounding_box(self):
1159 r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1160 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1162 def get_minimum_and_maximum(self):
1163 r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1164 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1166 def show(self, *args):
1167 r"""show(Histogram3D self, _ostream out=std::cout)"""
1168 return _IMP_statistics.Histogram3D_show(self, *args)
1171 r"""__str__(Histogram3D self) -> std::string"""
1172 return _IMP_statistics.Histogram3D___str__(self)
1175 r"""__repr__(Histogram3D self) -> std::string"""
1176 return _IMP_statistics.Histogram3D___repr__(self)
1178 def __cmp__(self, arg2):
1179 r"""__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1180 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1182 def __eq__(self, arg2):
1183 r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1184 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1185 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1188 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1189 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1190 r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1192 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1194 def __init__(self, *args):
1196 __init__(Histogram4D self) -> Histogram4D
1197 __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1199 _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1201 def add(self, x, weight=1):
1202 r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1203 return _IMP_statistics.Histogram4D_add(self, x, weight)
1205 def get_total_count(self):
1206 r"""get_total_count(Histogram4D self) -> double"""
1207 return _IMP_statistics.Histogram4D_get_total_count(self)
1209 def get_frequencies(self):
1210 r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1211 return _IMP_statistics.Histogram4D_get_frequencies(self)
1213 def get_probability_distribution_function(self):
1214 r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1215 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1217 def get_counts(self):
1218 r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1219 return _IMP_statistics.Histogram4D_get_counts(self)
1222 r"""get_mean(Histogram4D self) -> Vector4D"""
1223 return _IMP_statistics.Histogram4D_get_mean(self)
1225 def get_dimension(self):
1226 r"""get_dimension(Histogram4D self) -> unsigned int"""
1227 return _IMP_statistics.Histogram4D_get_dimension(self)
1229 def get_standard_deviation(self, mean):
1230 r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1231 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1233 def get_bounding_box(self):
1234 r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1235 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1237 def get_minimum_and_maximum(self):
1238 r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1239 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1241 def show(self, *args):
1242 r"""show(Histogram4D self, _ostream out=std::cout)"""
1243 return _IMP_statistics.Histogram4D_show(self, *args)
1246 r"""__str__(Histogram4D self) -> std::string"""
1247 return _IMP_statistics.Histogram4D___str__(self)
1250 r"""__repr__(Histogram4D self) -> std::string"""
1251 return _IMP_statistics.Histogram4D___repr__(self)
1253 def __cmp__(self, arg2):
1254 r"""__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1255 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1257 def __eq__(self, arg2):
1258 r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1259 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1260 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1263 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1264 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1265 r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1267 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1269 def __init__(self, *args):
1271 __init__(Histogram5D self) -> Histogram5D
1272 __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1274 _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1276 def add(self, x, weight=1):
1277 r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1278 return _IMP_statistics.Histogram5D_add(self, x, weight)
1280 def get_total_count(self):
1281 r"""get_total_count(Histogram5D self) -> double"""
1282 return _IMP_statistics.Histogram5D_get_total_count(self)
1284 def get_frequencies(self):
1285 r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1286 return _IMP_statistics.Histogram5D_get_frequencies(self)
1288 def get_probability_distribution_function(self):
1289 r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1290 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1292 def get_counts(self):
1293 r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1294 return _IMP_statistics.Histogram5D_get_counts(self)
1297 r"""get_mean(Histogram5D self) -> Vector5D"""
1298 return _IMP_statistics.Histogram5D_get_mean(self)
1300 def get_dimension(self):
1301 r"""get_dimension(Histogram5D self) -> unsigned int"""
1302 return _IMP_statistics.Histogram5D_get_dimension(self)
1304 def get_standard_deviation(self, mean):
1305 r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1306 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1308 def get_bounding_box(self):
1309 r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1310 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1312 def get_minimum_and_maximum(self):
1313 r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1314 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1316 def show(self, *args):
1317 r"""show(Histogram5D self, _ostream out=std::cout)"""
1318 return _IMP_statistics.Histogram5D_show(self, *args)
1321 r"""__str__(Histogram5D self) -> std::string"""
1322 return _IMP_statistics.Histogram5D___str__(self)
1325 r"""__repr__(Histogram5D self) -> std::string"""
1326 return _IMP_statistics.Histogram5D___repr__(self)
1328 def __cmp__(self, arg2):
1329 r"""__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1330 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1332 def __eq__(self, arg2):
1333 r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1334 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1335 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1338 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1339 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1340 r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1342 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1344 def __init__(self, *args):
1346 __init__(Histogram6D self) -> Histogram6D
1347 __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1349 _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1351 def add(self, x, weight=1):
1352 r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1353 return _IMP_statistics.Histogram6D_add(self, x, weight)
1355 def get_total_count(self):
1356 r"""get_total_count(Histogram6D self) -> double"""
1357 return _IMP_statistics.Histogram6D_get_total_count(self)
1359 def get_frequencies(self):
1360 r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1361 return _IMP_statistics.Histogram6D_get_frequencies(self)
1363 def get_probability_distribution_function(self):
1364 r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1365 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1367 def get_counts(self):
1368 r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1369 return _IMP_statistics.Histogram6D_get_counts(self)
1372 r"""get_mean(Histogram6D self) -> Vector6D"""
1373 return _IMP_statistics.Histogram6D_get_mean(self)
1375 def get_dimension(self):
1376 r"""get_dimension(Histogram6D self) -> unsigned int"""
1377 return _IMP_statistics.Histogram6D_get_dimension(self)
1379 def get_standard_deviation(self, mean):
1380 r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1381 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1383 def get_bounding_box(self):
1384 r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1385 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1387 def get_minimum_and_maximum(self):
1388 r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1389 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1391 def show(self, *args):
1392 r"""show(Histogram6D self, _ostream out=std::cout)"""
1393 return _IMP_statistics.Histogram6D_show(self, *args)
1396 r"""__str__(Histogram6D self) -> std::string"""
1397 return _IMP_statistics.Histogram6D___str__(self)
1400 r"""__repr__(Histogram6D self) -> std::string"""
1401 return _IMP_statistics.Histogram6D___repr__(self)
1403 def __cmp__(self, arg2):
1404 r"""__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1405 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1407 def __eq__(self, arg2):
1408 r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1409 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1410 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1413 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1414 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1415 r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1417 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1419 def __init__(self, *args):
1421 __init__(HistogramKD self) -> HistogramKD
1422 __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1424 _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1426 def add(self, x, weight=1):
1427 r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1428 return _IMP_statistics.HistogramKD_add(self, x, weight)
1430 def get_total_count(self):
1431 r"""get_total_count(HistogramKD self) -> double"""
1432 return _IMP_statistics.HistogramKD_get_total_count(self)
1434 def get_frequencies(self):
1435 r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1436 return _IMP_statistics.HistogramKD_get_frequencies(self)
1438 def get_probability_distribution_function(self):
1439 r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1440 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1442 def get_counts(self):
1443 r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1444 return _IMP_statistics.HistogramKD_get_counts(self)
1447 r"""get_mean(HistogramKD self) -> VectorKD"""
1448 return _IMP_statistics.HistogramKD_get_mean(self)
1450 def get_dimension(self):
1451 r"""get_dimension(HistogramKD self) -> unsigned int"""
1452 return _IMP_statistics.HistogramKD_get_dimension(self)
1454 def get_standard_deviation(self, mean):
1455 r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1456 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1458 def get_bounding_box(self):
1459 r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1460 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1462 def get_minimum_and_maximum(self):
1463 r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1464 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1466 def show(self, *args):
1467 r"""show(HistogramKD self, _ostream out=std::cout)"""
1468 return _IMP_statistics.HistogramKD_show(self, *args)
1471 r"""__str__(HistogramKD self) -> std::string"""
1472 return _IMP_statistics.HistogramKD___str__(self)
1475 r"""__repr__(HistogramKD self) -> std::string"""
1476 return _IMP_statistics.HistogramKD___repr__(self)
1478 def __cmp__(self, arg2):
1479 r"""__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1480 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1482 def __eq__(self, arg2):
1483 r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1484 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1485 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1488 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1489 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1490 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1492 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1493 __repr__ = _swig_repr
1495 def __setitem__(self, *args):
1497 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1498 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1500 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1502 def __getitem__(self, *args):
1504 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1505 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1507 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1509 def __init__(self, *args):
1511 __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1512 __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1513 __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1515 _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1519 r"""get_is_dense() -> bool"""
1520 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1522 def show(self, *args):
1523 r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1524 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1526 def add_voxel(self, arg2, arg3):
1527 r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1528 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1530 def get_all_voxels(self):
1531 r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1532 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1533 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1536 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1537 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1538 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1540 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1541 __repr__ = _swig_repr
1543 def __setitem__(self, *args):
1545 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1546 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1548 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1550 def __getitem__(self, *args):
1552 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1553 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1555 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1557 def __init__(self, *args):
1559 __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1560 __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1561 __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1563 _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1567 r"""get_is_dense() -> bool"""
1568 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1570 def show(self, *args):
1571 r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1572 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1574 def add_voxel(self, arg2, arg3):
1575 r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1576 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1578 def get_all_voxels(self):
1579 r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1580 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1581 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1584 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1585 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
1586 r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1588 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1589 __repr__ = _swig_repr
1591 def __init__(self, *args):
1593 __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1594 __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1595 __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1596 __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1597 __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1598 __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1599 __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1601 _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1603 def show(self, *args):
1604 r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1605 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1607 def __getitem__(self, *args):
1609 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1610 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1612 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1614 def __setitem__(self, *args):
1616 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1617 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1619 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1621 def add_voxel(self, pt, vt):
1622 r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1623 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1625 def get_extended_index(self, index):
1626 r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1627 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1629 def get_bounding_box(self, *args):
1631 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1632 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1633 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1635 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1637 def set_bounding_box(self, bb3):
1638 r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1639 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1641 def get_nearest_index(self, pt):
1642 r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1643 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1645 def get_nearest_extended_index(self, pt):
1646 r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1647 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1648 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1651 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1652 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1653 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1655 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1656 __repr__ = _swig_repr
1658 def __setitem__(self, *args):
1660 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1661 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1663 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1665 def __getitem__(self, *args):
1667 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1668 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1670 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1672 def __init__(self, *args):
1674 __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1675 __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1676 __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1678 _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1682 r"""get_is_dense() -> bool"""
1683 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1685 def show(self, *args):
1686 r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1687 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1689 def add_voxel(self, arg2, arg3):
1690 r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1691 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1693 def get_all_voxels(self):
1694 r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1695 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1696 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1699 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1700 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1701 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1703 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1704 __repr__ = _swig_repr
1706 def __setitem__(self, *args):
1708 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1709 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1711 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1713 def __getitem__(self, *args):
1715 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1716 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1718 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1720 def __init__(self, *args):
1722 __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1723 __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1724 __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1726 _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1730 r"""get_is_dense() -> bool"""
1731 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1733 def show(self, *args):
1734 r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1735 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1737 def add_voxel(self, arg2, arg3):
1738 r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1739 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1741 def get_all_voxels(self):
1742 r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1743 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1744 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1747 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1748 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
1749 r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1751 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1752 __repr__ = _swig_repr
1754 def __init__(self, *args):
1756 __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1757 __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1758 __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1759 __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1760 __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1761 __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1762 __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1764 _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1766 def show(self, *args):
1767 r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1768 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1770 def __getitem__(self, *args):
1772 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1773 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1775 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1777 def __setitem__(self, *args):
1779 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1780 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1782 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1784 def add_voxel(self, pt, vt):
1785 r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1786 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1788 def get_extended_index(self, index):
1789 r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1790 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1792 def get_bounding_box(self, *args):
1794 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1795 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1796 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1798 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1800 def set_bounding_box(self, bb3):
1801 r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1802 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1804 def get_nearest_index(self, pt):
1805 r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1806 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1808 def get_nearest_extended_index(self, pt):
1809 r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1810 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1811 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1814 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1815 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1816 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1818 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1819 __repr__ = _swig_repr
1821 def __setitem__(self, *args):
1823 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1824 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1826 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1828 def __getitem__(self, *args):
1830 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1831 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1833 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1835 def __init__(self, *args):
1837 __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1838 __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1839 __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1841 _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1845 r"""get_is_dense() -> bool"""
1846 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1848 def show(self, *args):
1849 r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1850 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1852 def add_voxel(self, arg2, arg3):
1853 r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1854 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1856 def get_all_voxels(self):
1857 r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1858 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1859 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1862 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1863 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1864 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1866 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1867 __repr__ = _swig_repr
1869 def __setitem__(self, *args):
1871 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1872 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1874 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1876 def __getitem__(self, *args):
1878 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1879 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1881 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1883 def __init__(self, *args):
1885 __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1886 __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1887 __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1889 _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1893 r"""get_is_dense() -> bool"""
1894 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1896 def show(self, *args):
1897 r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1898 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1900 def add_voxel(self, arg2, arg3):
1901 r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1902 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1904 def get_all_voxels(self):
1905 r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1906 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1907 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1910 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1911 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
1912 r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1914 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1915 __repr__ = _swig_repr
1917 def __init__(self, *args):
1919 __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1920 __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1921 __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1922 __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1923 __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1924 __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1925 __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1927 _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1929 def show(self, *args):
1930 r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1931 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1933 def __getitem__(self, *args):
1935 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1936 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1938 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1940 def __setitem__(self, *args):
1942 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1943 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1945 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1947 def add_voxel(self, pt, vt):
1948 r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1949 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1951 def get_extended_index(self, index):
1952 r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1953 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1955 def get_bounding_box(self, *args):
1957 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1958 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1959 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1961 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1963 def set_bounding_box(self, bb3):
1964 r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1965 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1967 def get_nearest_index(self, pt):
1968 r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1969 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1971 def get_nearest_extended_index(self, pt):
1972 r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1973 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1974 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1977 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1978 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1979 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
1981 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1982 __repr__ = _swig_repr
1984 def __setitem__(self, *args):
1986 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
1987 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
1989 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
1991 def __getitem__(self, *args):
1993 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
1994 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
1996 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
1998 def __init__(self, *args):
2000 __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2001 __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
2002 __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
2004 _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
2008 r"""get_is_dense() -> bool"""
2009 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2011 def show(self, *args):
2012 r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
2013 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2015 def add_voxel(self, arg2, arg3):
2016 r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2017 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2019 def get_all_voxels(self):
2020 r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2021 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2022 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2025 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2026 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2027 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
2029 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2030 __repr__ = _swig_repr
2032 def __setitem__(self, *args):
2034 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2035 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2037 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2039 def __getitem__(self, *args):
2041 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2042 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2044 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2046 def __init__(self, *args):
2048 __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2049 __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2050 __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2052 _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2056 r"""get_is_dense() -> bool"""
2057 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2059 def show(self, *args):
2060 r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2061 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2063 def add_voxel(self, arg2, arg3):
2064 r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2065 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2067 def get_all_voxels(self):
2068 r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2069 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2070 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2073 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2074 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2075 r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2077 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2078 __repr__ = _swig_repr
2080 def __init__(self, *args):
2082 __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2083 __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2084 __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2085 __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2086 __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2087 __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2088 __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2090 _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2092 def show(self, *args):
2093 r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2094 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2096 def __getitem__(self, *args):
2098 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2099 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2101 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2103 def __setitem__(self, *args):
2105 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2106 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2108 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2110 def add_voxel(self, pt, vt):
2111 r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2112 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2114 def get_extended_index(self, index):
2115 r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2116 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2118 def get_bounding_box(self, *args):
2120 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2121 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2122 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2124 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2126 def set_bounding_box(self, bb3):
2127 r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2128 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2130 def get_nearest_index(self, pt):
2131 r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2132 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2134 def get_nearest_extended_index(self, pt):
2135 r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2136 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2137 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2140 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2141 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2142 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2144 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2145 __repr__ = _swig_repr
2147 def __setitem__(self, *args):
2149 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2150 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2152 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2154 def __getitem__(self, *args):
2156 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2157 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2159 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2161 def __init__(self, *args):
2163 __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2164 __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2165 __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2167 _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2171 r"""get_is_dense() -> bool"""
2172 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2174 def show(self, *args):
2175 r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2176 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2178 def add_voxel(self, arg2, arg3):
2179 r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2180 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2182 def get_all_voxels(self):
2183 r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2184 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2185 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2188 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2189 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2190 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2192 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2193 __repr__ = _swig_repr
2195 def __setitem__(self, *args):
2197 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2198 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2200 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2202 def __getitem__(self, *args):
2204 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2205 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2207 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2209 def __init__(self, *args):
2211 __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2212 __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2213 __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2215 _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2219 r"""get_is_dense() -> bool"""
2220 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2222 def show(self, *args):
2223 r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2224 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2226 def add_voxel(self, arg2, arg3):
2227 r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2228 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2230 def get_all_voxels(self):
2231 r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2232 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2233 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2236 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2237 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2238 r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2240 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2241 __repr__ = _swig_repr
2243 def __init__(self, *args):
2245 __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2246 __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2247 __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2248 __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2249 __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2250 __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2251 __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2253 _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2255 def show(self, *args):
2256 r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2257 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2259 def __getitem__(self, *args):
2261 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2262 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2264 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2266 def __setitem__(self, *args):
2268 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2269 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2271 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2273 def add_voxel(self, pt, vt):
2274 r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2275 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2277 def get_extended_index(self, index):
2278 r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2279 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2281 def get_bounding_box(self, *args):
2283 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2284 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2285 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2287 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2289 def set_bounding_box(self, bb3):
2290 r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2291 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2293 def get_nearest_index(self, pt):
2294 r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2295 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2297 def get_nearest_extended_index(self, pt):
2298 r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2299 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2300 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2303 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2304 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2305 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2307 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2308 __repr__ = _swig_repr
2310 def __setitem__(self, *args):
2312 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2313 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2315 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2317 def __getitem__(self, *args):
2319 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2320 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2322 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2324 def __init__(self, *args):
2326 __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2327 __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2328 __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2330 _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2334 r"""get_is_dense() -> bool"""
2335 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2337 def show(self, *args):
2338 r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2339 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2341 def add_voxel(self, arg2, arg3):
2342 r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2343 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2345 def get_all_voxels(self):
2346 r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2347 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2348 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2351 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2352 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2353 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2355 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2356 __repr__ = _swig_repr
2358 def __setitem__(self, *args):
2360 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2361 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2363 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2365 def __getitem__(self, *args):
2367 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2368 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2370 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2372 def __init__(self, *args):
2374 __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2375 __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2376 __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2378 _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2382 r"""get_is_dense() -> bool"""
2383 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2385 def show(self, *args):
2386 r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2387 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2389 def add_voxel(self, arg2, arg3):
2390 r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2391 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2393 def get_all_voxels(self):
2394 r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2395 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2396 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2399 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2400 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
2401 r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2403 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2404 __repr__ = _swig_repr
2406 def __init__(self, *args):
2408 __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2409 __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2410 __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2411 __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2412 __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2413 __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2414 __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2416 _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2418 def show(self, *args):
2419 r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2420 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2422 def __getitem__(self, *args):
2424 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2425 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2427 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2429 def __setitem__(self, *args):
2431 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2432 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2434 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2436 def add_voxel(self, pt, vt):
2437 r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2438 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2440 def get_extended_index(self, index):
2441 r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2442 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2444 def get_bounding_box(self, *args):
2446 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2447 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2448 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2450 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2452 def set_bounding_box(self, bb3):
2453 r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2454 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2456 def get_nearest_index(self, pt):
2457 r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2458 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2460 def get_nearest_extended_index(self, pt):
2461 r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2462 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2463 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2466 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2467 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2468 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2470 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2471 __repr__ = _swig_repr
2473 def __setitem__(self, *args):
2475 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2476 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2478 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2480 def __getitem__(self, *args):
2482 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2483 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2485 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2487 def __init__(self, *args):
2489 __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2490 __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2491 __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2493 _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2497 r"""get_is_dense() -> bool"""
2498 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2500 def show(self, *args):
2501 r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2502 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2504 def add_voxel(self, arg2, arg3):
2505 r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2506 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2508 def get_all_voxels(self):
2509 r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2510 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2511 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2514 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2515 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2516 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2518 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2519 __repr__ = _swig_repr
2521 def __setitem__(self, *args):
2523 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2524 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2526 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2528 def __getitem__(self, *args):
2530 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2531 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2533 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2535 def __init__(self, *args):
2537 __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2538 __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2539 __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2541 _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2545 r"""get_is_dense() -> bool"""
2546 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2548 def show(self, *args):
2549 r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2550 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2552 def add_voxel(self, arg2, arg3):
2553 r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2554 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2556 def get_all_voxels(self):
2557 r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2558 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2559 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2562 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2563 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
2564 r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2566 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2567 __repr__ = _swig_repr
2569 def __init__(self, *args):
2571 __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2572 __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2573 __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2574 __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2575 __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2576 __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2577 __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2579 _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2581 def show(self, *args):
2582 r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2583 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2585 def __getitem__(self, *args):
2587 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2588 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2590 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2592 def __setitem__(self, *args):
2594 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2595 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2597 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2599 def add_voxel(self, pt, vt):
2600 r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2601 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2603 def get_extended_index(self, index):
2604 r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2605 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2607 def get_bounding_box(self, *args):
2609 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2610 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2611 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2613 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2615 def set_bounding_box(self, bb3):
2616 r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2617 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2619 def get_nearest_index(self, pt):
2620 r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2621 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2623 def get_nearest_extended_index(self, pt):
2624 r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2625 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2626 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2629 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2631 from .
import _histogram
2632 show_histogram= _histogram.show_histogram
2636 r"""get_module_name() -> std::string const"""
2637 return _IMP_statistics.get_module_name()
2640 r"""get_module_version() -> std::string const"""
2641 return _IMP_statistics.get_module_version()
2644 r"""get_example_path(std::string fname) -> std::string"""
2645 return _IMP_statistics.get_example_path(fname)
2648 r"""get_data_path(std::string fname) -> std::string"""
2649 return _IMP_statistics.get_data_path(fname)
2651 from .
import _version_check
def get_data_path
Return the full path to one of this module's data files.
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
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.
def get_example_path
Return the full path to one of this module's example files.
def get_module_version
Return the version of this module, as a string.
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)
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...
def get_module_name
Return the fully-qualified name of this module.
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)