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):
732 r"""__init__(ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks=IMP::FloatKeys( IMP::internal:: xyzr_keys, IMP::internal:: xyzr_keys + 3), bool rescale=False) -> ParticleEmbedding"""
733 _IMP_statistics.ParticleEmbedding_swiginit(self, _IMP_statistics.new_ParticleEmbedding(*args))
735 def get_version_info(self):
736 r"""get_version_info(ParticleEmbedding self) -> VersionInfo"""
737 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
738 __swig_destroy__ = _IMP_statistics.delete_ParticleEmbedding
741 r"""__str__(ParticleEmbedding self) -> std::string"""
742 return _IMP_statistics.ParticleEmbedding___str__(self)
745 r"""__repr__(ParticleEmbedding self) -> std::string"""
746 return _IMP_statistics.ParticleEmbedding___repr__(self)
750 return _object_cast_to_ParticleEmbedding(o)
754 _IMP_statistics.ParticleEmbedding_swigregister(ParticleEmbedding)
755 class VectorDEmbedding(Embedding):
756 r"""Proxy of C++ IMP::statistics::VectorDEmbedding class."""
758 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
760 def __init__(self, *args):
762 __init__(VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
763 __init__(VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
764 __init__(VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
765 __init__(VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
766 __init__(VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
767 __init__(VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
769 _IMP_statistics.VectorDEmbedding_swiginit(self, _IMP_statistics.new_VectorDEmbedding(*args))
771 def get_version_info(self):
772 r"""get_version_info(VectorDEmbedding self) -> VersionInfo"""
773 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
774 __swig_destroy__ = _IMP_statistics.delete_VectorDEmbedding
777 r"""__str__(VectorDEmbedding self) -> std::string"""
778 return _IMP_statistics.VectorDEmbedding___str__(self)
781 r"""__repr__(VectorDEmbedding self) -> std::string"""
782 return _IMP_statistics.VectorDEmbedding___repr__(self)
786 return _object_cast_to_VectorDEmbedding(o)
790 _IMP_statistics.VectorDEmbedding_swigregister(VectorDEmbedding)
791 class EuclideanMetric(Metric):
792 r"""Proxy of C++ IMP::statistics::EuclideanMetric class."""
794 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
796 def __init__(self, em):
797 r"""__init__(EuclideanMetric self, Embedding em) -> EuclideanMetric"""
798 _IMP_statistics.EuclideanMetric_swiginit(self, _IMP_statistics.new_EuclideanMetric(em))
800 def get_version_info(self):
801 r"""get_version_info(EuclideanMetric self) -> VersionInfo"""
802 return _IMP_statistics.EuclideanMetric_get_version_info(self)
803 __swig_destroy__ = _IMP_statistics.delete_EuclideanMetric
806 r"""__str__(EuclideanMetric self) -> std::string"""
807 return _IMP_statistics.EuclideanMetric___str__(self)
810 r"""__repr__(EuclideanMetric self) -> std::string"""
811 return _IMP_statistics.EuclideanMetric___repr__(self)
815 return _object_cast_to_EuclideanMetric(o)
819 _IMP_statistics.EuclideanMetric_swigregister(EuclideanMetric)
820 class ConfigurationSetRMSDMetric(Metric):
821 r"""Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
823 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
825 def __init__(self, cs, sc, align=False):
826 r"""__init__(ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric"""
827 _IMP_statistics.ConfigurationSetRMSDMetric_swiginit(self, _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align))
829 def get_version_info(self):
830 r"""get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
831 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
832 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetRMSDMetric
835 r"""__str__(ConfigurationSetRMSDMetric self) -> std::string"""
836 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
839 r"""__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
840 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
844 return _object_cast_to_ConfigurationSetRMSDMetric(o)
848 _IMP_statistics.ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
851 r"""create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
852 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
855 r"""create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
856 return _IMP_statistics.create_bin_based_clustering(embed, side)
860 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
861 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
863 return _IMP_statistics.create_centrality_clustering(*args)
866 r"""create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
867 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
871 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
872 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
874 return _IMP_statistics.create_connectivity_clustering(*args)
876 def create_gromos_clustering(d, cutoff):
877 r"""create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
878 return _IMP_statistics.create_gromos_clustering(d, cutoff)
881 r"""get_quantile(Histogram1D h, double fraction) -> double"""
882 return _IMP_statistics.get_quantile(h, fraction)
885 r"""get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
886 return _IMP_statistics.get_centroids(d, pc)
889 r"""get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
890 return _IMP_statistics.get_representatives(d, pc)
891 class RecursivePartitionalClusteringEmbedding(Embedding):
892 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
894 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
896 def __init__(self, metric, clustering):
897 r"""__init__(RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
898 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering))
900 def create_full_clustering(self, center_cluster):
901 r"""create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
902 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
904 def get_version_info(self):
905 r"""get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
906 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
907 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringEmbedding
910 r"""__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
911 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
914 r"""__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
915 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
919 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
923 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
924 class RecursivePartitionalClusteringMetric(Metric):
925 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
927 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
929 def __init__(self, metric, clustering):
930 r"""__init__(RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
931 _IMP_statistics.RecursivePartitionalClusteringMetric_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering))
933 def create_full_clustering(self, center_cluster):
934 r"""create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
935 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
937 def get_version_info(self):
938 r"""get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
939 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
940 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringMetric
943 r"""__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
944 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
947 r"""__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
948 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
952 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
956 _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
957 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
958 r"""Proxy of C++ IMP::statistics::HistogramD< 1 > class."""
960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
962 def __init__(self, *args):
964 __init__(Histogram1D self) -> Histogram1D
965 __init__(Histogram1D self, double voxel_size, BoundingBox1D bb) -> Histogram1D
967 _IMP_statistics.Histogram1D_swiginit(self, _IMP_statistics.new_Histogram1D(*args))
969 def add(self, x, weight=1):
970 r"""add(Histogram1D self, Vector1D x, double weight=1)"""
971 return _IMP_statistics.Histogram1D_add(self, x, weight)
973 def get_total_count(self):
974 r"""get_total_count(Histogram1D self) -> double"""
975 return _IMP_statistics.Histogram1D_get_total_count(self)
977 def get_frequencies(self):
978 r"""get_frequencies(Histogram1D self) -> Histogram1D"""
979 return _IMP_statistics.Histogram1D_get_frequencies(self)
981 def get_probability_distribution_function(self):
982 r"""get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
983 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
985 def get_counts(self):
986 r"""get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
987 return _IMP_statistics.Histogram1D_get_counts(self)
990 r"""get_mean(Histogram1D self) -> Vector1D"""
991 return _IMP_statistics.Histogram1D_get_mean(self)
993 def get_dimension(self):
994 r"""get_dimension(Histogram1D self) -> unsigned int"""
995 return _IMP_statistics.Histogram1D_get_dimension(self)
997 def get_standard_deviation(self, mean):
998 r"""get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
999 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1001 def get_bounding_box(self):
1002 r"""get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1003 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1005 def get_minimum_and_maximum(self):
1006 r"""get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1007 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1009 def show(self, *args):
1010 r"""show(Histogram1D self, _ostream out=std::cout)"""
1011 return _IMP_statistics.Histogram1D_show(self, *args)
1014 r"""__str__(Histogram1D self) -> std::string"""
1015 return _IMP_statistics.Histogram1D___str__(self)
1018 r"""__repr__(Histogram1D self) -> std::string"""
1019 return _IMP_statistics.Histogram1D___repr__(self)
1021 def __cmp__(self, arg2):
1022 r"""__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1023 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1025 def __eq__(self, arg2):
1026 r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1027 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1028 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1031 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1032 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1033 r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1035 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1037 def __init__(self, *args):
1039 __init__(Histogram2D self) -> Histogram2D
1040 __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1042 _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1044 def add(self, x, weight=1):
1045 r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1046 return _IMP_statistics.Histogram2D_add(self, x, weight)
1048 def get_total_count(self):
1049 r"""get_total_count(Histogram2D self) -> double"""
1050 return _IMP_statistics.Histogram2D_get_total_count(self)
1052 def get_frequencies(self):
1053 r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1054 return _IMP_statistics.Histogram2D_get_frequencies(self)
1056 def get_probability_distribution_function(self):
1057 r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1058 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1060 def get_counts(self):
1061 r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1062 return _IMP_statistics.Histogram2D_get_counts(self)
1065 r"""get_mean(Histogram2D self) -> Vector2D"""
1066 return _IMP_statistics.Histogram2D_get_mean(self)
1068 def get_dimension(self):
1069 r"""get_dimension(Histogram2D self) -> unsigned int"""
1070 return _IMP_statistics.Histogram2D_get_dimension(self)
1072 def get_standard_deviation(self, mean):
1073 r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1074 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1076 def get_bounding_box(self):
1077 r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1078 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1080 def get_minimum_and_maximum(self):
1081 r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1082 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1084 def show(self, *args):
1085 r"""show(Histogram2D self, _ostream out=std::cout)"""
1086 return _IMP_statistics.Histogram2D_show(self, *args)
1089 r"""__str__(Histogram2D self) -> std::string"""
1090 return _IMP_statistics.Histogram2D___str__(self)
1093 r"""__repr__(Histogram2D self) -> std::string"""
1094 return _IMP_statistics.Histogram2D___repr__(self)
1096 def __cmp__(self, arg2):
1097 r"""__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1098 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1100 def __eq__(self, arg2):
1101 r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1102 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1103 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1106 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1107 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1108 r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1110 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1112 def __init__(self, *args):
1114 __init__(Histogram3D self) -> Histogram3D
1115 __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1117 _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1119 def add(self, x, weight=1):
1120 r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1121 return _IMP_statistics.Histogram3D_add(self, x, weight)
1123 def get_total_count(self):
1124 r"""get_total_count(Histogram3D self) -> double"""
1125 return _IMP_statistics.Histogram3D_get_total_count(self)
1127 def get_frequencies(self):
1128 r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1129 return _IMP_statistics.Histogram3D_get_frequencies(self)
1131 def get_probability_distribution_function(self):
1132 r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1133 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1135 def get_counts(self):
1136 r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1137 return _IMP_statistics.Histogram3D_get_counts(self)
1140 r"""get_mean(Histogram3D self) -> Vector3D"""
1141 return _IMP_statistics.Histogram3D_get_mean(self)
1143 def get_dimension(self):
1144 r"""get_dimension(Histogram3D self) -> unsigned int"""
1145 return _IMP_statistics.Histogram3D_get_dimension(self)
1147 def get_standard_deviation(self, mean):
1148 r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1149 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1151 def get_bounding_box(self):
1152 r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1153 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1155 def get_minimum_and_maximum(self):
1156 r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1157 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1159 def show(self, *args):
1160 r"""show(Histogram3D self, _ostream out=std::cout)"""
1161 return _IMP_statistics.Histogram3D_show(self, *args)
1164 r"""__str__(Histogram3D self) -> std::string"""
1165 return _IMP_statistics.Histogram3D___str__(self)
1168 r"""__repr__(Histogram3D self) -> std::string"""
1169 return _IMP_statistics.Histogram3D___repr__(self)
1171 def __cmp__(self, arg2):
1172 r"""__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1173 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1175 def __eq__(self, arg2):
1176 r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1177 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1178 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1181 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1182 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1183 r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1185 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1187 def __init__(self, *args):
1189 __init__(Histogram4D self) -> Histogram4D
1190 __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1192 _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1194 def add(self, x, weight=1):
1195 r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1196 return _IMP_statistics.Histogram4D_add(self, x, weight)
1198 def get_total_count(self):
1199 r"""get_total_count(Histogram4D self) -> double"""
1200 return _IMP_statistics.Histogram4D_get_total_count(self)
1202 def get_frequencies(self):
1203 r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1204 return _IMP_statistics.Histogram4D_get_frequencies(self)
1206 def get_probability_distribution_function(self):
1207 r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1208 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1210 def get_counts(self):
1211 r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1212 return _IMP_statistics.Histogram4D_get_counts(self)
1215 r"""get_mean(Histogram4D self) -> Vector4D"""
1216 return _IMP_statistics.Histogram4D_get_mean(self)
1218 def get_dimension(self):
1219 r"""get_dimension(Histogram4D self) -> unsigned int"""
1220 return _IMP_statistics.Histogram4D_get_dimension(self)
1222 def get_standard_deviation(self, mean):
1223 r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1224 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1226 def get_bounding_box(self):
1227 r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1228 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1230 def get_minimum_and_maximum(self):
1231 r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1232 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1234 def show(self, *args):
1235 r"""show(Histogram4D self, _ostream out=std::cout)"""
1236 return _IMP_statistics.Histogram4D_show(self, *args)
1239 r"""__str__(Histogram4D self) -> std::string"""
1240 return _IMP_statistics.Histogram4D___str__(self)
1243 r"""__repr__(Histogram4D self) -> std::string"""
1244 return _IMP_statistics.Histogram4D___repr__(self)
1246 def __cmp__(self, arg2):
1247 r"""__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1248 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1250 def __eq__(self, arg2):
1251 r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1252 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1253 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1256 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1257 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1258 r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1260 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1262 def __init__(self, *args):
1264 __init__(Histogram5D self) -> Histogram5D
1265 __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1267 _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1269 def add(self, x, weight=1):
1270 r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1271 return _IMP_statistics.Histogram5D_add(self, x, weight)
1273 def get_total_count(self):
1274 r"""get_total_count(Histogram5D self) -> double"""
1275 return _IMP_statistics.Histogram5D_get_total_count(self)
1277 def get_frequencies(self):
1278 r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1279 return _IMP_statistics.Histogram5D_get_frequencies(self)
1281 def get_probability_distribution_function(self):
1282 r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1283 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1285 def get_counts(self):
1286 r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1287 return _IMP_statistics.Histogram5D_get_counts(self)
1290 r"""get_mean(Histogram5D self) -> Vector5D"""
1291 return _IMP_statistics.Histogram5D_get_mean(self)
1293 def get_dimension(self):
1294 r"""get_dimension(Histogram5D self) -> unsigned int"""
1295 return _IMP_statistics.Histogram5D_get_dimension(self)
1297 def get_standard_deviation(self, mean):
1298 r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1299 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1301 def get_bounding_box(self):
1302 r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1303 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1305 def get_minimum_and_maximum(self):
1306 r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1307 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1309 def show(self, *args):
1310 r"""show(Histogram5D self, _ostream out=std::cout)"""
1311 return _IMP_statistics.Histogram5D_show(self, *args)
1314 r"""__str__(Histogram5D self) -> std::string"""
1315 return _IMP_statistics.Histogram5D___str__(self)
1318 r"""__repr__(Histogram5D self) -> std::string"""
1319 return _IMP_statistics.Histogram5D___repr__(self)
1321 def __cmp__(self, arg2):
1322 r"""__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1323 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1325 def __eq__(self, arg2):
1326 r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1327 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1328 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1331 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1332 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1333 r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1335 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1337 def __init__(self, *args):
1339 __init__(Histogram6D self) -> Histogram6D
1340 __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1342 _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1344 def add(self, x, weight=1):
1345 r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1346 return _IMP_statistics.Histogram6D_add(self, x, weight)
1348 def get_total_count(self):
1349 r"""get_total_count(Histogram6D self) -> double"""
1350 return _IMP_statistics.Histogram6D_get_total_count(self)
1352 def get_frequencies(self):
1353 r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1354 return _IMP_statistics.Histogram6D_get_frequencies(self)
1356 def get_probability_distribution_function(self):
1357 r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1358 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1360 def get_counts(self):
1361 r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1362 return _IMP_statistics.Histogram6D_get_counts(self)
1365 r"""get_mean(Histogram6D self) -> Vector6D"""
1366 return _IMP_statistics.Histogram6D_get_mean(self)
1368 def get_dimension(self):
1369 r"""get_dimension(Histogram6D self) -> unsigned int"""
1370 return _IMP_statistics.Histogram6D_get_dimension(self)
1372 def get_standard_deviation(self, mean):
1373 r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1374 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1376 def get_bounding_box(self):
1377 r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1378 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1380 def get_minimum_and_maximum(self):
1381 r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1382 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1384 def show(self, *args):
1385 r"""show(Histogram6D self, _ostream out=std::cout)"""
1386 return _IMP_statistics.Histogram6D_show(self, *args)
1389 r"""__str__(Histogram6D self) -> std::string"""
1390 return _IMP_statistics.Histogram6D___str__(self)
1393 r"""__repr__(Histogram6D self) -> std::string"""
1394 return _IMP_statistics.Histogram6D___repr__(self)
1396 def __cmp__(self, arg2):
1397 r"""__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1398 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1400 def __eq__(self, arg2):
1401 r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1402 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1403 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1406 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1407 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1408 r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1410 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1412 def __init__(self, *args):
1414 __init__(HistogramKD self) -> HistogramKD
1415 __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1417 _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1419 def add(self, x, weight=1):
1420 r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1421 return _IMP_statistics.HistogramKD_add(self, x, weight)
1423 def get_total_count(self):
1424 r"""get_total_count(HistogramKD self) -> double"""
1425 return _IMP_statistics.HistogramKD_get_total_count(self)
1427 def get_frequencies(self):
1428 r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1429 return _IMP_statistics.HistogramKD_get_frequencies(self)
1431 def get_probability_distribution_function(self):
1432 r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1433 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1435 def get_counts(self):
1436 r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1437 return _IMP_statistics.HistogramKD_get_counts(self)
1440 r"""get_mean(HistogramKD self) -> VectorKD"""
1441 return _IMP_statistics.HistogramKD_get_mean(self)
1443 def get_dimension(self):
1444 r"""get_dimension(HistogramKD self) -> unsigned int"""
1445 return _IMP_statistics.HistogramKD_get_dimension(self)
1447 def get_standard_deviation(self, mean):
1448 r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1449 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1451 def get_bounding_box(self):
1452 r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1453 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1455 def get_minimum_and_maximum(self):
1456 r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1457 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1459 def show(self, *args):
1460 r"""show(HistogramKD self, _ostream out=std::cout)"""
1461 return _IMP_statistics.HistogramKD_show(self, *args)
1464 r"""__str__(HistogramKD self) -> std::string"""
1465 return _IMP_statistics.HistogramKD___str__(self)
1468 r"""__repr__(HistogramKD self) -> std::string"""
1469 return _IMP_statistics.HistogramKD___repr__(self)
1471 def __cmp__(self, arg2):
1472 r"""__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1473 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1475 def __eq__(self, arg2):
1476 r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1477 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1478 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1481 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1482 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1483 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1485 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1486 __repr__ = _swig_repr
1488 def __setitem__(self, *args):
1490 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1491 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1493 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1495 def __getitem__(self, *args):
1497 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1498 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1500 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1502 def __init__(self, *args):
1504 __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1505 __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1506 __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1508 _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1512 r"""get_is_dense() -> bool"""
1513 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1515 def show(self, *args):
1516 r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1517 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1519 def add_voxel(self, arg2, arg3):
1520 r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1521 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1523 def get_all_voxels(self):
1524 r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1525 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1526 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1529 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1530 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1531 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1533 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1534 __repr__ = _swig_repr
1536 def __setitem__(self, *args):
1538 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1539 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1541 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1543 def __getitem__(self, *args):
1545 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1546 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1548 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1550 def __init__(self, *args):
1552 __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1553 __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1554 __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1556 _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1560 r"""get_is_dense() -> bool"""
1561 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1563 def show(self, *args):
1564 r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1565 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1567 def add_voxel(self, arg2, arg3):
1568 r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1569 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1571 def get_all_voxels(self):
1572 r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1573 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1574 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1577 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1578 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
1579 r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1581 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1582 __repr__ = _swig_repr
1584 def __init__(self, *args):
1586 __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1587 __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1588 __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1589 __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1590 __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1591 __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1592 __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1594 _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1596 def show(self, *args):
1597 r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1598 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1600 def __getitem__(self, *args):
1602 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1603 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1605 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1607 def __setitem__(self, *args):
1609 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1610 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1612 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1614 def add_voxel(self, pt, vt):
1615 r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1616 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1618 def get_extended_index(self, index):
1619 r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1620 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1622 def get_bounding_box(self, *args):
1624 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1625 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1626 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1628 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1630 def set_bounding_box(self, bb3):
1631 r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1632 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1634 def get_nearest_index(self, pt):
1635 r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1636 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1638 def get_nearest_extended_index(self, pt):
1639 r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1640 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1641 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1644 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1645 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1646 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1648 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1649 __repr__ = _swig_repr
1651 def __setitem__(self, *args):
1653 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1654 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1656 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1658 def __getitem__(self, *args):
1660 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1661 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1663 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1665 def __init__(self, *args):
1667 __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1668 __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1669 __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1671 _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1675 r"""get_is_dense() -> bool"""
1676 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1678 def show(self, *args):
1679 r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1680 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1682 def add_voxel(self, arg2, arg3):
1683 r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1684 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1686 def get_all_voxels(self):
1687 r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1688 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1689 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1692 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1693 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1694 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1696 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1697 __repr__ = _swig_repr
1699 def __setitem__(self, *args):
1701 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1702 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1704 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1706 def __getitem__(self, *args):
1708 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1709 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1711 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1713 def __init__(self, *args):
1715 __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1716 __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1717 __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1719 _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1723 r"""get_is_dense() -> bool"""
1724 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1726 def show(self, *args):
1727 r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1728 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1730 def add_voxel(self, arg2, arg3):
1731 r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1732 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1734 def get_all_voxels(self):
1735 r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1736 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1737 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1740 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1741 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
1742 r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1744 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1745 __repr__ = _swig_repr
1747 def __init__(self, *args):
1749 __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1750 __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1751 __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1752 __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1753 __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1754 __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1755 __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1757 _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1759 def show(self, *args):
1760 r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1761 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1763 def __getitem__(self, *args):
1765 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1766 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1768 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1770 def __setitem__(self, *args):
1772 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1773 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1775 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1777 def add_voxel(self, pt, vt):
1778 r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1779 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1781 def get_extended_index(self, index):
1782 r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1783 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1785 def get_bounding_box(self, *args):
1787 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1788 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1789 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1791 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1793 def set_bounding_box(self, bb3):
1794 r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1795 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1797 def get_nearest_index(self, pt):
1798 r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1799 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1801 def get_nearest_extended_index(self, pt):
1802 r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1803 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1804 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1807 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1808 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1809 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1811 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1812 __repr__ = _swig_repr
1814 def __setitem__(self, *args):
1816 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1817 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1819 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1821 def __getitem__(self, *args):
1823 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1824 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1826 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1828 def __init__(self, *args):
1830 __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1831 __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1832 __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1834 _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1838 r"""get_is_dense() -> bool"""
1839 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1841 def show(self, *args):
1842 r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1843 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1845 def add_voxel(self, arg2, arg3):
1846 r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1847 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1849 def get_all_voxels(self):
1850 r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1851 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1852 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1855 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1856 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1857 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1859 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1860 __repr__ = _swig_repr
1862 def __setitem__(self, *args):
1864 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1865 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1867 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1869 def __getitem__(self, *args):
1871 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1872 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1874 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1876 def __init__(self, *args):
1878 __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1879 __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1880 __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1882 _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1886 r"""get_is_dense() -> bool"""
1887 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1889 def show(self, *args):
1890 r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1891 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1893 def add_voxel(self, arg2, arg3):
1894 r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1895 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1897 def get_all_voxels(self):
1898 r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1899 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1900 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1903 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1904 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
1905 r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1907 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1908 __repr__ = _swig_repr
1910 def __init__(self, *args):
1912 __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1913 __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1914 __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1915 __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1916 __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1917 __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1918 __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1920 _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1922 def show(self, *args):
1923 r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1924 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1926 def __getitem__(self, *args):
1928 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1929 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1931 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1933 def __setitem__(self, *args):
1935 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1936 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1938 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1940 def add_voxel(self, pt, vt):
1941 r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1942 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1944 def get_extended_index(self, index):
1945 r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1946 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1948 def get_bounding_box(self, *args):
1950 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1951 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1952 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1954 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1956 def set_bounding_box(self, bb3):
1957 r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1958 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1960 def get_nearest_index(self, pt):
1961 r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1962 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1964 def get_nearest_extended_index(self, pt):
1965 r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1966 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1967 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1970 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1971 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1972 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
1974 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1975 __repr__ = _swig_repr
1977 def __setitem__(self, *args):
1979 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
1980 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
1982 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
1984 def __getitem__(self, *args):
1986 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
1987 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
1989 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
1991 def __init__(self, *args):
1993 __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
1994 __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
1995 __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
1997 _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
2001 r"""get_is_dense() -> bool"""
2002 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2004 def show(self, *args):
2005 r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
2006 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2008 def add_voxel(self, arg2, arg3):
2009 r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2010 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2012 def get_all_voxels(self):
2013 r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2014 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2015 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2018 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2019 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2020 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
2022 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2023 __repr__ = _swig_repr
2025 def __setitem__(self, *args):
2027 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2028 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2030 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2032 def __getitem__(self, *args):
2034 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2035 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2037 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2039 def __init__(self, *args):
2041 __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2042 __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2043 __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2045 _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2049 r"""get_is_dense() -> bool"""
2050 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2052 def show(self, *args):
2053 r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2054 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2056 def add_voxel(self, arg2, arg3):
2057 r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2058 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2060 def get_all_voxels(self):
2061 r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2062 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2063 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2066 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2067 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2068 r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2070 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2071 __repr__ = _swig_repr
2073 def __init__(self, *args):
2075 __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2076 __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2077 __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2078 __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2079 __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2080 __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2081 __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2083 _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2085 def show(self, *args):
2086 r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2087 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2089 def __getitem__(self, *args):
2091 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2092 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2094 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2096 def __setitem__(self, *args):
2098 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2099 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2101 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2103 def add_voxel(self, pt, vt):
2104 r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2105 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2107 def get_extended_index(self, index):
2108 r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2109 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2111 def get_bounding_box(self, *args):
2113 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2114 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2115 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2117 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2119 def set_bounding_box(self, bb3):
2120 r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2121 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2123 def get_nearest_index(self, pt):
2124 r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2125 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2127 def get_nearest_extended_index(self, pt):
2128 r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2129 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2130 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2133 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2134 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2135 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2137 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2138 __repr__ = _swig_repr
2140 def __setitem__(self, *args):
2142 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2143 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2145 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2147 def __getitem__(self, *args):
2149 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2150 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2152 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2154 def __init__(self, *args):
2156 __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2157 __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2158 __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2160 _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2164 r"""get_is_dense() -> bool"""
2165 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2167 def show(self, *args):
2168 r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2169 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2171 def add_voxel(self, arg2, arg3):
2172 r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2173 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2175 def get_all_voxels(self):
2176 r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2177 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2178 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2181 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2182 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2183 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2185 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2186 __repr__ = _swig_repr
2188 def __setitem__(self, *args):
2190 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2191 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2193 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2195 def __getitem__(self, *args):
2197 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2198 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2200 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2202 def __init__(self, *args):
2204 __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2205 __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2206 __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2208 _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2212 r"""get_is_dense() -> bool"""
2213 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2215 def show(self, *args):
2216 r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2217 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2219 def add_voxel(self, arg2, arg3):
2220 r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2221 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2223 def get_all_voxels(self):
2224 r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2225 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2226 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2229 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2230 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2231 r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2233 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2234 __repr__ = _swig_repr
2236 def __init__(self, *args):
2238 __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2239 __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2240 __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2241 __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2242 __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2243 __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2244 __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2246 _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2248 def show(self, *args):
2249 r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2250 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2252 def __getitem__(self, *args):
2254 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2255 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2257 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2259 def __setitem__(self, *args):
2261 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2262 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2264 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2266 def add_voxel(self, pt, vt):
2267 r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2268 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2270 def get_extended_index(self, index):
2271 r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2272 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2274 def get_bounding_box(self, *args):
2276 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2277 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2278 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2280 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2282 def set_bounding_box(self, bb3):
2283 r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2284 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2286 def get_nearest_index(self, pt):
2287 r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2288 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2290 def get_nearest_extended_index(self, pt):
2291 r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2292 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2293 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2296 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2297 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2298 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2300 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2301 __repr__ = _swig_repr
2303 def __setitem__(self, *args):
2305 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2306 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2308 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2310 def __getitem__(self, *args):
2312 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2313 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2315 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2317 def __init__(self, *args):
2319 __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2320 __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2321 __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2323 _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2327 r"""get_is_dense() -> bool"""
2328 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2330 def show(self, *args):
2331 r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2332 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2334 def add_voxel(self, arg2, arg3):
2335 r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2336 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2338 def get_all_voxels(self):
2339 r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2340 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2341 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2344 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2345 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2346 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2348 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2349 __repr__ = _swig_repr
2351 def __setitem__(self, *args):
2353 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2354 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2356 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2358 def __getitem__(self, *args):
2360 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2361 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2363 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2365 def __init__(self, *args):
2367 __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2368 __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2369 __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2371 _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2375 r"""get_is_dense() -> bool"""
2376 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2378 def show(self, *args):
2379 r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2380 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2382 def add_voxel(self, arg2, arg3):
2383 r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2384 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2386 def get_all_voxels(self):
2387 r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2388 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2389 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2392 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2393 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
2394 r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2396 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2397 __repr__ = _swig_repr
2399 def __init__(self, *args):
2401 __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2402 __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2403 __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2404 __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2405 __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2406 __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2407 __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2409 _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2411 def show(self, *args):
2412 r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2413 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2415 def __getitem__(self, *args):
2417 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2418 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2420 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2422 def __setitem__(self, *args):
2424 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2425 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2427 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2429 def add_voxel(self, pt, vt):
2430 r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2431 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2433 def get_extended_index(self, index):
2434 r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2435 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2437 def get_bounding_box(self, *args):
2439 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2440 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2441 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2443 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2445 def set_bounding_box(self, bb3):
2446 r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2447 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2449 def get_nearest_index(self, pt):
2450 r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2451 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2453 def get_nearest_extended_index(self, pt):
2454 r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2455 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2456 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2459 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2460 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2461 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2463 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2464 __repr__ = _swig_repr
2466 def __setitem__(self, *args):
2468 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2469 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2471 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2473 def __getitem__(self, *args):
2475 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2476 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2478 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2480 def __init__(self, *args):
2482 __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2483 __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2484 __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2486 _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2490 r"""get_is_dense() -> bool"""
2491 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2493 def show(self, *args):
2494 r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2495 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2497 def add_voxel(self, arg2, arg3):
2498 r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2499 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2501 def get_all_voxels(self):
2502 r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2503 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2504 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2507 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2508 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2509 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2511 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2512 __repr__ = _swig_repr
2514 def __setitem__(self, *args):
2516 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2517 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2519 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2521 def __getitem__(self, *args):
2523 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2524 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2526 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2528 def __init__(self, *args):
2530 __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2531 __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2532 __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2534 _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2538 r"""get_is_dense() -> bool"""
2539 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2541 def show(self, *args):
2542 r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2543 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2545 def add_voxel(self, arg2, arg3):
2546 r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2547 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2549 def get_all_voxels(self):
2550 r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2551 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2552 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2555 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2556 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
2557 r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2559 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2560 __repr__ = _swig_repr
2562 def __init__(self, *args):
2564 __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2565 __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2566 __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2567 __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2568 __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2569 __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2570 __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2572 _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2574 def show(self, *args):
2575 r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2576 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2578 def __getitem__(self, *args):
2580 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2581 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2583 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2585 def __setitem__(self, *args):
2587 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2588 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2590 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2592 def add_voxel(self, pt, vt):
2593 r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2594 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2596 def get_extended_index(self, index):
2597 r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2598 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2600 def get_bounding_box(self, *args):
2602 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2603 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2604 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2606 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2608 def set_bounding_box(self, bb3):
2609 r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2610 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2612 def get_nearest_index(self, pt):
2613 r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2614 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2616 def get_nearest_extended_index(self, pt):
2617 r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2618 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2619 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2622 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2624 from .
import _histogram
2625 show_histogram= _histogram.show_histogram
2629 r"""get_module_name() -> std::string const"""
2630 return _IMP_statistics.get_module_name()
2633 r"""get_module_version() -> std::string const"""
2634 return _IMP_statistics.get_module_version()
2637 r"""get_example_path(std::string fname) -> std::string"""
2638 return _IMP_statistics.get_example_path(fname)
2641 r"""get_data_path(std::string fname) -> std::string"""
2642 return _IMP_statistics.get_data_path(fname)
2644 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)