11 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 import _IMP_statistics
19 import builtins
as __builtin__
25 strthis =
"proxy of " + self.this.__repr__()
26 except __builtin__.Exception:
28 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
31 def _swig_setattr_nondynamic_instance_variable(set):
32 def set_instance_attr(self, name, value):
34 set(self, name, value)
35 elif name ==
"thisown":
37 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
38 set(self, name, value)
40 raise AttributeError(
"You cannot add instance attributes to %s" % self)
41 return set_instance_attr
44 def _swig_setattr_nondynamic_class_variable(set):
45 def set_class_attr(cls, name, value):
46 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
49 raise AttributeError(
"You cannot add class attributes to %s" % cls)
53 def _swig_add_metaclass(metaclass):
54 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
56 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
60 class _SwigNonDynamicMeta(type):
61 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
67 class IMP_STATISTICS_SwigPyIterator(object):
68 r"""Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class."""
70 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
72 def __init__(self, *args, **kwargs):
73 raise AttributeError(
"No constructor defined - class is abstract")
75 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
78 r"""value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
79 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
82 r"""incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
83 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
86 r"""decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
87 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
89 def distance(self, x):
90 r"""distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
91 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
94 r"""equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
95 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
98 r"""copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
99 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
102 r"""next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
103 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
106 r"""__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
107 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
110 r"""previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
111 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
113 def advance(self, n):
114 r"""advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
115 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
118 r"""__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
119 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
122 r"""__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
123 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
125 def __iadd__(self, n):
126 r"""__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
127 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
129 def __isub__(self, n):
130 r"""__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
131 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
133 def __add__(self, n):
134 r"""__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
135 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
137 def __sub__(self, *args):
139 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
140 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
142 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
147 _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
154 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
156 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
158 IMP_SILENT = _IMP_statistics.IMP_SILENT
160 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
162 IMP_TERSE = _IMP_statistics.IMP_TERSE
164 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
166 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
168 IMP_NONE = _IMP_statistics.IMP_NONE
170 IMP_USAGE = _IMP_statistics.IMP_USAGE
172 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_statistics.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
186 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
198 class _DirectorObjects(object):
199 """@internal Simple class to keep references to director objects
200 to prevent premature deletion."""
203 def register(self, obj):
204 """Take a reference to a director object; will only work for
205 refcounted C++ classes"""
206 if hasattr(obj,
'get_ref_count'):
207 self._objects.append(obj)
209 """Only drop our reference and allow cleanup by Python if no other
210 Python references exist (we hold 3 references: one in self._objects,
211 one in x, and one in the argument list for getrefcount) *and* no
212 other C++ references exist (the Python object always holds one)"""
213 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
214 or x.get_ref_count() > 1]
218 def get_object_count(self):
219 """Get number of director objects (useful for testing only)"""
220 return len(self._objects)
221 _director_objects = _DirectorObjects()
223 class _ostream(object):
224 r"""Proxy of C++ std::ostream class."""
226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
228 def __init__(self, *args, **kwargs):
229 raise AttributeError(
"No constructor defined")
230 __repr__ = _swig_repr
232 def write(self, osa_buf):
233 r"""write(_ostream self, char const * osa_buf)"""
234 return _IMP_statistics._ostream_write(self, osa_buf)
237 _IMP_statistics._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
249 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
251 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
273 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
275 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
277 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
279 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
281 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
283 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
285 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
287 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
291 _plural_types.append(
"Histogram1Ds")
292 _value_types.append(
"Histogram1D")
296 _plural_types.append(
"Histogram2Ds")
297 _value_types.append(
"Histogram2D")
301 _plural_types.append(
"Histogram3Ds")
302 _value_types.append(
"Histogram3D")
306 _plural_types.append(
"Histogram4Ds")
307 _value_types.append(
"Histogram4D")
311 _plural_types.append(
"Histogram5Ds")
312 _value_types.append(
"Histogram5D")
316 _plural_types.append(
"Histogram6Ds")
317 _value_types.append(
"Histogram6D")
321 _plural_types.append(
"Histogram1Ds")
322 _value_types.append(
"HistogramD<1>")
326 _plural_types.append(
"Histogram2Ds")
327 _value_types.append(
"HistogramD<2>")
331 _plural_types.append(
"Histogram3Ds")
332 _value_types.append(
"HistogramD<3>")
336 _plural_types.append(
"Histogram4Ds")
337 _value_types.append(
"HistogramD<4>")
341 _plural_types.append(
"Histogram5Ds")
342 _value_types.append(
"HistogramD<5>")
346 _plural_types.append(
"Histogram6Ds")
347 _value_types.append(
"HistogramD<6>")
351 _plural_types.append(
"HistogramKDs")
352 _value_types.append(
"HistogramKD")
356 _plural_types.append(
"HistogramKDs")
357 _value_types.append(
"HistogramD<-1>")
360 _object_types.append(
"PartitionalClustering")
363 def _object_cast_to_PartitionalClustering(o):
364 r"""_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
365 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
367 _object_types.append(
"PartitionalClusteringWithCenter")
370 def _object_cast_to_PartitionalClusteringWithCenter(o):
371 r"""_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
372 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
374 _object_types.append(
"Embedding")
377 def _object_cast_to_Embedding(o):
378 r"""_object_cast_to_Embedding(Object o) -> Embedding"""
379 return _IMP_statistics._object_cast_to_Embedding(o)
381 _object_types.append(
"ConfigurationSetXYZEmbedding")
384 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
385 r"""_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
386 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
388 _object_types.append(
"VectorDEmbedding")
391 def _object_cast_to_VectorDEmbedding(o):
392 r"""_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
393 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
395 _object_types.append(
"ParticleEmbedding")
398 def _object_cast_to_ParticleEmbedding(o):
399 r"""_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
400 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
402 _object_types.append(
"Metric")
405 def _object_cast_to_Metric(o):
406 r"""_object_cast_to_Metric(Object o) -> Metric"""
407 return _IMP_statistics._object_cast_to_Metric(o)
409 _object_types.append(
"EuclideanMetric")
412 def _object_cast_to_EuclideanMetric(o):
413 r"""_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
414 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
416 _object_types.append(
"ConfigurationSetRMSDMetric")
419 def _object_cast_to_ConfigurationSetRMSDMetric(o):
420 r"""_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
421 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
423 _object_types.append(
"RecursivePartitionalClusteringMetric")
426 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
427 r"""_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
428 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
430 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
433 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
434 r"""_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
435 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
437 _object_types.append(
"ChiSquareMetric")
440 def _object_cast_to_ChiSquareMetric(o):
441 r"""_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
442 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
444 r"""Proxy of C++ IMP::statistics::PartitionalClustering class."""
446 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
448 def __init__(self, *args, **kwargs):
449 raise AttributeError(
"No constructor defined - class is abstract")
451 def get_number_of_clusters(self):
452 r"""get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
453 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
455 def get_cluster(self, cluster_index):
456 r"""get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
457 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
459 def get_cluster_representative(self, cluster_index):
460 r"""get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
461 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
462 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
465 r"""__str__(PartitionalClustering self) -> std::string"""
466 return _IMP_statistics.PartitionalClustering___str__(self)
469 r"""__repr__(PartitionalClustering self) -> std::string"""
470 return _IMP_statistics.PartitionalClustering___repr__(self)
474 return _object_cast_to_PartitionalClustering(o)
478 _IMP_statistics.PartitionalClustering_swigregister(PartitionalClustering)
481 r"""validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
482 return _IMP_statistics.validate_partitional_clustering(pc, n)
484 r"""Proxy of C++ IMP::statistics::Embedding class."""
486 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
488 def __init__(self, name):
489 r"""__init__(Embedding self, std::string name) -> Embedding"""
490 if self.__class__ == Embedding:
494 _IMP_statistics.Embedding_swiginit(self, _IMP_statistics.new_Embedding(_self, name))
496 if self.__class__ != Embedding:
497 _director_objects.register(self)
502 def do_get_weight(self, i):
503 r"""do_get_weight(Embedding self, unsigned int i) -> double"""
504 return _IMP_statistics.Embedding_do_get_weight(self, i)
506 def get_point(self, i):
507 r"""get_point(Embedding self, unsigned int i) -> VectorKD"""
508 return _IMP_statistics.Embedding_get_point(self, i)
510 def get_number_of_items(self):
511 r"""get_number_of_items(Embedding self) -> unsigned int"""
512 return _IMP_statistics.Embedding_get_number_of_items(self)
514 def get_weight(self, i):
515 r"""get_weight(Embedding self, unsigned int i) -> double"""
516 return _IMP_statistics.Embedding_get_weight(self, i)
518 def get_points(self):
519 r"""get_points(Embedding self) -> IMP::algebra::VectorKDs"""
520 return _IMP_statistics.Embedding_get_points(self)
523 r"""__str__(Embedding self) -> std::string"""
524 return _IMP_statistics.Embedding___str__(self)
527 r"""__repr__(Embedding self) -> std::string"""
528 return _IMP_statistics.Embedding___repr__(self)
532 return _object_cast_to_Embedding(o)
535 def get_type_name(self):
536 return self.__class__.__name__
537 def do_show(self, out):
539 def get_version_info(self):
540 if"IMP::statistics" ==
"IMP":
541 return VersionInfo(self.__module__,
548 return _object_cast_to_Embedding(o)
550 __swig_destroy__ = _IMP_statistics.delete_Embedding
551 def __disown__(self):
553 _IMP_statistics.disown_Embedding(self)
554 return weakref.proxy(self)
556 def do_destroy(self):
557 r"""do_destroy(Embedding self)"""
558 return _IMP_statistics.Embedding_do_destroy(self)
561 _IMP_statistics.Embedding_swigregister(Embedding)
563 r"""Proxy of C++ IMP::statistics::Metric class."""
565 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
567 def __init__(self, name):
568 r"""__init__(Metric self, std::string name) -> Metric"""
569 if self.__class__ == Metric:
573 _IMP_statistics.Metric_swiginit(self, _IMP_statistics.new_Metric(_self, name))
575 if self.__class__ != Metric:
576 _director_objects.register(self)
581 def do_get_weight(self, i):
582 r"""do_get_weight(Metric self, unsigned int i) -> double"""
583 return _IMP_statistics.Metric_do_get_weight(self, i)
586 r"""get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
587 return _IMP_statistics.Metric_get_distance(self, i, j)
589 def get_weight(self, i):
590 r"""get_weight(Metric self, unsigned int i) -> double"""
591 return _IMP_statistics.Metric_get_weight(self, i)
593 def get_number_of_items(self):
594 r"""get_number_of_items(Metric self) -> unsigned int"""
595 return _IMP_statistics.Metric_get_number_of_items(self)
596 __swig_destroy__ = _IMP_statistics.delete_Metric
599 r"""__str__(Metric self) -> std::string"""
600 return _IMP_statistics.Metric___str__(self)
603 r"""__repr__(Metric self) -> std::string"""
604 return _IMP_statistics.Metric___repr__(self)
608 return _object_cast_to_Metric(o)
611 def get_type_name(self):
612 return self.__class__.__name__
613 def do_show(self, out):
615 def get_version_info(self):
616 if"IMP::statistics" ==
"IMP":
617 return VersionInfo(self.__module__,
624 return _object_cast_to_Metric(o)
626 def __disown__(self):
628 _IMP_statistics.disown_Metric(self)
629 return weakref.proxy(self)
631 def do_destroy(self):
632 r"""do_destroy(Metric self)"""
633 return _IMP_statistics.Metric_do_destroy(self)
636 _IMP_statistics.Metric_swigregister(Metric)
637 class ChiSquareMetric(Metric):
638 r"""Proxy of C++ IMP::statistics::ChiSquareMetric class."""
640 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
642 def __init__(self, data_exp, constr_type=0):
643 r"""__init__(ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric"""
644 _IMP_statistics.ChiSquareMetric_swiginit(self, _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type))
646 def add_configuration(self, data, stddev, weight=1.0):
647 r"""add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)"""
648 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
650 def get_data(self, i):
651 r"""get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
652 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
654 def get_standard_deviation(self, i):
655 r"""get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
656 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
658 def do_get_weight(self, i):
659 r"""do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
660 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
662 def get_chi_square_experimental(self, i):
663 r"""get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
664 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
666 def get_version_info(self):
667 r"""get_version_info(ChiSquareMetric self) -> VersionInfo"""
668 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
669 __swig_destroy__ = _IMP_statistics.delete_ChiSquareMetric
672 r"""__str__(ChiSquareMetric self) -> std::string"""
673 return _IMP_statistics.ChiSquareMetric___str__(self)
676 r"""__repr__(ChiSquareMetric self) -> std::string"""
677 return _IMP_statistics.ChiSquareMetric___repr__(self)
681 return _object_cast_to_ChiSquareMetric(o)
685 _IMP_statistics.ChiSquareMetric_swigregister(ChiSquareMetric)
686 class PartitionalClusteringWithCenter(PartitionalClustering):
687 r"""Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
689 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
691 def __init__(self, *args, **kwargs):
692 raise AttributeError(
"No constructor defined")
694 def get_cluster_center(self, i):
695 r"""get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
696 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
698 def get_version_info(self):
699 r"""get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
700 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
701 __swig_destroy__ = _IMP_statistics.delete_PartitionalClusteringWithCenter
704 r"""__str__(PartitionalClusteringWithCenter self) -> std::string"""
705 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
708 r"""__repr__(PartitionalClusteringWithCenter self) -> std::string"""
709 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
713 return _object_cast_to_PartitionalClusteringWithCenter(o)
717 _IMP_statistics.PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
718 class ConfigurationSetXYZEmbedding(Embedding):
719 r"""Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
721 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
723 def __init__(self, cs, pi, align=False):
724 r"""__init__(ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding"""
725 _IMP_statistics.ConfigurationSetXYZEmbedding_swiginit(self, _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align))
727 def get_version_info(self):
728 r"""get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
729 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
730 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetXYZEmbedding
733 r"""__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
734 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
737 r"""__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
738 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
742 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
746 _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
747 class ParticleEmbedding(Embedding):
748 r"""Proxy of C++ IMP::statistics::ParticleEmbedding class."""
750 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
752 def __init__(self, *args):
754 __init__(ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks=IMP::FloatKeys(
759 3), bool rescale=False) -> ParticleEmbedding
761 _IMP_statistics.ParticleEmbedding_swiginit(self, _IMP_statistics.new_ParticleEmbedding(*args))
763 def get_version_info(self):
764 r"""get_version_info(ParticleEmbedding self) -> VersionInfo"""
765 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
766 __swig_destroy__ = _IMP_statistics.delete_ParticleEmbedding
769 r"""__str__(ParticleEmbedding self) -> std::string"""
770 return _IMP_statistics.ParticleEmbedding___str__(self)
773 r"""__repr__(ParticleEmbedding self) -> std::string"""
774 return _IMP_statistics.ParticleEmbedding___repr__(self)
778 return _object_cast_to_ParticleEmbedding(o)
782 _IMP_statistics.ParticleEmbedding_swigregister(ParticleEmbedding)
783 class VectorDEmbedding(Embedding):
784 r"""Proxy of C++ IMP::statistics::VectorDEmbedding class."""
786 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
788 def __init__(self, *args):
790 __init__(VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
791 __init__(VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
792 __init__(VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
793 __init__(VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
794 __init__(VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
795 __init__(VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
797 _IMP_statistics.VectorDEmbedding_swiginit(self, _IMP_statistics.new_VectorDEmbedding(*args))
799 def get_version_info(self):
800 r"""get_version_info(VectorDEmbedding self) -> VersionInfo"""
801 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
802 __swig_destroy__ = _IMP_statistics.delete_VectorDEmbedding
805 r"""__str__(VectorDEmbedding self) -> std::string"""
806 return _IMP_statistics.VectorDEmbedding___str__(self)
809 r"""__repr__(VectorDEmbedding self) -> std::string"""
810 return _IMP_statistics.VectorDEmbedding___repr__(self)
814 return _object_cast_to_VectorDEmbedding(o)
818 _IMP_statistics.VectorDEmbedding_swigregister(VectorDEmbedding)
819 class EuclideanMetric(Metric):
820 r"""Proxy of C++ IMP::statistics::EuclideanMetric class."""
822 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
824 def __init__(self, em):
825 r"""__init__(EuclideanMetric self, Embedding em) -> EuclideanMetric"""
826 _IMP_statistics.EuclideanMetric_swiginit(self, _IMP_statistics.new_EuclideanMetric(em))
828 def get_version_info(self):
829 r"""get_version_info(EuclideanMetric self) -> VersionInfo"""
830 return _IMP_statistics.EuclideanMetric_get_version_info(self)
831 __swig_destroy__ = _IMP_statistics.delete_EuclideanMetric
834 r"""__str__(EuclideanMetric self) -> std::string"""
835 return _IMP_statistics.EuclideanMetric___str__(self)
838 r"""__repr__(EuclideanMetric self) -> std::string"""
839 return _IMP_statistics.EuclideanMetric___repr__(self)
843 return _object_cast_to_EuclideanMetric(o)
847 _IMP_statistics.EuclideanMetric_swigregister(EuclideanMetric)
848 class ConfigurationSetRMSDMetric(Metric):
849 r"""Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
851 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
853 def __init__(self, cs, sc, align=False):
854 r"""__init__(ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric"""
855 _IMP_statistics.ConfigurationSetRMSDMetric_swiginit(self, _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align))
857 def get_version_info(self):
858 r"""get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
859 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
860 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetRMSDMetric
863 r"""__str__(ConfigurationSetRMSDMetric self) -> std::string"""
864 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
867 r"""__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
868 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
872 return _object_cast_to_ConfigurationSetRMSDMetric(o)
876 _IMP_statistics.ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
879 r"""create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
880 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
883 r"""create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
884 return _IMP_statistics.create_bin_based_clustering(embed, side)
888 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
889 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
891 return _IMP_statistics.create_centrality_clustering(*args)
894 r"""create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
895 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
899 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
900 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
902 return _IMP_statistics.create_connectivity_clustering(*args)
904 def create_gromos_clustering(d, cutoff):
905 r"""create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
906 return _IMP_statistics.create_gromos_clustering(d, cutoff)
909 r"""get_quantile(Histogram1D h, double fraction) -> double"""
910 return _IMP_statistics.get_quantile(h, fraction)
913 r"""get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
914 return _IMP_statistics.get_centroids(d, pc)
917 r"""get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
918 return _IMP_statistics.get_representatives(d, pc)
919 class RecursivePartitionalClusteringEmbedding(Embedding):
920 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
922 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
924 def __init__(self, metric, clustering):
925 r"""__init__(RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
926 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering))
928 def create_full_clustering(self, center_cluster):
929 r"""create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
930 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
932 def get_version_info(self):
933 r"""get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
934 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
935 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringEmbedding
938 r"""__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
939 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
942 r"""__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
943 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
947 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
951 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
952 class RecursivePartitionalClusteringMetric(Metric):
953 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
955 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
957 def __init__(self, metric, clustering):
958 r"""__init__(RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
959 _IMP_statistics.RecursivePartitionalClusteringMetric_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering))
961 def create_full_clustering(self, center_cluster):
962 r"""create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
963 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
965 def get_version_info(self):
966 r"""get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
967 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
968 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringMetric
971 r"""__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
972 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
975 r"""__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
976 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
980 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
984 _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
985 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
986 r"""Proxy of C++ IMP::statistics::HistogramD< 1 > class."""
988 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
990 def __init__(self, *args):
992 __init__(Histogram1D self) -> Histogram1D
993 __init__(Histogram1D self, double voxel_size, BoundingBox1D bb) -> Histogram1D
995 _IMP_statistics.Histogram1D_swiginit(self, _IMP_statistics.new_Histogram1D(*args))
997 def add(self, x, weight=1):
998 r"""add(Histogram1D self, Vector1D x, double weight=1)"""
999 return _IMP_statistics.Histogram1D_add(self, x, weight)
1001 def get_total_count(self):
1002 r"""get_total_count(Histogram1D self) -> double"""
1003 return _IMP_statistics.Histogram1D_get_total_count(self)
1005 def get_frequencies(self):
1006 r"""get_frequencies(Histogram1D self) -> Histogram1D"""
1007 return _IMP_statistics.Histogram1D_get_frequencies(self)
1009 def get_probability_distribution_function(self):
1010 r"""get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1011 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1013 def get_counts(self):
1014 r"""get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1015 return _IMP_statistics.Histogram1D_get_counts(self)
1018 r"""get_mean(Histogram1D self) -> Vector1D"""
1019 return _IMP_statistics.Histogram1D_get_mean(self)
1021 def get_dimension(self):
1022 r"""get_dimension(Histogram1D self) -> unsigned int"""
1023 return _IMP_statistics.Histogram1D_get_dimension(self)
1025 def get_standard_deviation(self, mean):
1026 r"""get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1027 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1029 def get_bounding_box(self):
1030 r"""get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1031 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1033 def get_minimum_and_maximum(self):
1034 r"""get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1035 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1037 def show(self, *args):
1038 r"""show(Histogram1D self, _ostream out=std::cout)"""
1039 return _IMP_statistics.Histogram1D_show(self, *args)
1042 r"""__str__(Histogram1D self) -> std::string"""
1043 return _IMP_statistics.Histogram1D___str__(self)
1046 r"""__repr__(Histogram1D self) -> std::string"""
1047 return _IMP_statistics.Histogram1D___repr__(self)
1049 def __cmp__(self, arg2):
1050 r"""__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1051 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1053 def __eq__(self, arg2):
1054 r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1055 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1056 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1059 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1060 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1061 r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1063 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1065 def __init__(self, *args):
1067 __init__(Histogram2D self) -> Histogram2D
1068 __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1070 _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1072 def add(self, x, weight=1):
1073 r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1074 return _IMP_statistics.Histogram2D_add(self, x, weight)
1076 def get_total_count(self):
1077 r"""get_total_count(Histogram2D self) -> double"""
1078 return _IMP_statistics.Histogram2D_get_total_count(self)
1080 def get_frequencies(self):
1081 r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1082 return _IMP_statistics.Histogram2D_get_frequencies(self)
1084 def get_probability_distribution_function(self):
1085 r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1086 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1088 def get_counts(self):
1089 r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1090 return _IMP_statistics.Histogram2D_get_counts(self)
1093 r"""get_mean(Histogram2D self) -> Vector2D"""
1094 return _IMP_statistics.Histogram2D_get_mean(self)
1096 def get_dimension(self):
1097 r"""get_dimension(Histogram2D self) -> unsigned int"""
1098 return _IMP_statistics.Histogram2D_get_dimension(self)
1100 def get_standard_deviation(self, mean):
1101 r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1102 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1104 def get_bounding_box(self):
1105 r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1106 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1108 def get_minimum_and_maximum(self):
1109 r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1110 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1112 def show(self, *args):
1113 r"""show(Histogram2D self, _ostream out=std::cout)"""
1114 return _IMP_statistics.Histogram2D_show(self, *args)
1117 r"""__str__(Histogram2D self) -> std::string"""
1118 return _IMP_statistics.Histogram2D___str__(self)
1121 r"""__repr__(Histogram2D self) -> std::string"""
1122 return _IMP_statistics.Histogram2D___repr__(self)
1124 def __cmp__(self, arg2):
1125 r"""__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1126 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1128 def __eq__(self, arg2):
1129 r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1130 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1131 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1134 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1135 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1136 r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1138 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1140 def __init__(self, *args):
1142 __init__(Histogram3D self) -> Histogram3D
1143 __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1145 _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1147 def add(self, x, weight=1):
1148 r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1149 return _IMP_statistics.Histogram3D_add(self, x, weight)
1151 def get_total_count(self):
1152 r"""get_total_count(Histogram3D self) -> double"""
1153 return _IMP_statistics.Histogram3D_get_total_count(self)
1155 def get_frequencies(self):
1156 r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1157 return _IMP_statistics.Histogram3D_get_frequencies(self)
1159 def get_probability_distribution_function(self):
1160 r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1161 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1163 def get_counts(self):
1164 r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1165 return _IMP_statistics.Histogram3D_get_counts(self)
1168 r"""get_mean(Histogram3D self) -> Vector3D"""
1169 return _IMP_statistics.Histogram3D_get_mean(self)
1171 def get_dimension(self):
1172 r"""get_dimension(Histogram3D self) -> unsigned int"""
1173 return _IMP_statistics.Histogram3D_get_dimension(self)
1175 def get_standard_deviation(self, mean):
1176 r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1177 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1179 def get_bounding_box(self):
1180 r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1181 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1183 def get_minimum_and_maximum(self):
1184 r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1185 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1187 def show(self, *args):
1188 r"""show(Histogram3D self, _ostream out=std::cout)"""
1189 return _IMP_statistics.Histogram3D_show(self, *args)
1192 r"""__str__(Histogram3D self) -> std::string"""
1193 return _IMP_statistics.Histogram3D___str__(self)
1196 r"""__repr__(Histogram3D self) -> std::string"""
1197 return _IMP_statistics.Histogram3D___repr__(self)
1199 def __cmp__(self, arg2):
1200 r"""__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1201 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1203 def __eq__(self, arg2):
1204 r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1205 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1206 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1209 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1210 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1211 r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1215 def __init__(self, *args):
1217 __init__(Histogram4D self) -> Histogram4D
1218 __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1220 _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1222 def add(self, x, weight=1):
1223 r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1224 return _IMP_statistics.Histogram4D_add(self, x, weight)
1226 def get_total_count(self):
1227 r"""get_total_count(Histogram4D self) -> double"""
1228 return _IMP_statistics.Histogram4D_get_total_count(self)
1230 def get_frequencies(self):
1231 r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1232 return _IMP_statistics.Histogram4D_get_frequencies(self)
1234 def get_probability_distribution_function(self):
1235 r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1236 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1238 def get_counts(self):
1239 r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1240 return _IMP_statistics.Histogram4D_get_counts(self)
1243 r"""get_mean(Histogram4D self) -> Vector4D"""
1244 return _IMP_statistics.Histogram4D_get_mean(self)
1246 def get_dimension(self):
1247 r"""get_dimension(Histogram4D self) -> unsigned int"""
1248 return _IMP_statistics.Histogram4D_get_dimension(self)
1250 def get_standard_deviation(self, mean):
1251 r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1252 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1254 def get_bounding_box(self):
1255 r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1256 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1258 def get_minimum_and_maximum(self):
1259 r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1260 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1262 def show(self, *args):
1263 r"""show(Histogram4D self, _ostream out=std::cout)"""
1264 return _IMP_statistics.Histogram4D_show(self, *args)
1267 r"""__str__(Histogram4D self) -> std::string"""
1268 return _IMP_statistics.Histogram4D___str__(self)
1271 r"""__repr__(Histogram4D self) -> std::string"""
1272 return _IMP_statistics.Histogram4D___repr__(self)
1274 def __cmp__(self, arg2):
1275 r"""__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1276 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1278 def __eq__(self, arg2):
1279 r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1280 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1281 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1284 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1285 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1286 r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1288 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1290 def __init__(self, *args):
1292 __init__(Histogram5D self) -> Histogram5D
1293 __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1295 _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1297 def add(self, x, weight=1):
1298 r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1299 return _IMP_statistics.Histogram5D_add(self, x, weight)
1301 def get_total_count(self):
1302 r"""get_total_count(Histogram5D self) -> double"""
1303 return _IMP_statistics.Histogram5D_get_total_count(self)
1305 def get_frequencies(self):
1306 r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1307 return _IMP_statistics.Histogram5D_get_frequencies(self)
1309 def get_probability_distribution_function(self):
1310 r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1311 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1313 def get_counts(self):
1314 r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1315 return _IMP_statistics.Histogram5D_get_counts(self)
1318 r"""get_mean(Histogram5D self) -> Vector5D"""
1319 return _IMP_statistics.Histogram5D_get_mean(self)
1321 def get_dimension(self):
1322 r"""get_dimension(Histogram5D self) -> unsigned int"""
1323 return _IMP_statistics.Histogram5D_get_dimension(self)
1325 def get_standard_deviation(self, mean):
1326 r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1327 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1329 def get_bounding_box(self):
1330 r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1331 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1333 def get_minimum_and_maximum(self):
1334 r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1335 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1337 def show(self, *args):
1338 r"""show(Histogram5D self, _ostream out=std::cout)"""
1339 return _IMP_statistics.Histogram5D_show(self, *args)
1342 r"""__str__(Histogram5D self) -> std::string"""
1343 return _IMP_statistics.Histogram5D___str__(self)
1346 r"""__repr__(Histogram5D self) -> std::string"""
1347 return _IMP_statistics.Histogram5D___repr__(self)
1349 def __cmp__(self, arg2):
1350 r"""__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1351 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1353 def __eq__(self, arg2):
1354 r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1355 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1356 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1359 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1360 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1361 r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1363 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1365 def __init__(self, *args):
1367 __init__(Histogram6D self) -> Histogram6D
1368 __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1370 _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1372 def add(self, x, weight=1):
1373 r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1374 return _IMP_statistics.Histogram6D_add(self, x, weight)
1376 def get_total_count(self):
1377 r"""get_total_count(Histogram6D self) -> double"""
1378 return _IMP_statistics.Histogram6D_get_total_count(self)
1380 def get_frequencies(self):
1381 r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1382 return _IMP_statistics.Histogram6D_get_frequencies(self)
1384 def get_probability_distribution_function(self):
1385 r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1386 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1388 def get_counts(self):
1389 r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1390 return _IMP_statistics.Histogram6D_get_counts(self)
1393 r"""get_mean(Histogram6D self) -> Vector6D"""
1394 return _IMP_statistics.Histogram6D_get_mean(self)
1396 def get_dimension(self):
1397 r"""get_dimension(Histogram6D self) -> unsigned int"""
1398 return _IMP_statistics.Histogram6D_get_dimension(self)
1400 def get_standard_deviation(self, mean):
1401 r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1402 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1404 def get_bounding_box(self):
1405 r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1406 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1408 def get_minimum_and_maximum(self):
1409 r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1410 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1412 def show(self, *args):
1413 r"""show(Histogram6D self, _ostream out=std::cout)"""
1414 return _IMP_statistics.Histogram6D_show(self, *args)
1417 r"""__str__(Histogram6D self) -> std::string"""
1418 return _IMP_statistics.Histogram6D___str__(self)
1421 r"""__repr__(Histogram6D self) -> std::string"""
1422 return _IMP_statistics.Histogram6D___repr__(self)
1424 def __cmp__(self, arg2):
1425 r"""__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1426 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1428 def __eq__(self, arg2):
1429 r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1430 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1431 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1434 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1435 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1436 r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1438 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1440 def __init__(self, *args):
1442 __init__(HistogramKD self) -> HistogramKD
1443 __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1445 _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1447 def add(self, x, weight=1):
1448 r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1449 return _IMP_statistics.HistogramKD_add(self, x, weight)
1451 def get_total_count(self):
1452 r"""get_total_count(HistogramKD self) -> double"""
1453 return _IMP_statistics.HistogramKD_get_total_count(self)
1455 def get_frequencies(self):
1456 r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1457 return _IMP_statistics.HistogramKD_get_frequencies(self)
1459 def get_probability_distribution_function(self):
1460 r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1461 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1463 def get_counts(self):
1464 r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1465 return _IMP_statistics.HistogramKD_get_counts(self)
1468 r"""get_mean(HistogramKD self) -> VectorKD"""
1469 return _IMP_statistics.HistogramKD_get_mean(self)
1471 def get_dimension(self):
1472 r"""get_dimension(HistogramKD self) -> unsigned int"""
1473 return _IMP_statistics.HistogramKD_get_dimension(self)
1475 def get_standard_deviation(self, mean):
1476 r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1477 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1479 def get_bounding_box(self):
1480 r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1481 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1483 def get_minimum_and_maximum(self):
1484 r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1485 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1487 def show(self, *args):
1488 r"""show(HistogramKD self, _ostream out=std::cout)"""
1489 return _IMP_statistics.HistogramKD_show(self, *args)
1492 r"""__str__(HistogramKD self) -> std::string"""
1493 return _IMP_statistics.HistogramKD___str__(self)
1496 r"""__repr__(HistogramKD self) -> std::string"""
1497 return _IMP_statistics.HistogramKD___repr__(self)
1499 def __cmp__(self, arg2):
1500 r"""__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1501 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1503 def __eq__(self, arg2):
1504 r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1505 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1506 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1509 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1510 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1511 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1513 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1514 __repr__ = _swig_repr
1516 def __setitem__(self, *args):
1518 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1519 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1521 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1523 def __getitem__(self, *args):
1525 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1526 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1528 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1530 def __init__(self, *args):
1532 __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1533 __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1534 __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1536 _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1540 r"""get_is_dense() -> bool"""
1541 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1543 def show(self, *args):
1544 r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1545 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1547 def add_voxel(self, arg2, arg3):
1548 r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1549 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1551 def get_all_voxels(self):
1552 r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1553 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1554 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1557 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1558 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1559 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1561 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1562 __repr__ = _swig_repr
1564 def __setitem__(self, *args):
1566 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1567 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1569 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1571 def __getitem__(self, *args):
1573 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1574 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1576 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1578 def __init__(self, *args):
1580 __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1581 __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1582 __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1584 _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1588 r"""get_is_dense() -> bool"""
1589 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1591 def show(self, *args):
1592 r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1593 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1595 def add_voxel(self, arg2, arg3):
1596 r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1597 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1599 def get_all_voxels(self):
1600 r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1601 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1602 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1605 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1606 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
1607 r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1609 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1610 __repr__ = _swig_repr
1612 def __init__(self, *args):
1614 __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1615 __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1616 __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1617 __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1618 __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1619 __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1620 __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1622 _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1624 def show(self, *args):
1625 r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1626 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1628 def __getitem__(self, *args):
1630 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1631 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1633 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1635 def __setitem__(self, *args):
1637 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1638 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1640 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1642 def add_voxel(self, pt, vt):
1643 r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1644 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1646 def get_extended_index(self, index):
1647 r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1648 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1650 def get_bounding_box(self, *args):
1652 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1653 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1654 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1656 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1658 def set_bounding_box(self, bb3):
1659 r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1660 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1662 def get_nearest_index(self, pt):
1663 r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1664 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1666 def get_nearest_extended_index(self, pt):
1667 r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1668 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1669 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1672 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1673 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1674 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1676 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1677 __repr__ = _swig_repr
1679 def __setitem__(self, *args):
1681 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1682 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1684 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1686 def __getitem__(self, *args):
1688 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1689 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1691 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1693 def __init__(self, *args):
1695 __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1696 __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1697 __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1699 _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1703 r"""get_is_dense() -> bool"""
1704 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1706 def show(self, *args):
1707 r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1708 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1710 def add_voxel(self, arg2, arg3):
1711 r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1712 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1714 def get_all_voxels(self):
1715 r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1716 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1717 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1720 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1721 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1722 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1724 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1725 __repr__ = _swig_repr
1727 def __setitem__(self, *args):
1729 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1730 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1732 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1734 def __getitem__(self, *args):
1736 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1737 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1739 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1741 def __init__(self, *args):
1743 __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1744 __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1745 __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1747 _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1751 r"""get_is_dense() -> bool"""
1752 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1754 def show(self, *args):
1755 r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1756 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1758 def add_voxel(self, arg2, arg3):
1759 r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1760 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1762 def get_all_voxels(self):
1763 r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1764 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1765 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1768 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1769 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
1770 r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1772 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1773 __repr__ = _swig_repr
1775 def __init__(self, *args):
1777 __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1778 __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1779 __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1780 __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1781 __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1782 __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1783 __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1785 _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1787 def show(self, *args):
1788 r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1789 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1791 def __getitem__(self, *args):
1793 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1794 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1796 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1798 def __setitem__(self, *args):
1800 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1801 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1803 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1805 def add_voxel(self, pt, vt):
1806 r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1807 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1809 def get_extended_index(self, index):
1810 r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1811 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1813 def get_bounding_box(self, *args):
1815 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1816 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1817 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1819 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1821 def set_bounding_box(self, bb3):
1822 r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1823 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1825 def get_nearest_index(self, pt):
1826 r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1827 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1829 def get_nearest_extended_index(self, pt):
1830 r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1831 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1832 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1835 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1836 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1837 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1839 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1840 __repr__ = _swig_repr
1842 def __setitem__(self, *args):
1844 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1845 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1847 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1849 def __getitem__(self, *args):
1851 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1852 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1854 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1856 def __init__(self, *args):
1858 __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1859 __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1860 __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1862 _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1866 r"""get_is_dense() -> bool"""
1867 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1869 def show(self, *args):
1870 r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1871 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1873 def add_voxel(self, arg2, arg3):
1874 r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1875 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1877 def get_all_voxels(self):
1878 r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1879 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1880 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1883 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1884 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1885 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1887 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1888 __repr__ = _swig_repr
1890 def __setitem__(self, *args):
1892 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1893 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1895 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1897 def __getitem__(self, *args):
1899 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1900 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1902 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1904 def __init__(self, *args):
1906 __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1907 __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1908 __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1910 _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1914 r"""get_is_dense() -> bool"""
1915 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1917 def show(self, *args):
1918 r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1919 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1921 def add_voxel(self, arg2, arg3):
1922 r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1923 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1925 def get_all_voxels(self):
1926 r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1927 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1928 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1931 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1932 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
1933 r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1935 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1936 __repr__ = _swig_repr
1938 def __init__(self, *args):
1940 __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1941 __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1942 __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1943 __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1944 __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1945 __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1946 __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1948 _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1950 def show(self, *args):
1951 r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1952 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1954 def __getitem__(self, *args):
1956 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1957 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1959 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1961 def __setitem__(self, *args):
1963 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1964 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1966 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1968 def add_voxel(self, pt, vt):
1969 r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1970 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1972 def get_extended_index(self, index):
1973 r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1974 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1976 def get_bounding_box(self, *args):
1978 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1979 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1980 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1982 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1984 def set_bounding_box(self, bb3):
1985 r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1986 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1988 def get_nearest_index(self, pt):
1989 r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1990 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1992 def get_nearest_extended_index(self, pt):
1993 r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1994 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1995 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1998 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1999 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2000 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
2002 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2003 __repr__ = _swig_repr
2005 def __setitem__(self, *args):
2007 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2008 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2010 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2012 def __getitem__(self, *args):
2014 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2015 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2017 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2019 def __init__(self, *args):
2021 __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2022 __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
2023 __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
2025 _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
2029 r"""get_is_dense() -> bool"""
2030 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2032 def show(self, *args):
2033 r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
2034 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2036 def add_voxel(self, arg2, arg3):
2037 r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2038 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2040 def get_all_voxels(self):
2041 r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2042 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2043 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2046 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2047 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2048 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
2050 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2051 __repr__ = _swig_repr
2053 def __setitem__(self, *args):
2055 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2056 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2058 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2060 def __getitem__(self, *args):
2062 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2063 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2065 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2067 def __init__(self, *args):
2069 __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2070 __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2071 __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2073 _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2077 r"""get_is_dense() -> bool"""
2078 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2080 def show(self, *args):
2081 r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2082 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2084 def add_voxel(self, arg2, arg3):
2085 r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2086 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2088 def get_all_voxels(self):
2089 r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2090 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2091 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2094 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2095 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2096 r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2098 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2099 __repr__ = _swig_repr
2101 def __init__(self, *args):
2103 __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2104 __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2105 __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2106 __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2107 __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2108 __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2109 __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2111 _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2113 def show(self, *args):
2114 r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2115 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2117 def __getitem__(self, *args):
2119 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2120 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2122 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2124 def __setitem__(self, *args):
2126 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2127 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2129 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2131 def add_voxel(self, pt, vt):
2132 r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2133 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2135 def get_extended_index(self, index):
2136 r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2137 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2139 def get_bounding_box(self, *args):
2141 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2142 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2143 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2145 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2147 def set_bounding_box(self, bb3):
2148 r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2149 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2151 def get_nearest_index(self, pt):
2152 r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2153 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2155 def get_nearest_extended_index(self, pt):
2156 r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2157 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2158 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2161 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2162 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2163 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2165 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2166 __repr__ = _swig_repr
2168 def __setitem__(self, *args):
2170 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2171 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2173 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2175 def __getitem__(self, *args):
2177 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2178 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2180 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2182 def __init__(self, *args):
2184 __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2185 __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2186 __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2188 _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2192 r"""get_is_dense() -> bool"""
2193 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2195 def show(self, *args):
2196 r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2197 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2199 def add_voxel(self, arg2, arg3):
2200 r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2201 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2203 def get_all_voxels(self):
2204 r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2205 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2206 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2209 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2210 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2211 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2214 __repr__ = _swig_repr
2216 def __setitem__(self, *args):
2218 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2219 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2221 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2223 def __getitem__(self, *args):
2225 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2226 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2228 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2230 def __init__(self, *args):
2232 __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2233 __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2234 __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2236 _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2240 r"""get_is_dense() -> bool"""
2241 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2243 def show(self, *args):
2244 r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2245 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2247 def add_voxel(self, arg2, arg3):
2248 r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2249 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2251 def get_all_voxels(self):
2252 r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2253 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2254 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2257 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2258 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2259 r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2261 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2262 __repr__ = _swig_repr
2264 def __init__(self, *args):
2266 __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2267 __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2268 __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2269 __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2270 __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2271 __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2272 __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2274 _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2276 def show(self, *args):
2277 r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2278 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2280 def __getitem__(self, *args):
2282 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2283 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2285 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2287 def __setitem__(self, *args):
2289 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2290 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2292 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2294 def add_voxel(self, pt, vt):
2295 r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2296 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2298 def get_extended_index(self, index):
2299 r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2300 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2302 def get_bounding_box(self, *args):
2304 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2305 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2306 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2308 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2310 def set_bounding_box(self, bb3):
2311 r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2312 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2314 def get_nearest_index(self, pt):
2315 r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2316 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2318 def get_nearest_extended_index(self, pt):
2319 r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2320 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2321 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2324 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2325 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2326 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2328 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2329 __repr__ = _swig_repr
2331 def __setitem__(self, *args):
2333 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2334 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2336 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2338 def __getitem__(self, *args):
2340 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2341 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2343 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2345 def __init__(self, *args):
2347 __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2348 __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2349 __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2351 _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2355 r"""get_is_dense() -> bool"""
2356 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2358 def show(self, *args):
2359 r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2360 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2362 def add_voxel(self, arg2, arg3):
2363 r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2364 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2366 def get_all_voxels(self):
2367 r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2368 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2369 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2372 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2373 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2374 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2376 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2377 __repr__ = _swig_repr
2379 def __setitem__(self, *args):
2381 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2382 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2384 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2386 def __getitem__(self, *args):
2388 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2389 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2391 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2393 def __init__(self, *args):
2395 __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2396 __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2397 __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2399 _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2403 r"""get_is_dense() -> bool"""
2404 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2406 def show(self, *args):
2407 r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2408 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2410 def add_voxel(self, arg2, arg3):
2411 r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2412 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2414 def get_all_voxels(self):
2415 r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2416 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2417 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2420 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2421 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
2422 r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2424 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2425 __repr__ = _swig_repr
2427 def __init__(self, *args):
2429 __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2430 __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2431 __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2432 __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2433 __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2434 __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2435 __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2437 _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2439 def show(self, *args):
2440 r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2441 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2443 def __getitem__(self, *args):
2445 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2446 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2448 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2450 def __setitem__(self, *args):
2452 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2453 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2455 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2457 def add_voxel(self, pt, vt):
2458 r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2459 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2461 def get_extended_index(self, index):
2462 r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2463 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2465 def get_bounding_box(self, *args):
2467 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2468 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2469 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2471 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2473 def set_bounding_box(self, bb3):
2474 r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2475 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2477 def get_nearest_index(self, pt):
2478 r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2479 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2481 def get_nearest_extended_index(self, pt):
2482 r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2483 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2484 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2487 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2488 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2489 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2491 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2492 __repr__ = _swig_repr
2494 def __setitem__(self, *args):
2496 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2497 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2499 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2501 def __getitem__(self, *args):
2503 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2504 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2506 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2508 def __init__(self, *args):
2510 __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2511 __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2512 __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2514 _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2518 r"""get_is_dense() -> bool"""
2519 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2521 def show(self, *args):
2522 r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2523 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2525 def add_voxel(self, arg2, arg3):
2526 r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2527 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2529 def get_all_voxels(self):
2530 r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2531 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2532 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2535 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2536 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2537 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2539 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2540 __repr__ = _swig_repr
2542 def __setitem__(self, *args):
2544 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2545 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2547 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2549 def __getitem__(self, *args):
2551 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2552 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2554 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2556 def __init__(self, *args):
2558 __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2559 __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2560 __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2562 _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2566 r"""get_is_dense() -> bool"""
2567 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2569 def show(self, *args):
2570 r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2571 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2573 def add_voxel(self, arg2, arg3):
2574 r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2575 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2577 def get_all_voxels(self):
2578 r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2579 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2580 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2583 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2584 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
2585 r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2587 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2588 __repr__ = _swig_repr
2590 def __init__(self, *args):
2592 __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2593 __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2594 __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2595 __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2596 __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2597 __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2598 __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2600 _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2602 def show(self, *args):
2603 r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2604 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2606 def __getitem__(self, *args):
2608 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2609 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2611 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2613 def __setitem__(self, *args):
2615 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2616 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2618 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2620 def add_voxel(self, pt, vt):
2621 r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2622 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2624 def get_extended_index(self, index):
2625 r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2626 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2628 def get_bounding_box(self, *args):
2630 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2631 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2632 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2634 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2636 def set_bounding_box(self, bb3):
2637 r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2638 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2640 def get_nearest_index(self, pt):
2641 r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2642 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2644 def get_nearest_extended_index(self, pt):
2645 r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2646 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2647 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2650 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2652 from .
import _histogram
2653 show_histogram= _histogram.show_histogram
2657 r"""get_module_version() -> std::string const"""
2658 return _IMP_statistics.get_module_version()
2661 r"""get_example_path(std::string fname) -> std::string"""
2662 return _IMP_statistics.get_example_path(fname)
2665 r"""get_data_path(std::string fname) -> std::string"""
2666 return _IMP_statistics.get_data_path(fname)
2668 from .
import _version_check
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
def get_data_path
Return the full path to one of this module's data files.
def get_module_version
Return the version of this module, as a string.
def get_example_path
Return the full path to one of this module's example files.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
double get_quantile(const Histogram1D &h, double fraction)
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
Version and module information for Objects.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Ints get_representatives(Embedding *d, PartitionalClustering *pc)