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_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_statistics._ostream_write(self, osa_buf)
236 _IMP_statistics._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
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_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
272 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
274 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
276 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
278 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
280 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
282 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
284 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
286 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
290 _plural_types.append(
"Histogram1Ds")
291 _value_types.append(
"Histogram1D")
295 _plural_types.append(
"Histogram2Ds")
296 _value_types.append(
"Histogram2D")
300 _plural_types.append(
"Histogram3Ds")
301 _value_types.append(
"Histogram3D")
305 _plural_types.append(
"Histogram4Ds")
306 _value_types.append(
"Histogram4D")
310 _plural_types.append(
"Histogram5Ds")
311 _value_types.append(
"Histogram5D")
315 _plural_types.append(
"Histogram6Ds")
316 _value_types.append(
"Histogram6D")
320 _plural_types.append(
"Histogram1Ds")
321 _value_types.append(
"HistogramD<1>")
325 _plural_types.append(
"Histogram2Ds")
326 _value_types.append(
"HistogramD<2>")
330 _plural_types.append(
"Histogram3Ds")
331 _value_types.append(
"HistogramD<3>")
335 _plural_types.append(
"Histogram4Ds")
336 _value_types.append(
"HistogramD<4>")
340 _plural_types.append(
"Histogram5Ds")
341 _value_types.append(
"HistogramD<5>")
345 _plural_types.append(
"Histogram6Ds")
346 _value_types.append(
"HistogramD<6>")
350 _plural_types.append(
"HistogramKDs")
351 _value_types.append(
"HistogramKD")
355 _plural_types.append(
"HistogramKDs")
356 _value_types.append(
"HistogramD<-1>")
359 _object_types.append(
"PartitionalClustering")
362 def _object_cast_to_PartitionalClustering(o):
363 r"""_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
364 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
366 _object_types.append(
"PartitionalClusteringWithCenter")
369 def _object_cast_to_PartitionalClusteringWithCenter(o):
370 r"""_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
371 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
373 _object_types.append(
"Embedding")
376 def _object_cast_to_Embedding(o):
377 r"""_object_cast_to_Embedding(Object o) -> Embedding"""
378 return _IMP_statistics._object_cast_to_Embedding(o)
380 _object_types.append(
"ConfigurationSetXYZEmbedding")
383 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
384 r"""_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
385 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
387 _object_types.append(
"VectorDEmbedding")
390 def _object_cast_to_VectorDEmbedding(o):
391 r"""_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
392 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
394 _object_types.append(
"ParticleEmbedding")
397 def _object_cast_to_ParticleEmbedding(o):
398 r"""_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
399 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
401 _object_types.append(
"Metric")
404 def _object_cast_to_Metric(o):
405 r"""_object_cast_to_Metric(Object o) -> Metric"""
406 return _IMP_statistics._object_cast_to_Metric(o)
408 _object_types.append(
"EuclideanMetric")
411 def _object_cast_to_EuclideanMetric(o):
412 r"""_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
413 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
415 _object_types.append(
"ConfigurationSetRMSDMetric")
418 def _object_cast_to_ConfigurationSetRMSDMetric(o):
419 r"""_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
420 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
422 _object_types.append(
"RecursivePartitionalClusteringMetric")
425 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
426 r"""_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
427 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
429 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
432 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
433 r"""_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
434 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
436 _object_types.append(
"ChiSquareMetric")
439 def _object_cast_to_ChiSquareMetric(o):
440 r"""_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
441 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
443 r"""Proxy of C++ IMP::statistics::PartitionalClustering class."""
445 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
447 def __init__(self, *args, **kwargs):
448 raise AttributeError(
"No constructor defined - class is abstract")
450 def get_number_of_clusters(self):
451 r"""get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
452 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
454 def get_cluster(self, cluster_index):
455 r"""get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
456 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
458 def get_cluster_representative(self, cluster_index):
459 r"""get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
460 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
461 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
464 r"""__str__(PartitionalClustering self) -> std::string"""
465 return _IMP_statistics.PartitionalClustering___str__(self)
468 r"""__repr__(PartitionalClustering self) -> std::string"""
469 return _IMP_statistics.PartitionalClustering___repr__(self)
473 return _object_cast_to_PartitionalClustering(o)
477 _IMP_statistics.PartitionalClustering_swigregister(PartitionalClustering)
480 r"""validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
481 return _IMP_statistics.validate_partitional_clustering(pc, n)
483 r"""Proxy of C++ IMP::statistics::Embedding class."""
485 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
487 def __init__(self, name):
488 r"""__init__(Embedding self, std::string name) -> Embedding"""
489 if self.__class__ == Embedding:
493 _IMP_statistics.Embedding_swiginit(self, _IMP_statistics.new_Embedding(_self, name))
495 if self.__class__ != Embedding:
496 _director_objects.register(self)
501 def do_get_weight(self, i):
502 r"""do_get_weight(Embedding self, unsigned int i) -> double"""
503 return _IMP_statistics.Embedding_do_get_weight(self, i)
505 def get_point(self, i):
506 r"""get_point(Embedding self, unsigned int i) -> VectorKD"""
507 return _IMP_statistics.Embedding_get_point(self, i)
509 def get_number_of_items(self):
510 r"""get_number_of_items(Embedding self) -> unsigned int"""
511 return _IMP_statistics.Embedding_get_number_of_items(self)
513 def get_weight(self, i):
514 r"""get_weight(Embedding self, unsigned int i) -> double"""
515 return _IMP_statistics.Embedding_get_weight(self, i)
517 def get_points(self):
518 r"""get_points(Embedding self) -> IMP::algebra::VectorKDs"""
519 return _IMP_statistics.Embedding_get_points(self)
522 r"""__str__(Embedding self) -> std::string"""
523 return _IMP_statistics.Embedding___str__(self)
526 r"""__repr__(Embedding self) -> std::string"""
527 return _IMP_statistics.Embedding___repr__(self)
531 return _object_cast_to_Embedding(o)
534 def get_type_name(self):
535 return self.__class__.__name__
536 def do_show(self, out):
538 def get_version_info(self):
539 if"IMP::statistics" ==
"IMP":
540 return VersionInfo(self.__module__,
547 return _object_cast_to_Embedding(o)
549 __swig_destroy__ = _IMP_statistics.delete_Embedding
550 def __disown__(self):
552 _IMP_statistics.disown_Embedding(self)
553 return weakref.proxy(self)
555 def do_destroy(self):
556 r"""do_destroy(Embedding self)"""
557 return _IMP_statistics.Embedding_do_destroy(self)
560 _IMP_statistics.Embedding_swigregister(Embedding)
562 r"""Proxy of C++ IMP::statistics::Metric class."""
564 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
566 def __init__(self, name):
567 r"""__init__(Metric self, std::string name) -> Metric"""
568 if self.__class__ == Metric:
572 _IMP_statistics.Metric_swiginit(self, _IMP_statistics.new_Metric(_self, name))
574 if self.__class__ != Metric:
575 _director_objects.register(self)
580 def do_get_weight(self, i):
581 r"""do_get_weight(Metric self, unsigned int i) -> double"""
582 return _IMP_statistics.Metric_do_get_weight(self, i)
585 r"""get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
586 return _IMP_statistics.Metric_get_distance(self, i, j)
588 def get_weight(self, i):
589 r"""get_weight(Metric self, unsigned int i) -> double"""
590 return _IMP_statistics.Metric_get_weight(self, i)
592 def get_number_of_items(self):
593 r"""get_number_of_items(Metric self) -> unsigned int"""
594 return _IMP_statistics.Metric_get_number_of_items(self)
595 __swig_destroy__ = _IMP_statistics.delete_Metric
598 r"""__str__(Metric self) -> std::string"""
599 return _IMP_statistics.Metric___str__(self)
602 r"""__repr__(Metric self) -> std::string"""
603 return _IMP_statistics.Metric___repr__(self)
607 return _object_cast_to_Metric(o)
610 def get_type_name(self):
611 return self.__class__.__name__
612 def do_show(self, out):
614 def get_version_info(self):
615 if"IMP::statistics" ==
"IMP":
616 return VersionInfo(self.__module__,
623 return _object_cast_to_Metric(o)
625 def __disown__(self):
627 _IMP_statistics.disown_Metric(self)
628 return weakref.proxy(self)
630 def do_destroy(self):
631 r"""do_destroy(Metric self)"""
632 return _IMP_statistics.Metric_do_destroy(self)
635 _IMP_statistics.Metric_swigregister(Metric)
636 class ChiSquareMetric(Metric):
637 r"""Proxy of C++ IMP::statistics::ChiSquareMetric class."""
639 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
641 def __init__(self, data_exp, constr_type=0):
642 r"""__init__(ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric"""
643 _IMP_statistics.ChiSquareMetric_swiginit(self, _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type))
645 def add_configuration(self, data, stddev, weight=1.0):
646 r"""add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)"""
647 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
649 def get_data(self, i):
650 r"""get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
651 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
653 def get_standard_deviation(self, i):
654 r"""get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
655 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
657 def do_get_weight(self, i):
658 r"""do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
659 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
661 def get_chi_square_experimental(self, i):
662 r"""get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
663 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
665 def get_version_info(self):
666 r"""get_version_info(ChiSquareMetric self) -> VersionInfo"""
667 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
668 __swig_destroy__ = _IMP_statistics.delete_ChiSquareMetric
671 r"""__str__(ChiSquareMetric self) -> std::string"""
672 return _IMP_statistics.ChiSquareMetric___str__(self)
675 r"""__repr__(ChiSquareMetric self) -> std::string"""
676 return _IMP_statistics.ChiSquareMetric___repr__(self)
680 return _object_cast_to_ChiSquareMetric(o)
684 _IMP_statistics.ChiSquareMetric_swigregister(ChiSquareMetric)
685 class PartitionalClusteringWithCenter(PartitionalClustering):
686 r"""Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
688 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
690 def __init__(self, *args, **kwargs):
691 raise AttributeError(
"No constructor defined")
693 def get_cluster_center(self, i):
694 r"""get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
695 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
697 def get_version_info(self):
698 r"""get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
699 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
700 __swig_destroy__ = _IMP_statistics.delete_PartitionalClusteringWithCenter
703 r"""__str__(PartitionalClusteringWithCenter self) -> std::string"""
704 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
707 r"""__repr__(PartitionalClusteringWithCenter self) -> std::string"""
708 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
712 return _object_cast_to_PartitionalClusteringWithCenter(o)
716 _IMP_statistics.PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
717 class ConfigurationSetXYZEmbedding(Embedding):
718 r"""Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
720 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
722 def __init__(self, cs, pi, align=False):
723 r"""__init__(ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding"""
724 _IMP_statistics.ConfigurationSetXYZEmbedding_swiginit(self, _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align))
726 def get_version_info(self):
727 r"""get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
728 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
729 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetXYZEmbedding
732 r"""__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
733 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
736 r"""__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
737 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
741 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
745 _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
746 class ParticleEmbedding(Embedding):
747 r"""Proxy of C++ IMP::statistics::ParticleEmbedding class."""
749 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
751 def __init__(self, *args):
753 __init__(ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks=IMP::FloatKeys(
758 3), bool rescale=False) -> ParticleEmbedding
760 _IMP_statistics.ParticleEmbedding_swiginit(self, _IMP_statistics.new_ParticleEmbedding(*args))
762 def get_version_info(self):
763 r"""get_version_info(ParticleEmbedding self) -> VersionInfo"""
764 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
765 __swig_destroy__ = _IMP_statistics.delete_ParticleEmbedding
768 r"""__str__(ParticleEmbedding self) -> std::string"""
769 return _IMP_statistics.ParticleEmbedding___str__(self)
772 r"""__repr__(ParticleEmbedding self) -> std::string"""
773 return _IMP_statistics.ParticleEmbedding___repr__(self)
777 return _object_cast_to_ParticleEmbedding(o)
781 _IMP_statistics.ParticleEmbedding_swigregister(ParticleEmbedding)
782 class VectorDEmbedding(Embedding):
783 r"""Proxy of C++ IMP::statistics::VectorDEmbedding class."""
785 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
787 def __init__(self, *args):
789 __init__(VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
790 __init__(VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
791 __init__(VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
792 __init__(VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
793 __init__(VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
794 __init__(VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
796 _IMP_statistics.VectorDEmbedding_swiginit(self, _IMP_statistics.new_VectorDEmbedding(*args))
798 def get_version_info(self):
799 r"""get_version_info(VectorDEmbedding self) -> VersionInfo"""
800 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
801 __swig_destroy__ = _IMP_statistics.delete_VectorDEmbedding
804 r"""__str__(VectorDEmbedding self) -> std::string"""
805 return _IMP_statistics.VectorDEmbedding___str__(self)
808 r"""__repr__(VectorDEmbedding self) -> std::string"""
809 return _IMP_statistics.VectorDEmbedding___repr__(self)
813 return _object_cast_to_VectorDEmbedding(o)
817 _IMP_statistics.VectorDEmbedding_swigregister(VectorDEmbedding)
818 class EuclideanMetric(Metric):
819 r"""Proxy of C++ IMP::statistics::EuclideanMetric class."""
821 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
823 def __init__(self, em):
824 r"""__init__(EuclideanMetric self, Embedding em) -> EuclideanMetric"""
825 _IMP_statistics.EuclideanMetric_swiginit(self, _IMP_statistics.new_EuclideanMetric(em))
827 def get_version_info(self):
828 r"""get_version_info(EuclideanMetric self) -> VersionInfo"""
829 return _IMP_statistics.EuclideanMetric_get_version_info(self)
830 __swig_destroy__ = _IMP_statistics.delete_EuclideanMetric
833 r"""__str__(EuclideanMetric self) -> std::string"""
834 return _IMP_statistics.EuclideanMetric___str__(self)
837 r"""__repr__(EuclideanMetric self) -> std::string"""
838 return _IMP_statistics.EuclideanMetric___repr__(self)
842 return _object_cast_to_EuclideanMetric(o)
846 _IMP_statistics.EuclideanMetric_swigregister(EuclideanMetric)
847 class ConfigurationSetRMSDMetric(Metric):
848 r"""Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
850 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
852 def __init__(self, cs, sc, align=False):
853 r"""__init__(ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric"""
854 _IMP_statistics.ConfigurationSetRMSDMetric_swiginit(self, _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align))
856 def get_version_info(self):
857 r"""get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
858 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
859 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetRMSDMetric
862 r"""__str__(ConfigurationSetRMSDMetric self) -> std::string"""
863 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
866 r"""__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
867 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
871 return _object_cast_to_ConfigurationSetRMSDMetric(o)
875 _IMP_statistics.ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
878 r"""create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
879 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
882 r"""create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
883 return _IMP_statistics.create_bin_based_clustering(embed, side)
887 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
888 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
890 return _IMP_statistics.create_centrality_clustering(*args)
893 r"""create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
894 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
898 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
899 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
901 return _IMP_statistics.create_connectivity_clustering(*args)
903 def create_gromos_clustering(d, cutoff):
904 r"""create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
905 return _IMP_statistics.create_gromos_clustering(d, cutoff)
908 r"""get_quantile(Histogram1D h, double fraction) -> double"""
909 return _IMP_statistics.get_quantile(h, fraction)
912 r"""get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
913 return _IMP_statistics.get_centroids(d, pc)
916 r"""get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
917 return _IMP_statistics.get_representatives(d, pc)
918 class RecursivePartitionalClusteringEmbedding(Embedding):
919 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
921 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
923 def __init__(self, metric, clustering):
924 r"""__init__(RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
925 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering))
927 def create_full_clustering(self, center_cluster):
928 r"""create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
929 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
931 def get_version_info(self):
932 r"""get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
933 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
934 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringEmbedding
937 r"""__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
938 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
941 r"""__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
942 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
946 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
950 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
951 class RecursivePartitionalClusteringMetric(Metric):
952 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
954 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
956 def __init__(self, metric, clustering):
957 r"""__init__(RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
958 _IMP_statistics.RecursivePartitionalClusteringMetric_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering))
960 def create_full_clustering(self, center_cluster):
961 r"""create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
962 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
964 def get_version_info(self):
965 r"""get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
966 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
967 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringMetric
970 r"""__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
971 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
974 r"""__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
975 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
979 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
983 _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
984 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
985 r"""Proxy of C++ IMP::statistics::HistogramD< 1 > class."""
987 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
989 def __init__(self, *args):
991 __init__(Histogram1D self) -> Histogram1D
992 __init__(Histogram1D self, double voxel_size, BoundingBox1D bb) -> Histogram1D
994 _IMP_statistics.Histogram1D_swiginit(self, _IMP_statistics.new_Histogram1D(*args))
996 def add(self, x, weight=1):
997 r"""add(Histogram1D self, Vector1D x, double weight=1)"""
998 return _IMP_statistics.Histogram1D_add(self, x, weight)
1000 def get_total_count(self):
1001 r"""get_total_count(Histogram1D self) -> double"""
1002 return _IMP_statistics.Histogram1D_get_total_count(self)
1004 def get_frequencies(self):
1005 r"""get_frequencies(Histogram1D self) -> Histogram1D"""
1006 return _IMP_statistics.Histogram1D_get_frequencies(self)
1008 def get_probability_distribution_function(self):
1009 r"""get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1010 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1012 def get_counts(self):
1013 r"""get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1014 return _IMP_statistics.Histogram1D_get_counts(self)
1017 r"""get_mean(Histogram1D self) -> Vector1D"""
1018 return _IMP_statistics.Histogram1D_get_mean(self)
1020 def get_dimension(self):
1021 r"""get_dimension(Histogram1D self) -> unsigned int"""
1022 return _IMP_statistics.Histogram1D_get_dimension(self)
1024 def get_standard_deviation(self, mean):
1025 r"""get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1026 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1028 def get_bounding_box(self):
1029 r"""get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1030 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1032 def get_minimum_and_maximum(self):
1033 r"""get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1034 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1036 def show(self, *args):
1037 r"""show(Histogram1D self, _ostream out=std::cout)"""
1038 return _IMP_statistics.Histogram1D_show(self, *args)
1041 r"""__str__(Histogram1D self) -> std::string"""
1042 return _IMP_statistics.Histogram1D___str__(self)
1045 r"""__repr__(Histogram1D self) -> std::string"""
1046 return _IMP_statistics.Histogram1D___repr__(self)
1048 def __cmp__(self, arg2):
1049 r"""__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1050 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1052 def __eq__(self, arg2):
1053 r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1054 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1055 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1058 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1059 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1060 r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1062 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1064 def __init__(self, *args):
1066 __init__(Histogram2D self) -> Histogram2D
1067 __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1069 _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1071 def add(self, x, weight=1):
1072 r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1073 return _IMP_statistics.Histogram2D_add(self, x, weight)
1075 def get_total_count(self):
1076 r"""get_total_count(Histogram2D self) -> double"""
1077 return _IMP_statistics.Histogram2D_get_total_count(self)
1079 def get_frequencies(self):
1080 r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1081 return _IMP_statistics.Histogram2D_get_frequencies(self)
1083 def get_probability_distribution_function(self):
1084 r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1085 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1087 def get_counts(self):
1088 r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1089 return _IMP_statistics.Histogram2D_get_counts(self)
1092 r"""get_mean(Histogram2D self) -> Vector2D"""
1093 return _IMP_statistics.Histogram2D_get_mean(self)
1095 def get_dimension(self):
1096 r"""get_dimension(Histogram2D self) -> unsigned int"""
1097 return _IMP_statistics.Histogram2D_get_dimension(self)
1099 def get_standard_deviation(self, mean):
1100 r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1101 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1103 def get_bounding_box(self):
1104 r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1105 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1107 def get_minimum_and_maximum(self):
1108 r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1109 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1111 def show(self, *args):
1112 r"""show(Histogram2D self, _ostream out=std::cout)"""
1113 return _IMP_statistics.Histogram2D_show(self, *args)
1116 r"""__str__(Histogram2D self) -> std::string"""
1117 return _IMP_statistics.Histogram2D___str__(self)
1120 r"""__repr__(Histogram2D self) -> std::string"""
1121 return _IMP_statistics.Histogram2D___repr__(self)
1123 def __cmp__(self, arg2):
1124 r"""__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1125 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1127 def __eq__(self, arg2):
1128 r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1129 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1130 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1133 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1134 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1135 r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1137 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1139 def __init__(self, *args):
1141 __init__(Histogram3D self) -> Histogram3D
1142 __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1144 _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1146 def add(self, x, weight=1):
1147 r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1148 return _IMP_statistics.Histogram3D_add(self, x, weight)
1150 def get_total_count(self):
1151 r"""get_total_count(Histogram3D self) -> double"""
1152 return _IMP_statistics.Histogram3D_get_total_count(self)
1154 def get_frequencies(self):
1155 r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1156 return _IMP_statistics.Histogram3D_get_frequencies(self)
1158 def get_probability_distribution_function(self):
1159 r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1160 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1162 def get_counts(self):
1163 r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1164 return _IMP_statistics.Histogram3D_get_counts(self)
1167 r"""get_mean(Histogram3D self) -> Vector3D"""
1168 return _IMP_statistics.Histogram3D_get_mean(self)
1170 def get_dimension(self):
1171 r"""get_dimension(Histogram3D self) -> unsigned int"""
1172 return _IMP_statistics.Histogram3D_get_dimension(self)
1174 def get_standard_deviation(self, mean):
1175 r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1176 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1178 def get_bounding_box(self):
1179 r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1180 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1182 def get_minimum_and_maximum(self):
1183 r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1184 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1186 def show(self, *args):
1187 r"""show(Histogram3D self, _ostream out=std::cout)"""
1188 return _IMP_statistics.Histogram3D_show(self, *args)
1191 r"""__str__(Histogram3D self) -> std::string"""
1192 return _IMP_statistics.Histogram3D___str__(self)
1195 r"""__repr__(Histogram3D self) -> std::string"""
1196 return _IMP_statistics.Histogram3D___repr__(self)
1198 def __cmp__(self, arg2):
1199 r"""__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1200 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1202 def __eq__(self, arg2):
1203 r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1204 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1205 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1208 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1209 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1210 r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1212 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1214 def __init__(self, *args):
1216 __init__(Histogram4D self) -> Histogram4D
1217 __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1219 _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1221 def add(self, x, weight=1):
1222 r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1223 return _IMP_statistics.Histogram4D_add(self, x, weight)
1225 def get_total_count(self):
1226 r"""get_total_count(Histogram4D self) -> double"""
1227 return _IMP_statistics.Histogram4D_get_total_count(self)
1229 def get_frequencies(self):
1230 r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1231 return _IMP_statistics.Histogram4D_get_frequencies(self)
1233 def get_probability_distribution_function(self):
1234 r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1235 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1237 def get_counts(self):
1238 r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1239 return _IMP_statistics.Histogram4D_get_counts(self)
1242 r"""get_mean(Histogram4D self) -> Vector4D"""
1243 return _IMP_statistics.Histogram4D_get_mean(self)
1245 def get_dimension(self):
1246 r"""get_dimension(Histogram4D self) -> unsigned int"""
1247 return _IMP_statistics.Histogram4D_get_dimension(self)
1249 def get_standard_deviation(self, mean):
1250 r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1251 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1253 def get_bounding_box(self):
1254 r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1255 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1257 def get_minimum_and_maximum(self):
1258 r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1259 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1261 def show(self, *args):
1262 r"""show(Histogram4D self, _ostream out=std::cout)"""
1263 return _IMP_statistics.Histogram4D_show(self, *args)
1266 r"""__str__(Histogram4D self) -> std::string"""
1267 return _IMP_statistics.Histogram4D___str__(self)
1270 r"""__repr__(Histogram4D self) -> std::string"""
1271 return _IMP_statistics.Histogram4D___repr__(self)
1273 def __cmp__(self, arg2):
1274 r"""__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1275 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1277 def __eq__(self, arg2):
1278 r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1279 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1280 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1283 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1284 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1285 r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1287 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1289 def __init__(self, *args):
1291 __init__(Histogram5D self) -> Histogram5D
1292 __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1294 _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1296 def add(self, x, weight=1):
1297 r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1298 return _IMP_statistics.Histogram5D_add(self, x, weight)
1300 def get_total_count(self):
1301 r"""get_total_count(Histogram5D self) -> double"""
1302 return _IMP_statistics.Histogram5D_get_total_count(self)
1304 def get_frequencies(self):
1305 r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1306 return _IMP_statistics.Histogram5D_get_frequencies(self)
1308 def get_probability_distribution_function(self):
1309 r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1310 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1312 def get_counts(self):
1313 r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1314 return _IMP_statistics.Histogram5D_get_counts(self)
1317 r"""get_mean(Histogram5D self) -> Vector5D"""
1318 return _IMP_statistics.Histogram5D_get_mean(self)
1320 def get_dimension(self):
1321 r"""get_dimension(Histogram5D self) -> unsigned int"""
1322 return _IMP_statistics.Histogram5D_get_dimension(self)
1324 def get_standard_deviation(self, mean):
1325 r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1326 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1328 def get_bounding_box(self):
1329 r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1330 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1332 def get_minimum_and_maximum(self):
1333 r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1334 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1336 def show(self, *args):
1337 r"""show(Histogram5D self, _ostream out=std::cout)"""
1338 return _IMP_statistics.Histogram5D_show(self, *args)
1341 r"""__str__(Histogram5D self) -> std::string"""
1342 return _IMP_statistics.Histogram5D___str__(self)
1345 r"""__repr__(Histogram5D self) -> std::string"""
1346 return _IMP_statistics.Histogram5D___repr__(self)
1348 def __cmp__(self, arg2):
1349 r"""__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1350 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1352 def __eq__(self, arg2):
1353 r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1354 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1355 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1358 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1359 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1360 r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1362 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1364 def __init__(self, *args):
1366 __init__(Histogram6D self) -> Histogram6D
1367 __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1369 _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1371 def add(self, x, weight=1):
1372 r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1373 return _IMP_statistics.Histogram6D_add(self, x, weight)
1375 def get_total_count(self):
1376 r"""get_total_count(Histogram6D self) -> double"""
1377 return _IMP_statistics.Histogram6D_get_total_count(self)
1379 def get_frequencies(self):
1380 r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1381 return _IMP_statistics.Histogram6D_get_frequencies(self)
1383 def get_probability_distribution_function(self):
1384 r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1385 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1387 def get_counts(self):
1388 r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1389 return _IMP_statistics.Histogram6D_get_counts(self)
1392 r"""get_mean(Histogram6D self) -> Vector6D"""
1393 return _IMP_statistics.Histogram6D_get_mean(self)
1395 def get_dimension(self):
1396 r"""get_dimension(Histogram6D self) -> unsigned int"""
1397 return _IMP_statistics.Histogram6D_get_dimension(self)
1399 def get_standard_deviation(self, mean):
1400 r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1401 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1403 def get_bounding_box(self):
1404 r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1405 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1407 def get_minimum_and_maximum(self):
1408 r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1409 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1411 def show(self, *args):
1412 r"""show(Histogram6D self, _ostream out=std::cout)"""
1413 return _IMP_statistics.Histogram6D_show(self, *args)
1416 r"""__str__(Histogram6D self) -> std::string"""
1417 return _IMP_statistics.Histogram6D___str__(self)
1420 r"""__repr__(Histogram6D self) -> std::string"""
1421 return _IMP_statistics.Histogram6D___repr__(self)
1423 def __cmp__(self, arg2):
1424 r"""__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1425 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1427 def __eq__(self, arg2):
1428 r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1429 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1430 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1433 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1434 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1435 r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1437 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1439 def __init__(self, *args):
1441 __init__(HistogramKD self) -> HistogramKD
1442 __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1444 _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1446 def add(self, x, weight=1):
1447 r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1448 return _IMP_statistics.HistogramKD_add(self, x, weight)
1450 def get_total_count(self):
1451 r"""get_total_count(HistogramKD self) -> double"""
1452 return _IMP_statistics.HistogramKD_get_total_count(self)
1454 def get_frequencies(self):
1455 r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1456 return _IMP_statistics.HistogramKD_get_frequencies(self)
1458 def get_probability_distribution_function(self):
1459 r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1460 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1462 def get_counts(self):
1463 r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1464 return _IMP_statistics.HistogramKD_get_counts(self)
1467 r"""get_mean(HistogramKD self) -> VectorKD"""
1468 return _IMP_statistics.HistogramKD_get_mean(self)
1470 def get_dimension(self):
1471 r"""get_dimension(HistogramKD self) -> unsigned int"""
1472 return _IMP_statistics.HistogramKD_get_dimension(self)
1474 def get_standard_deviation(self, mean):
1475 r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1476 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1478 def get_bounding_box(self):
1479 r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1480 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1482 def get_minimum_and_maximum(self):
1483 r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1484 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1486 def show(self, *args):
1487 r"""show(HistogramKD self, _ostream out=std::cout)"""
1488 return _IMP_statistics.HistogramKD_show(self, *args)
1491 r"""__str__(HistogramKD self) -> std::string"""
1492 return _IMP_statistics.HistogramKD___str__(self)
1495 r"""__repr__(HistogramKD self) -> std::string"""
1496 return _IMP_statistics.HistogramKD___repr__(self)
1498 def __cmp__(self, arg2):
1499 r"""__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1500 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1502 def __eq__(self, arg2):
1503 r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1504 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1505 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1508 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1509 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1510 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1512 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1513 __repr__ = _swig_repr
1515 def __setitem__(self, *args):
1517 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1518 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1520 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1522 def __getitem__(self, *args):
1524 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1525 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1527 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1529 def __init__(self, *args):
1531 __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1532 __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1533 __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1535 _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1539 r"""get_is_dense() -> bool"""
1540 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1542 def show(self, *args):
1543 r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1544 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1546 def add_voxel(self, arg2, arg3):
1547 r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1548 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1550 def get_all_voxels(self):
1551 r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1552 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1553 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1556 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1557 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1558 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1560 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1561 __repr__ = _swig_repr
1563 def __setitem__(self, *args):
1565 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1566 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1568 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1570 def __getitem__(self, *args):
1572 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1573 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1575 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1577 def __init__(self, *args):
1579 __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1580 __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1581 __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1583 _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1587 r"""get_is_dense() -> bool"""
1588 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1590 def show(self, *args):
1591 r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1592 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1594 def add_voxel(self, arg2, arg3):
1595 r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1596 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1598 def get_all_voxels(self):
1599 r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1600 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1601 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1604 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1605 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
1606 r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1608 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1609 __repr__ = _swig_repr
1611 def __init__(self, *args):
1613 __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1614 __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1615 __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1616 __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1617 __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1618 __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1619 __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1621 _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1623 def show(self, *args):
1624 r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1625 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1627 def __getitem__(self, *args):
1629 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1630 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1632 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1634 def __setitem__(self, *args):
1636 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1637 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1639 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1641 def add_voxel(self, pt, vt):
1642 r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1643 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1645 def get_extended_index(self, index):
1646 r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1647 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1649 def get_bounding_box(self, *args):
1651 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1652 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1653 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1655 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1657 def set_bounding_box(self, bb3):
1658 r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1659 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1661 def get_nearest_index(self, pt):
1662 r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1663 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1665 def get_nearest_extended_index(self, pt):
1666 r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1667 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1668 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1671 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1672 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1673 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1675 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1676 __repr__ = _swig_repr
1678 def __setitem__(self, *args):
1680 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1681 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1683 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1685 def __getitem__(self, *args):
1687 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1688 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1690 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1692 def __init__(self, *args):
1694 __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1695 __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1696 __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1698 _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1702 r"""get_is_dense() -> bool"""
1703 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1705 def show(self, *args):
1706 r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1707 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1709 def add_voxel(self, arg2, arg3):
1710 r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1711 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1713 def get_all_voxels(self):
1714 r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1715 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1716 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1719 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1720 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1721 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1723 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1724 __repr__ = _swig_repr
1726 def __setitem__(self, *args):
1728 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1729 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1731 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1733 def __getitem__(self, *args):
1735 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1736 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1738 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1740 def __init__(self, *args):
1742 __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1743 __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1744 __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1746 _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1750 r"""get_is_dense() -> bool"""
1751 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1753 def show(self, *args):
1754 r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1755 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1757 def add_voxel(self, arg2, arg3):
1758 r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1759 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1761 def get_all_voxels(self):
1762 r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1763 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1764 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1767 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1768 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
1769 r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1771 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1772 __repr__ = _swig_repr
1774 def __init__(self, *args):
1776 __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1777 __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1778 __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1779 __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1780 __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1781 __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1782 __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1784 _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1786 def show(self, *args):
1787 r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1788 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1790 def __getitem__(self, *args):
1792 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1793 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1795 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1797 def __setitem__(self, *args):
1799 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1800 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1802 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1804 def add_voxel(self, pt, vt):
1805 r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1806 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1808 def get_extended_index(self, index):
1809 r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1810 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1812 def get_bounding_box(self, *args):
1814 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1815 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1816 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1818 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1820 def set_bounding_box(self, bb3):
1821 r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1822 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1824 def get_nearest_index(self, pt):
1825 r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1826 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1828 def get_nearest_extended_index(self, pt):
1829 r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1830 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1831 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1834 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1835 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1836 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1838 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1839 __repr__ = _swig_repr
1841 def __setitem__(self, *args):
1843 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1844 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1846 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1848 def __getitem__(self, *args):
1850 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1851 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1853 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1855 def __init__(self, *args):
1857 __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1858 __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1859 __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1861 _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1865 r"""get_is_dense() -> bool"""
1866 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1868 def show(self, *args):
1869 r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1870 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1872 def add_voxel(self, arg2, arg3):
1873 r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1874 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1876 def get_all_voxels(self):
1877 r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1878 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1879 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1882 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1883 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1884 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1886 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1887 __repr__ = _swig_repr
1889 def __setitem__(self, *args):
1891 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1892 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1894 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1896 def __getitem__(self, *args):
1898 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1899 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1901 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1903 def __init__(self, *args):
1905 __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1906 __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1907 __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1909 _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1913 r"""get_is_dense() -> bool"""
1914 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1916 def show(self, *args):
1917 r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1918 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1920 def add_voxel(self, arg2, arg3):
1921 r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1922 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1924 def get_all_voxels(self):
1925 r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1926 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1927 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1930 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1931 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
1932 r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1934 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1935 __repr__ = _swig_repr
1937 def __init__(self, *args):
1939 __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1940 __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1941 __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1942 __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1943 __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1944 __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1945 __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1947 _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1949 def show(self, *args):
1950 r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1951 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1953 def __getitem__(self, *args):
1955 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1956 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1958 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1960 def __setitem__(self, *args):
1962 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1963 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1965 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1967 def add_voxel(self, pt, vt):
1968 r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1969 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1971 def get_extended_index(self, index):
1972 r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1973 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1975 def get_bounding_box(self, *args):
1977 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1978 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1979 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1981 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1983 def set_bounding_box(self, bb3):
1984 r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1985 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1987 def get_nearest_index(self, pt):
1988 r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1989 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1991 def get_nearest_extended_index(self, pt):
1992 r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1993 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1994 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1997 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1998 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1999 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
2001 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2002 __repr__ = _swig_repr
2004 def __setitem__(self, *args):
2006 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2007 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2009 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2011 def __getitem__(self, *args):
2013 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2014 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2016 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2018 def __init__(self, *args):
2020 __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2021 __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
2022 __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
2024 _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
2028 r"""get_is_dense() -> bool"""
2029 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2031 def show(self, *args):
2032 r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
2033 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2035 def add_voxel(self, arg2, arg3):
2036 r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2037 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2039 def get_all_voxels(self):
2040 r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2041 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2042 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2045 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2046 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2047 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
2049 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2050 __repr__ = _swig_repr
2052 def __setitem__(self, *args):
2054 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2055 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2057 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2059 def __getitem__(self, *args):
2061 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2062 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2064 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2066 def __init__(self, *args):
2068 __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2069 __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2070 __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2072 _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2076 r"""get_is_dense() -> bool"""
2077 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2079 def show(self, *args):
2080 r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2081 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2083 def add_voxel(self, arg2, arg3):
2084 r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2085 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2087 def get_all_voxels(self):
2088 r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2089 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2090 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2093 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2094 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2095 r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2097 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2098 __repr__ = _swig_repr
2100 def __init__(self, *args):
2102 __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2103 __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2104 __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2105 __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2106 __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2107 __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2108 __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2110 _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2112 def show(self, *args):
2113 r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2114 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2116 def __getitem__(self, *args):
2118 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2119 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2121 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2123 def __setitem__(self, *args):
2125 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2126 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2128 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2130 def add_voxel(self, pt, vt):
2131 r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2132 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2134 def get_extended_index(self, index):
2135 r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2136 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2138 def get_bounding_box(self, *args):
2140 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2141 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2142 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2144 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2146 def set_bounding_box(self, bb3):
2147 r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2148 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2150 def get_nearest_index(self, pt):
2151 r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2152 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2154 def get_nearest_extended_index(self, pt):
2155 r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2156 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2157 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2160 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2161 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2162 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2164 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2165 __repr__ = _swig_repr
2167 def __setitem__(self, *args):
2169 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2170 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2172 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2174 def __getitem__(self, *args):
2176 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2177 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2179 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2181 def __init__(self, *args):
2183 __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2184 __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2185 __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2187 _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2191 r"""get_is_dense() -> bool"""
2192 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2194 def show(self, *args):
2195 r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2196 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2198 def add_voxel(self, arg2, arg3):
2199 r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2200 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2202 def get_all_voxels(self):
2203 r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2204 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2205 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2208 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2209 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2210 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2212 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2213 __repr__ = _swig_repr
2215 def __setitem__(self, *args):
2217 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2218 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2220 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2222 def __getitem__(self, *args):
2224 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2225 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2227 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2229 def __init__(self, *args):
2231 __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2232 __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2233 __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2235 _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2239 r"""get_is_dense() -> bool"""
2240 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2242 def show(self, *args):
2243 r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2244 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2246 def add_voxel(self, arg2, arg3):
2247 r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2248 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2250 def get_all_voxels(self):
2251 r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2252 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2253 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2256 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2257 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2258 r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2260 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2261 __repr__ = _swig_repr
2263 def __init__(self, *args):
2265 __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2266 __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2267 __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2268 __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2269 __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2270 __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2271 __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2273 _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2275 def show(self, *args):
2276 r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2277 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2279 def __getitem__(self, *args):
2281 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2282 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2284 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2286 def __setitem__(self, *args):
2288 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2289 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2291 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2293 def add_voxel(self, pt, vt):
2294 r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2295 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2297 def get_extended_index(self, index):
2298 r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2299 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2301 def get_bounding_box(self, *args):
2303 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2304 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2305 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2307 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2309 def set_bounding_box(self, bb3):
2310 r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2311 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2313 def get_nearest_index(self, pt):
2314 r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2315 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2317 def get_nearest_extended_index(self, pt):
2318 r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2319 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2320 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2323 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2324 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2325 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2327 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2328 __repr__ = _swig_repr
2330 def __setitem__(self, *args):
2332 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2333 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2335 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2337 def __getitem__(self, *args):
2339 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2340 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2342 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2344 def __init__(self, *args):
2346 __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2347 __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2348 __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2350 _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2354 r"""get_is_dense() -> bool"""
2355 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2357 def show(self, *args):
2358 r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2359 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2361 def add_voxel(self, arg2, arg3):
2362 r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2363 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2365 def get_all_voxels(self):
2366 r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2367 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2368 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2371 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2372 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2373 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2375 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2376 __repr__ = _swig_repr
2378 def __setitem__(self, *args):
2380 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2381 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2383 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2385 def __getitem__(self, *args):
2387 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2388 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2390 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2392 def __init__(self, *args):
2394 __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2395 __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2396 __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2398 _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2402 r"""get_is_dense() -> bool"""
2403 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2405 def show(self, *args):
2406 r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2407 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2409 def add_voxel(self, arg2, arg3):
2410 r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2411 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2413 def get_all_voxels(self):
2414 r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2415 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2416 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2419 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2420 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
2421 r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2423 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2424 __repr__ = _swig_repr
2426 def __init__(self, *args):
2428 __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2429 __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2430 __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2431 __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2432 __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2433 __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2434 __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2436 _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2438 def show(self, *args):
2439 r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2440 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2442 def __getitem__(self, *args):
2444 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2445 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2447 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2449 def __setitem__(self, *args):
2451 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2452 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2454 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2456 def add_voxel(self, pt, vt):
2457 r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2458 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2460 def get_extended_index(self, index):
2461 r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2462 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2464 def get_bounding_box(self, *args):
2466 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2467 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2468 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2470 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2472 def set_bounding_box(self, bb3):
2473 r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2474 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2476 def get_nearest_index(self, pt):
2477 r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2478 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2480 def get_nearest_extended_index(self, pt):
2481 r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2482 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2483 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2486 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2487 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2488 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2490 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2491 __repr__ = _swig_repr
2493 def __setitem__(self, *args):
2495 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2496 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2498 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2500 def __getitem__(self, *args):
2502 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2503 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2505 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2507 def __init__(self, *args):
2509 __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2510 __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2511 __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2513 _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2517 r"""get_is_dense() -> bool"""
2518 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2520 def show(self, *args):
2521 r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2522 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2524 def add_voxel(self, arg2, arg3):
2525 r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2526 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2528 def get_all_voxels(self):
2529 r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2530 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2531 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2534 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2535 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2536 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2538 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2539 __repr__ = _swig_repr
2541 def __setitem__(self, *args):
2543 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2544 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2546 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2548 def __getitem__(self, *args):
2550 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2551 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2553 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2555 def __init__(self, *args):
2557 __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2558 __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2559 __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2561 _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2565 r"""get_is_dense() -> bool"""
2566 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2568 def show(self, *args):
2569 r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2570 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2572 def add_voxel(self, arg2, arg3):
2573 r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2574 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2576 def get_all_voxels(self):
2577 r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2578 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2579 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2582 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2583 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
2584 r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2586 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2587 __repr__ = _swig_repr
2589 def __init__(self, *args):
2591 __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2592 __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2593 __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2594 __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2595 __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2596 __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2597 __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2599 _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2601 def show(self, *args):
2602 r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2603 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2605 def __getitem__(self, *args):
2607 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2608 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2610 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2612 def __setitem__(self, *args):
2614 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2615 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2617 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2619 def add_voxel(self, pt, vt):
2620 r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2621 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2623 def get_extended_index(self, index):
2624 r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2625 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2627 def get_bounding_box(self, *args):
2629 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2630 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2631 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2633 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2635 def set_bounding_box(self, bb3):
2636 r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2637 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2639 def get_nearest_index(self, pt):
2640 r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2641 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2643 def get_nearest_extended_index(self, pt):
2644 r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2645 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2646 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2649 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2651 from .
import _histogram
2652 show_histogram= _histogram.show_histogram
2656 r"""get_module_version() -> std::string const"""
2657 return _IMP_statistics.get_module_version()
2660 r"""get_example_path(std::string fname) -> std::string"""
2661 return _IMP_statistics.get_example_path(fname)
2664 r"""get_data_path(std::string fname) -> std::string"""
2665 return _IMP_statistics.get_data_path(fname)
2667 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)
Version and module information for Objects.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Ints get_representatives(Embedding *d, PartitionalClustering *pc)