15 import _IMP_statistics
17 import builtins
as __builtin__
21 strthis =
"proxy of " + self.this.__repr__()
22 except __builtin__.Exception:
24 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
27 def _swig_setattr_nondynamic_instance_variable(set):
28 def set_instance_attr(self, name, value):
30 set(self, name, value)
31 elif name ==
"thisown":
33 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
34 set(self, name, value)
36 raise AttributeError(
"You cannot add instance attributes to %s" % self)
37 return set_instance_attr
40 def _swig_setattr_nondynamic_class_variable(set):
41 def set_class_attr(cls, name, value):
42 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
45 raise AttributeError(
"You cannot add class attributes to %s" % cls)
49 class _SwigNonDynamicMeta(type):
50 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
51 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
56 class IMP_STATISTICS_SwigPyIterator(object):
57 r"""Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class."""
59 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
61 def __init__(self, *args, **kwargs):
62 raise AttributeError(
"No constructor defined - class is abstract")
64 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
67 r"""value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
68 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
71 r"""incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
72 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
75 r"""decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator"""
76 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
78 def distance(self, x):
79 r"""distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
80 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
83 r"""equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
84 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
87 r"""copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
88 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
91 r"""__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
92 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
95 r"""previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
96 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
99 r"""advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
100 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
103 r"""__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
104 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
107 r"""__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
108 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
110 def __iadd__(self, n):
111 r"""__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
112 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
114 def __isub__(self, n):
115 r"""__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
116 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
118 def __add__(self, n):
119 r"""__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
120 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
122 def __sub__(self, *args):
124 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
125 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
127 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
132 _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
139 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
141 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
143 IMP_SILENT = _IMP_statistics.IMP_SILENT
145 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
147 IMP_TERSE = _IMP_statistics.IMP_TERSE
149 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
151 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
153 IMP_NONE = _IMP_statistics.IMP_NONE
155 IMP_USAGE = _IMP_statistics.IMP_USAGE
157 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
159 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
161 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_statistics.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
163 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
165 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
167 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
169 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
171 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
173 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_SYSTEM
175 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
177 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
179 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
181 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
185 class _DirectorObjects:
186 """@internal Simple class to keep references to director objects
187 to prevent premature deletion."""
190 def register(self, obj):
191 """Take a reference to a director object; will only work for
192 refcounted C++ classes"""
193 if hasattr(obj,
'get_ref_count'):
194 self._objects.append(obj)
196 """Only drop our reference and allow cleanup by Python if no other
197 Python references exist (we hold 3 references: one in self._objects,
198 one in x, and one in the argument list for getrefcount) *and* no
199 other C++ references exist (the Python object always holds one)"""
200 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
201 or x.get_ref_count() > 1]
205 def get_object_count(self):
206 """Get number of director objects (useful for testing only)"""
207 return len(self._objects)
208 _director_objects = _DirectorObjects()
210 class _ostream(object):
211 r"""Proxy of C++ std::ostream class."""
213 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
215 def __init__(self, *args, **kwargs):
216 raise AttributeError(
"No constructor defined")
217 __repr__ = _swig_repr
219 def write(self, osa_buf):
220 r"""write(_ostream self, char const * osa_buf)"""
221 return _IMP_statistics._ostream_write(self, osa_buf)
224 _IMP_statistics._ostream_swigregister(_ostream)
225 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
228 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
230 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
232 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
234 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
236 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
239 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
241 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
243 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
245 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
247 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
249 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
251 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
253 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
256 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
258 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
260 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
262 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
264 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
266 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
268 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
272 _plural_types.append(
"Histogram1Ds")
273 _value_types.append(
"Histogram1D")
277 _plural_types.append(
"Histogram2Ds")
278 _value_types.append(
"Histogram2D")
282 _plural_types.append(
"Histogram3Ds")
283 _value_types.append(
"Histogram3D")
287 _plural_types.append(
"Histogram4Ds")
288 _value_types.append(
"Histogram4D")
292 _plural_types.append(
"Histogram5Ds")
293 _value_types.append(
"Histogram5D")
297 _plural_types.append(
"Histogram6Ds")
298 _value_types.append(
"Histogram6D")
302 _plural_types.append(
"Histogram1Ds")
303 _value_types.append(
"HistogramD<1>")
307 _plural_types.append(
"Histogram2Ds")
308 _value_types.append(
"HistogramD<2>")
312 _plural_types.append(
"Histogram3Ds")
313 _value_types.append(
"HistogramD<3>")
317 _plural_types.append(
"Histogram4Ds")
318 _value_types.append(
"HistogramD<4>")
322 _plural_types.append(
"Histogram5Ds")
323 _value_types.append(
"HistogramD<5>")
327 _plural_types.append(
"Histogram6Ds")
328 _value_types.append(
"HistogramD<6>")
332 _plural_types.append(
"HistogramKDs")
333 _value_types.append(
"HistogramKD")
337 _plural_types.append(
"HistogramKDs")
338 _value_types.append(
"HistogramD<-1>")
341 _object_types.append(
"PartitionalClustering")
344 def _object_cast_to_PartitionalClustering(o):
345 r"""_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
346 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
348 _object_types.append(
"PartitionalClusteringWithCenter")
351 def _object_cast_to_PartitionalClusteringWithCenter(o):
352 r"""_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
353 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
355 _object_types.append(
"Embedding")
358 def _object_cast_to_Embedding(o):
359 r"""_object_cast_to_Embedding(Object o) -> Embedding"""
360 return _IMP_statistics._object_cast_to_Embedding(o)
362 _object_types.append(
"ConfigurationSetXYZEmbedding")
365 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
366 r"""_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
367 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
369 _object_types.append(
"VectorDEmbedding")
372 def _object_cast_to_VectorDEmbedding(o):
373 r"""_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
374 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
376 _object_types.append(
"ParticleEmbedding")
379 def _object_cast_to_ParticleEmbedding(o):
380 r"""_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
381 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
383 _object_types.append(
"Metric")
386 def _object_cast_to_Metric(o):
387 r"""_object_cast_to_Metric(Object o) -> Metric"""
388 return _IMP_statistics._object_cast_to_Metric(o)
390 _object_types.append(
"EuclideanMetric")
393 def _object_cast_to_EuclideanMetric(o):
394 r"""_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
395 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
397 _object_types.append(
"ConfigurationSetRMSDMetric")
400 def _object_cast_to_ConfigurationSetRMSDMetric(o):
401 r"""_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
402 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
404 _object_types.append(
"RecursivePartitionalClusteringMetric")
407 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
408 r"""_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
409 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
411 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
414 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
415 r"""_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
416 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
418 _object_types.append(
"ChiSquareMetric")
421 def _object_cast_to_ChiSquareMetric(o):
422 r"""_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
423 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
425 r"""Proxy of C++ IMP::statistics::PartitionalClustering class."""
427 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
429 def __init__(self, *args, **kwargs):
430 raise AttributeError(
"No constructor defined - class is abstract")
432 def get_number_of_clusters(self):
433 r"""get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
434 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
436 def get_cluster(self, cluster_index):
437 r"""get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
438 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
440 def get_cluster_representative(self, cluster_index):
441 r"""get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
442 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
443 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
446 r"""__str__(PartitionalClustering self) -> std::string"""
447 return _IMP_statistics.PartitionalClustering___str__(self)
450 r"""__repr__(PartitionalClustering self) -> std::string"""
451 return _IMP_statistics.PartitionalClustering___repr__(self)
455 return _object_cast_to_PartitionalClustering(o)
459 _IMP_statistics.PartitionalClustering_swigregister(PartitionalClustering)
462 r"""validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
463 return _IMP_statistics.validate_partitional_clustering(pc, n)
465 r"""Proxy of C++ IMP::statistics::Embedding class."""
467 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
469 def __init__(self, name):
470 r"""__init__(Embedding self, std::string name) -> Embedding"""
471 if self.__class__ == Embedding:
475 _IMP_statistics.Embedding_swiginit(self, _IMP_statistics.new_Embedding(_self, name))
477 if self.__class__ != Embedding:
478 _director_objects.register(self)
483 def do_get_weight(self, i):
484 r"""do_get_weight(Embedding self, unsigned int i) -> double"""
485 return _IMP_statistics.Embedding_do_get_weight(self, i)
487 def get_point(self, i):
488 r"""get_point(Embedding self, unsigned int i) -> VectorKD"""
489 return _IMP_statistics.Embedding_get_point(self, i)
491 def get_number_of_items(self):
492 r"""get_number_of_items(Embedding self) -> unsigned int"""
493 return _IMP_statistics.Embedding_get_number_of_items(self)
495 def get_weight(self, i):
496 r"""get_weight(Embedding self, unsigned int i) -> double"""
497 return _IMP_statistics.Embedding_get_weight(self, i)
499 def get_points(self):
500 r"""get_points(Embedding self) -> IMP::algebra::VectorKDs"""
501 return _IMP_statistics.Embedding_get_points(self)
504 r"""__str__(Embedding self) -> std::string"""
505 return _IMP_statistics.Embedding___str__(self)
508 r"""__repr__(Embedding self) -> std::string"""
509 return _IMP_statistics.Embedding___repr__(self)
513 return _object_cast_to_Embedding(o)
516 def do_show(self, out):
521 return _object_cast_to_Embedding(o)
523 __swig_destroy__ = _IMP_statistics.delete_Embedding
524 def __disown__(self):
526 _IMP_statistics.disown_Embedding(self)
527 return weakref.proxy(self)
529 def do_destroy(self):
530 r"""do_destroy(Embedding self)"""
531 return _IMP_statistics.Embedding_do_destroy(self)
534 _IMP_statistics.Embedding_swigregister(Embedding)
536 r"""Proxy of C++ IMP::statistics::Metric class."""
538 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
540 def __init__(self, name):
541 r"""__init__(Metric self, std::string name) -> Metric"""
542 if self.__class__ == Metric:
546 _IMP_statistics.Metric_swiginit(self, _IMP_statistics.new_Metric(_self, name))
548 if self.__class__ != Metric:
549 _director_objects.register(self)
554 def do_get_weight(self, i):
555 r"""do_get_weight(Metric self, unsigned int i) -> double"""
556 return _IMP_statistics.Metric_do_get_weight(self, i)
559 r"""get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
560 return _IMP_statistics.Metric_get_distance(self, i, j)
562 def get_weight(self, i):
563 r"""get_weight(Metric self, unsigned int i) -> double"""
564 return _IMP_statistics.Metric_get_weight(self, i)
566 def get_number_of_items(self):
567 r"""get_number_of_items(Metric self) -> unsigned int"""
568 return _IMP_statistics.Metric_get_number_of_items(self)
569 __swig_destroy__ = _IMP_statistics.delete_Metric
572 r"""__str__(Metric self) -> std::string"""
573 return _IMP_statistics.Metric___str__(self)
576 r"""__repr__(Metric self) -> std::string"""
577 return _IMP_statistics.Metric___repr__(self)
581 return _object_cast_to_Metric(o)
584 def do_show(self, out):
589 return _object_cast_to_Metric(o)
591 def __disown__(self):
593 _IMP_statistics.disown_Metric(self)
594 return weakref.proxy(self)
596 def do_destroy(self):
597 r"""do_destroy(Metric self)"""
598 return _IMP_statistics.Metric_do_destroy(self)
601 _IMP_statistics.Metric_swigregister(Metric)
602 class ChiSquareMetric(Metric):
603 r"""Proxy of C++ IMP::statistics::ChiSquareMetric class."""
605 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
607 def __init__(self, data_exp, constr_type=0):
608 r"""__init__(ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric"""
609 _IMP_statistics.ChiSquareMetric_swiginit(self, _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type))
611 def add_configuration(self, data, stddev, weight=1.0):
612 r"""add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)"""
613 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
615 def get_data(self, i):
616 r"""get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
617 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
619 def get_standard_deviation(self, i):
620 r"""get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
621 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
623 def do_get_weight(self, i):
624 r"""do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
625 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
627 def get_chi_square_experimental(self, i):
628 r"""get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
629 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
631 def get_version_info(self):
632 r"""get_version_info(ChiSquareMetric self) -> VersionInfo"""
633 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
634 __swig_destroy__ = _IMP_statistics.delete_ChiSquareMetric
637 r"""__str__(ChiSquareMetric self) -> std::string"""
638 return _IMP_statistics.ChiSquareMetric___str__(self)
641 r"""__repr__(ChiSquareMetric self) -> std::string"""
642 return _IMP_statistics.ChiSquareMetric___repr__(self)
646 return _object_cast_to_ChiSquareMetric(o)
650 _IMP_statistics.ChiSquareMetric_swigregister(ChiSquareMetric)
651 class PartitionalClusteringWithCenter(PartitionalClustering):
652 r"""Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
654 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
656 def __init__(self, *args, **kwargs):
657 raise AttributeError(
"No constructor defined")
659 def get_cluster_center(self, i):
660 r"""get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
661 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
663 def get_version_info(self):
664 r"""get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
665 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
666 __swig_destroy__ = _IMP_statistics.delete_PartitionalClusteringWithCenter
669 r"""__str__(PartitionalClusteringWithCenter self) -> std::string"""
670 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
673 r"""__repr__(PartitionalClusteringWithCenter self) -> std::string"""
674 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
678 return _object_cast_to_PartitionalClusteringWithCenter(o)
682 _IMP_statistics.PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
683 class ConfigurationSetXYZEmbedding(Embedding):
684 r"""Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
686 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
688 def __init__(self, cs, pi, align=False):
689 r"""__init__(ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding"""
690 _IMP_statistics.ConfigurationSetXYZEmbedding_swiginit(self, _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align))
692 def get_version_info(self):
693 r"""get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
694 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
695 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetXYZEmbedding
698 r"""__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
699 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
702 r"""__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
703 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
707 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
711 _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
712 class ParticleEmbedding(Embedding):
713 r"""Proxy of C++ IMP::statistics::ParticleEmbedding class."""
715 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
717 def __init__(self, *args):
718 r"""__init__(ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks=IMP::FloatKeys( IMP::internal:: xyzr_keys, IMP::internal:: xyzr_keys + 3), bool rescale=False) -> ParticleEmbedding"""
719 _IMP_statistics.ParticleEmbedding_swiginit(self, _IMP_statistics.new_ParticleEmbedding(*args))
721 def get_version_info(self):
722 r"""get_version_info(ParticleEmbedding self) -> VersionInfo"""
723 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
724 __swig_destroy__ = _IMP_statistics.delete_ParticleEmbedding
727 r"""__str__(ParticleEmbedding self) -> std::string"""
728 return _IMP_statistics.ParticleEmbedding___str__(self)
731 r"""__repr__(ParticleEmbedding self) -> std::string"""
732 return _IMP_statistics.ParticleEmbedding___repr__(self)
736 return _object_cast_to_ParticleEmbedding(o)
740 _IMP_statistics.ParticleEmbedding_swigregister(ParticleEmbedding)
741 class VectorDEmbedding(Embedding):
742 r"""Proxy of C++ IMP::statistics::VectorDEmbedding class."""
744 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
746 def __init__(self, *args):
748 __init__(VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
749 __init__(VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
750 __init__(VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
751 __init__(VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
752 __init__(VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
753 __init__(VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
755 _IMP_statistics.VectorDEmbedding_swiginit(self, _IMP_statistics.new_VectorDEmbedding(*args))
757 def get_version_info(self):
758 r"""get_version_info(VectorDEmbedding self) -> VersionInfo"""
759 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
760 __swig_destroy__ = _IMP_statistics.delete_VectorDEmbedding
763 r"""__str__(VectorDEmbedding self) -> std::string"""
764 return _IMP_statistics.VectorDEmbedding___str__(self)
767 r"""__repr__(VectorDEmbedding self) -> std::string"""
768 return _IMP_statistics.VectorDEmbedding___repr__(self)
772 return _object_cast_to_VectorDEmbedding(o)
776 _IMP_statistics.VectorDEmbedding_swigregister(VectorDEmbedding)
777 class EuclideanMetric(Metric):
778 r"""Proxy of C++ IMP::statistics::EuclideanMetric class."""
780 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
782 def __init__(self, em):
783 r"""__init__(EuclideanMetric self, Embedding em) -> EuclideanMetric"""
784 _IMP_statistics.EuclideanMetric_swiginit(self, _IMP_statistics.new_EuclideanMetric(em))
786 def get_version_info(self):
787 r"""get_version_info(EuclideanMetric self) -> VersionInfo"""
788 return _IMP_statistics.EuclideanMetric_get_version_info(self)
789 __swig_destroy__ = _IMP_statistics.delete_EuclideanMetric
792 r"""__str__(EuclideanMetric self) -> std::string"""
793 return _IMP_statistics.EuclideanMetric___str__(self)
796 r"""__repr__(EuclideanMetric self) -> std::string"""
797 return _IMP_statistics.EuclideanMetric___repr__(self)
801 return _object_cast_to_EuclideanMetric(o)
805 _IMP_statistics.EuclideanMetric_swigregister(EuclideanMetric)
806 class ConfigurationSetRMSDMetric(Metric):
807 r"""Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
809 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
811 def __init__(self, cs, sc, align=False):
812 r"""__init__(ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric"""
813 _IMP_statistics.ConfigurationSetRMSDMetric_swiginit(self, _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align))
815 def get_version_info(self):
816 r"""get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
817 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
818 __swig_destroy__ = _IMP_statistics.delete_ConfigurationSetRMSDMetric
821 r"""__str__(ConfigurationSetRMSDMetric self) -> std::string"""
822 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
825 r"""__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
826 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
830 return _object_cast_to_ConfigurationSetRMSDMetric(o)
834 _IMP_statistics.ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
837 r"""create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
838 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
841 r"""create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
842 return _IMP_statistics.create_bin_based_clustering(embed, side)
846 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
847 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
849 return _IMP_statistics.create_centrality_clustering(*args)
852 r"""create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
853 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
857 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
858 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
860 return _IMP_statistics.create_connectivity_clustering(*args)
862 def create_gromos_clustering(d, cutoff):
863 r"""create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
864 return _IMP_statistics.create_gromos_clustering(d, cutoff)
867 r"""get_quantile(Histogram1D h, double fraction) -> double"""
868 return _IMP_statistics.get_quantile(h, fraction)
871 r"""get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
872 return _IMP_statistics.get_centroids(d, pc)
875 r"""get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
876 return _IMP_statistics.get_representatives(d, pc)
877 class RecursivePartitionalClusteringEmbedding(Embedding):
878 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
880 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
882 def __init__(self, metric, clustering):
883 r"""__init__(RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
884 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering))
886 def create_full_clustering(self, center_cluster):
887 r"""create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
888 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
890 def get_version_info(self):
891 r"""get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
892 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
893 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringEmbedding
896 r"""__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
897 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
900 r"""__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
901 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
905 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
909 _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
910 class RecursivePartitionalClusteringMetric(Metric):
911 r"""Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
913 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
915 def __init__(self, metric, clustering):
916 r"""__init__(RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
917 _IMP_statistics.RecursivePartitionalClusteringMetric_swiginit(self, _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering))
919 def create_full_clustering(self, center_cluster):
920 r"""create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
921 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
923 def get_version_info(self):
924 r"""get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
925 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
926 __swig_destroy__ = _IMP_statistics.delete_RecursivePartitionalClusteringMetric
929 r"""__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
930 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
933 r"""__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
934 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
938 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
942 _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
943 class Histogram1D(IMP._GeometricPrimitive1D):
944 r"""Proxy of C++ IMP::statistics::HistogramD< 1 > class."""
946 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
948 def __init__(self, *args):
950 __init__(Histogram1D self) -> Histogram1D
951 __init__(Histogram1D self, double voxel_size, BoundingBox1D bb) -> Histogram1D
953 _IMP_statistics.Histogram1D_swiginit(self, _IMP_statistics.new_Histogram1D(*args))
955 def add(self, x, weight=1):
956 r"""add(Histogram1D self, Vector1D x, double weight=1)"""
957 return _IMP_statistics.Histogram1D_add(self, x, weight)
959 def get_total_count(self):
960 r"""get_total_count(Histogram1D self) -> double"""
961 return _IMP_statistics.Histogram1D_get_total_count(self)
963 def get_frequencies(self):
964 r"""get_frequencies(Histogram1D self) -> Histogram1D"""
965 return _IMP_statistics.Histogram1D_get_frequencies(self)
967 def get_probability_distribution_function(self):
968 r"""get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
969 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
971 def get_counts(self):
972 r"""get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
973 return _IMP_statistics.Histogram1D_get_counts(self)
976 r"""get_mean(Histogram1D self) -> Vector1D"""
977 return _IMP_statistics.Histogram1D_get_mean(self)
979 def get_dimension(self):
980 r"""get_dimension(Histogram1D self) -> unsigned int"""
981 return _IMP_statistics.Histogram1D_get_dimension(self)
983 def get_standard_deviation(self, mean):
984 r"""get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
985 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
987 def get_bounding_box(self):
988 r"""get_bounding_box(Histogram1D self) -> BoundingBox1D"""
989 return _IMP_statistics.Histogram1D_get_bounding_box(self)
991 def get_minimum_and_maximum(self):
992 r"""get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
993 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
995 def show(self, *args):
996 r"""show(Histogram1D self, _ostream out=std::cout)"""
997 return _IMP_statistics.Histogram1D_show(self, *args)
1000 r"""__str__(Histogram1D self) -> std::string"""
1001 return _IMP_statistics.Histogram1D___str__(self)
1004 r"""__repr__(Histogram1D self) -> std::string"""
1005 return _IMP_statistics.Histogram1D___repr__(self)
1007 def __cmp__(self, arg2):
1008 r"""__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1009 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1011 def __eq__(self, arg2):
1012 r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1013 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1014 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1017 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1018 class Histogram2D(IMP._GeometricPrimitive2D):
1019 r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1021 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1023 def __init__(self, *args):
1025 __init__(Histogram2D self) -> Histogram2D
1026 __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1028 _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1030 def add(self, x, weight=1):
1031 r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1032 return _IMP_statistics.Histogram2D_add(self, x, weight)
1034 def get_total_count(self):
1035 r"""get_total_count(Histogram2D self) -> double"""
1036 return _IMP_statistics.Histogram2D_get_total_count(self)
1038 def get_frequencies(self):
1039 r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1040 return _IMP_statistics.Histogram2D_get_frequencies(self)
1042 def get_probability_distribution_function(self):
1043 r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1044 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1046 def get_counts(self):
1047 r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1048 return _IMP_statistics.Histogram2D_get_counts(self)
1051 r"""get_mean(Histogram2D self) -> Vector2D"""
1052 return _IMP_statistics.Histogram2D_get_mean(self)
1054 def get_dimension(self):
1055 r"""get_dimension(Histogram2D self) -> unsigned int"""
1056 return _IMP_statistics.Histogram2D_get_dimension(self)
1058 def get_standard_deviation(self, mean):
1059 r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1060 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1062 def get_bounding_box(self):
1063 r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1064 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1066 def get_minimum_and_maximum(self):
1067 r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1068 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1070 def show(self, *args):
1071 r"""show(Histogram2D self, _ostream out=std::cout)"""
1072 return _IMP_statistics.Histogram2D_show(self, *args)
1075 r"""__str__(Histogram2D self) -> std::string"""
1076 return _IMP_statistics.Histogram2D___str__(self)
1079 r"""__repr__(Histogram2D self) -> std::string"""
1080 return _IMP_statistics.Histogram2D___repr__(self)
1082 def __cmp__(self, arg2):
1083 r"""__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1084 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1086 def __eq__(self, arg2):
1087 r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1088 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1089 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1092 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1093 class Histogram3D(IMP._GeometricPrimitive3D):
1094 r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1096 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1098 def __init__(self, *args):
1100 __init__(Histogram3D self) -> Histogram3D
1101 __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1103 _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1105 def add(self, x, weight=1):
1106 r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1107 return _IMP_statistics.Histogram3D_add(self, x, weight)
1109 def get_total_count(self):
1110 r"""get_total_count(Histogram3D self) -> double"""
1111 return _IMP_statistics.Histogram3D_get_total_count(self)
1113 def get_frequencies(self):
1114 r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1115 return _IMP_statistics.Histogram3D_get_frequencies(self)
1117 def get_probability_distribution_function(self):
1118 r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1119 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1121 def get_counts(self):
1122 r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1123 return _IMP_statistics.Histogram3D_get_counts(self)
1126 r"""get_mean(Histogram3D self) -> Vector3D"""
1127 return _IMP_statistics.Histogram3D_get_mean(self)
1129 def get_dimension(self):
1130 r"""get_dimension(Histogram3D self) -> unsigned int"""
1131 return _IMP_statistics.Histogram3D_get_dimension(self)
1133 def get_standard_deviation(self, mean):
1134 r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1135 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1137 def get_bounding_box(self):
1138 r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1139 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1141 def get_minimum_and_maximum(self):
1142 r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1143 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1145 def show(self, *args):
1146 r"""show(Histogram3D self, _ostream out=std::cout)"""
1147 return _IMP_statistics.Histogram3D_show(self, *args)
1150 r"""__str__(Histogram3D self) -> std::string"""
1151 return _IMP_statistics.Histogram3D___str__(self)
1154 r"""__repr__(Histogram3D self) -> std::string"""
1155 return _IMP_statistics.Histogram3D___repr__(self)
1157 def __cmp__(self, arg2):
1158 r"""__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1159 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1161 def __eq__(self, arg2):
1162 r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1163 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1164 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1167 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1168 class Histogram4D(IMP._GeometricPrimitive4D):
1169 r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1171 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1173 def __init__(self, *args):
1175 __init__(Histogram4D self) -> Histogram4D
1176 __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1178 _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1180 def add(self, x, weight=1):
1181 r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1182 return _IMP_statistics.Histogram4D_add(self, x, weight)
1184 def get_total_count(self):
1185 r"""get_total_count(Histogram4D self) -> double"""
1186 return _IMP_statistics.Histogram4D_get_total_count(self)
1188 def get_frequencies(self):
1189 r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1190 return _IMP_statistics.Histogram4D_get_frequencies(self)
1192 def get_probability_distribution_function(self):
1193 r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1194 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1196 def get_counts(self):
1197 r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1198 return _IMP_statistics.Histogram4D_get_counts(self)
1201 r"""get_mean(Histogram4D self) -> Vector4D"""
1202 return _IMP_statistics.Histogram4D_get_mean(self)
1204 def get_dimension(self):
1205 r"""get_dimension(Histogram4D self) -> unsigned int"""
1206 return _IMP_statistics.Histogram4D_get_dimension(self)
1208 def get_standard_deviation(self, mean):
1209 r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1210 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1212 def get_bounding_box(self):
1213 r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1214 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1216 def get_minimum_and_maximum(self):
1217 r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1218 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1220 def show(self, *args):
1221 r"""show(Histogram4D self, _ostream out=std::cout)"""
1222 return _IMP_statistics.Histogram4D_show(self, *args)
1225 r"""__str__(Histogram4D self) -> std::string"""
1226 return _IMP_statistics.Histogram4D___str__(self)
1229 r"""__repr__(Histogram4D self) -> std::string"""
1230 return _IMP_statistics.Histogram4D___repr__(self)
1232 def __cmp__(self, arg2):
1233 r"""__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1234 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1236 def __eq__(self, arg2):
1237 r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1238 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1239 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1242 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1243 class Histogram5D(IMP._GeometricPrimitive5D):
1244 r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1246 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1248 def __init__(self, *args):
1250 __init__(Histogram5D self) -> Histogram5D
1251 __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1253 _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1255 def add(self, x, weight=1):
1256 r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1257 return _IMP_statistics.Histogram5D_add(self, x, weight)
1259 def get_total_count(self):
1260 r"""get_total_count(Histogram5D self) -> double"""
1261 return _IMP_statistics.Histogram5D_get_total_count(self)
1263 def get_frequencies(self):
1264 r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1265 return _IMP_statistics.Histogram5D_get_frequencies(self)
1267 def get_probability_distribution_function(self):
1268 r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1269 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1271 def get_counts(self):
1272 r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1273 return _IMP_statistics.Histogram5D_get_counts(self)
1276 r"""get_mean(Histogram5D self) -> Vector5D"""
1277 return _IMP_statistics.Histogram5D_get_mean(self)
1279 def get_dimension(self):
1280 r"""get_dimension(Histogram5D self) -> unsigned int"""
1281 return _IMP_statistics.Histogram5D_get_dimension(self)
1283 def get_standard_deviation(self, mean):
1284 r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1285 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1287 def get_bounding_box(self):
1288 r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1289 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1291 def get_minimum_and_maximum(self):
1292 r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1293 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1295 def show(self, *args):
1296 r"""show(Histogram5D self, _ostream out=std::cout)"""
1297 return _IMP_statistics.Histogram5D_show(self, *args)
1300 r"""__str__(Histogram5D self) -> std::string"""
1301 return _IMP_statistics.Histogram5D___str__(self)
1304 r"""__repr__(Histogram5D self) -> std::string"""
1305 return _IMP_statistics.Histogram5D___repr__(self)
1307 def __cmp__(self, arg2):
1308 r"""__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1309 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1311 def __eq__(self, arg2):
1312 r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1313 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1314 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1317 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1318 class Histogram6D(IMP._GeometricPrimitive6D):
1319 r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1321 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1323 def __init__(self, *args):
1325 __init__(Histogram6D self) -> Histogram6D
1326 __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1328 _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1330 def add(self, x, weight=1):
1331 r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1332 return _IMP_statistics.Histogram6D_add(self, x, weight)
1334 def get_total_count(self):
1335 r"""get_total_count(Histogram6D self) -> double"""
1336 return _IMP_statistics.Histogram6D_get_total_count(self)
1338 def get_frequencies(self):
1339 r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1340 return _IMP_statistics.Histogram6D_get_frequencies(self)
1342 def get_probability_distribution_function(self):
1343 r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1344 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1346 def get_counts(self):
1347 r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1348 return _IMP_statistics.Histogram6D_get_counts(self)
1351 r"""get_mean(Histogram6D self) -> Vector6D"""
1352 return _IMP_statistics.Histogram6D_get_mean(self)
1354 def get_dimension(self):
1355 r"""get_dimension(Histogram6D self) -> unsigned int"""
1356 return _IMP_statistics.Histogram6D_get_dimension(self)
1358 def get_standard_deviation(self, mean):
1359 r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1360 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1362 def get_bounding_box(self):
1363 r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1364 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1366 def get_minimum_and_maximum(self):
1367 r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1368 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1370 def show(self, *args):
1371 r"""show(Histogram6D self, _ostream out=std::cout)"""
1372 return _IMP_statistics.Histogram6D_show(self, *args)
1375 r"""__str__(Histogram6D self) -> std::string"""
1376 return _IMP_statistics.Histogram6D___str__(self)
1379 r"""__repr__(Histogram6D self) -> std::string"""
1380 return _IMP_statistics.Histogram6D___repr__(self)
1382 def __cmp__(self, arg2):
1383 r"""__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1384 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1386 def __eq__(self, arg2):
1387 r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1388 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1389 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1392 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1393 class HistogramKD(IMP._GeometricPrimitiveKD):
1394 r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1396 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1398 def __init__(self, *args):
1400 __init__(HistogramKD self) -> HistogramKD
1401 __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1403 _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1405 def add(self, x, weight=1):
1406 r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1407 return _IMP_statistics.HistogramKD_add(self, x, weight)
1409 def get_total_count(self):
1410 r"""get_total_count(HistogramKD self) -> double"""
1411 return _IMP_statistics.HistogramKD_get_total_count(self)
1413 def get_frequencies(self):
1414 r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1415 return _IMP_statistics.HistogramKD_get_frequencies(self)
1417 def get_probability_distribution_function(self):
1418 r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1419 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1421 def get_counts(self):
1422 r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1423 return _IMP_statistics.HistogramKD_get_counts(self)
1426 r"""get_mean(HistogramKD self) -> VectorKD"""
1427 return _IMP_statistics.HistogramKD_get_mean(self)
1429 def get_dimension(self):
1430 r"""get_dimension(HistogramKD self) -> unsigned int"""
1431 return _IMP_statistics.HistogramKD_get_dimension(self)
1433 def get_standard_deviation(self, mean):
1434 r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1435 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1437 def get_bounding_box(self):
1438 r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1439 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1441 def get_minimum_and_maximum(self):
1442 r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1443 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1445 def show(self, *args):
1446 r"""show(HistogramKD self, _ostream out=std::cout)"""
1447 return _IMP_statistics.HistogramKD_show(self, *args)
1450 r"""__str__(HistogramKD self) -> std::string"""
1451 return _IMP_statistics.HistogramKD___str__(self)
1454 r"""__repr__(HistogramKD self) -> std::string"""
1455 return _IMP_statistics.HistogramKD___repr__(self)
1457 def __cmp__(self, arg2):
1458 r"""__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1459 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1461 def __eq__(self, arg2):
1462 r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1463 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1464 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1467 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1468 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1469 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1471 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1472 __repr__ = _swig_repr
1474 def __setitem__(self, *args):
1476 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1477 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1479 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1481 def __getitem__(self, *args):
1483 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1484 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1486 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1488 def __init__(self, *args):
1490 __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1491 __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1492 __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1494 _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1498 r"""get_is_dense() -> bool"""
1499 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1501 def show(self, *args):
1502 r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1503 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1505 def add_voxel(self, arg2, arg3):
1506 r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1507 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1509 def get_all_voxels(self):
1510 r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1511 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1512 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1515 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1516 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1517 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1519 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1520 __repr__ = _swig_repr
1522 def __setitem__(self, *args):
1524 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1525 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1527 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1529 def __getitem__(self, *args):
1531 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1532 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1534 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1536 def __init__(self, *args):
1538 __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1539 __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1540 __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1542 _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1546 r"""get_is_dense() -> bool"""
1547 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1549 def show(self, *args):
1550 r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1551 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1553 def add_voxel(self, arg2, arg3):
1554 r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1555 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1557 def get_all_voxels(self):
1558 r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1559 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1560 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1563 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1564 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP._GeometricPrimitiveKD):
1565 r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1567 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1568 __repr__ = _swig_repr
1570 def __init__(self, *args):
1572 __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1573 __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1574 __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1575 __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1576 __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1577 __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1578 __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1580 _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1582 def show(self, *args):
1583 r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1584 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1586 def __getitem__(self, *args):
1588 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1589 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1591 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1593 def __setitem__(self, *args):
1595 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1596 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1598 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1600 def add_voxel(self, pt, vt):
1601 r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1602 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1604 def get_extended_index(self, index):
1605 r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1606 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1608 def get_bounding_box(self, *args):
1610 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1611 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1612 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1614 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1616 def set_bounding_box(self, bb3):
1617 r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1618 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1620 def get_nearest_index(self, pt):
1621 r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1622 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1624 def get_nearest_extended_index(self, pt):
1625 r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1626 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1627 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1630 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1631 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1632 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1634 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1635 __repr__ = _swig_repr
1637 def __setitem__(self, *args):
1639 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1640 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1642 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1644 def __getitem__(self, *args):
1646 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1647 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1649 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1651 def __init__(self, *args):
1653 __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1654 __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1655 __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1657 _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1661 r"""get_is_dense() -> bool"""
1662 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1664 def show(self, *args):
1665 r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1666 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1668 def add_voxel(self, arg2, arg3):
1669 r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1670 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1672 def get_all_voxels(self):
1673 r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1674 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1675 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1678 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1679 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1680 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1682 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1683 __repr__ = _swig_repr
1685 def __setitem__(self, *args):
1687 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1688 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1690 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1692 def __getitem__(self, *args):
1694 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1695 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1697 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1699 def __init__(self, *args):
1701 __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1702 __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1703 __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1705 _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1709 r"""get_is_dense() -> bool"""
1710 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1712 def show(self, *args):
1713 r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1714 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1716 def add_voxel(self, arg2, arg3):
1717 r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1718 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1720 def get_all_voxels(self):
1721 r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1722 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1723 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1726 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1727 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP._GeometricPrimitive1D):
1728 r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1730 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1731 __repr__ = _swig_repr
1733 def __init__(self, *args):
1735 __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1736 __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1737 __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1738 __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1739 __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1740 __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1741 __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1743 _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1745 def show(self, *args):
1746 r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1747 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1749 def __getitem__(self, *args):
1751 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1752 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1754 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1756 def __setitem__(self, *args):
1758 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1759 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1761 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1763 def add_voxel(self, pt, vt):
1764 r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1765 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1767 def get_extended_index(self, index):
1768 r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1769 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1771 def get_bounding_box(self, *args):
1773 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1774 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1775 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1777 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1779 def set_bounding_box(self, bb3):
1780 r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1781 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1783 def get_nearest_index(self, pt):
1784 r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1785 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1787 def get_nearest_extended_index(self, pt):
1788 r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1789 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1790 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1793 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1794 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1795 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1797 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1798 __repr__ = _swig_repr
1800 def __setitem__(self, *args):
1802 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1803 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1805 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1807 def __getitem__(self, *args):
1809 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1810 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1812 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1814 def __init__(self, *args):
1816 __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1817 __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1818 __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1820 _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1824 r"""get_is_dense() -> bool"""
1825 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1827 def show(self, *args):
1828 r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1829 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1831 def add_voxel(self, arg2, arg3):
1832 r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1833 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1835 def get_all_voxels(self):
1836 r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1837 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1838 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1841 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1842 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1843 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1845 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1846 __repr__ = _swig_repr
1848 def __setitem__(self, *args):
1850 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1851 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1853 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1855 def __getitem__(self, *args):
1857 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1858 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1860 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1862 def __init__(self, *args):
1864 __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1865 __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1866 __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1868 _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1872 r"""get_is_dense() -> bool"""
1873 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1875 def show(self, *args):
1876 r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1877 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1879 def add_voxel(self, arg2, arg3):
1880 r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1881 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1883 def get_all_voxels(self):
1884 r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1885 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1886 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1889 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1890 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP._GeometricPrimitive2D):
1891 r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1893 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1894 __repr__ = _swig_repr
1896 def __init__(self, *args):
1898 __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1899 __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1900 __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1901 __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1902 __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1903 __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1904 __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1906 _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1908 def show(self, *args):
1909 r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1910 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1912 def __getitem__(self, *args):
1914 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1915 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1917 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1919 def __setitem__(self, *args):
1921 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1922 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1924 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1926 def add_voxel(self, pt, vt):
1927 r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1928 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1930 def get_extended_index(self, index):
1931 r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1932 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1934 def get_bounding_box(self, *args):
1936 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1937 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1938 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1940 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1942 def set_bounding_box(self, bb3):
1943 r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1944 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1946 def get_nearest_index(self, pt):
1947 r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1948 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1950 def get_nearest_extended_index(self, pt):
1951 r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1952 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1953 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1956 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1957 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1958 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
1960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1961 __repr__ = _swig_repr
1963 def __setitem__(self, *args):
1965 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
1966 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
1968 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
1970 def __getitem__(self, *args):
1972 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
1973 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
1975 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
1977 def __init__(self, *args):
1979 __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
1980 __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
1981 __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
1983 _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
1987 r"""get_is_dense() -> bool"""
1988 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
1990 def show(self, *args):
1991 r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
1992 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
1994 def add_voxel(self, arg2, arg3):
1995 r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
1996 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
1998 def get_all_voxels(self):
1999 r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2000 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2001 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2004 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2005 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2006 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
2008 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2009 __repr__ = _swig_repr
2011 def __setitem__(self, *args):
2013 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2014 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2016 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2018 def __getitem__(self, *args):
2020 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2021 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2023 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2025 def __init__(self, *args):
2027 __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2028 __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2029 __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2031 _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2035 r"""get_is_dense() -> bool"""
2036 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2038 def show(self, *args):
2039 r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2040 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2042 def add_voxel(self, arg2, arg3):
2043 r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2044 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2046 def get_all_voxels(self):
2047 r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2048 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2049 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2052 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2053 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP._GeometricPrimitive3D):
2054 r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2056 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2057 __repr__ = _swig_repr
2059 def __init__(self, *args):
2061 __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2062 __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2063 __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2064 __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2065 __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2066 __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2067 __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2069 _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2071 def show(self, *args):
2072 r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2073 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2075 def __getitem__(self, *args):
2077 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2078 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2080 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2082 def __setitem__(self, *args):
2084 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2085 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2087 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2089 def add_voxel(self, pt, vt):
2090 r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2091 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2093 def get_extended_index(self, index):
2094 r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2095 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2097 def get_bounding_box(self, *args):
2099 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2100 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2101 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2103 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2105 def set_bounding_box(self, bb3):
2106 r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2107 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2109 def get_nearest_index(self, pt):
2110 r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2111 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2113 def get_nearest_extended_index(self, pt):
2114 r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2115 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2116 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2119 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2120 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2121 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2123 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2124 __repr__ = _swig_repr
2126 def __setitem__(self, *args):
2128 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2129 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2131 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2133 def __getitem__(self, *args):
2135 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2136 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2138 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2140 def __init__(self, *args):
2142 __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2143 __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2144 __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2146 _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2150 r"""get_is_dense() -> bool"""
2151 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2153 def show(self, *args):
2154 r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2155 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2157 def add_voxel(self, arg2, arg3):
2158 r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2159 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2161 def get_all_voxels(self):
2162 r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2163 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2164 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2167 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2168 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2169 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2171 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2172 __repr__ = _swig_repr
2174 def __setitem__(self, *args):
2176 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2177 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2179 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2181 def __getitem__(self, *args):
2183 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2184 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2186 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2188 def __init__(self, *args):
2190 __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2191 __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2192 __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2194 _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2198 r"""get_is_dense() -> bool"""
2199 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2201 def show(self, *args):
2202 r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2203 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2205 def add_voxel(self, arg2, arg3):
2206 r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2207 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2209 def get_all_voxels(self):
2210 r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2211 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2212 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2215 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2216 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP._GeometricPrimitive4D):
2217 r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2219 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2220 __repr__ = _swig_repr
2222 def __init__(self, *args):
2224 __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2225 __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2226 __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2227 __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2228 __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2229 __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2230 __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2232 _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2234 def show(self, *args):
2235 r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2236 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2238 def __getitem__(self, *args):
2240 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2241 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2243 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2245 def __setitem__(self, *args):
2247 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2248 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2250 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2252 def add_voxel(self, pt, vt):
2253 r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2254 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2256 def get_extended_index(self, index):
2257 r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2258 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2260 def get_bounding_box(self, *args):
2262 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2263 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2264 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2266 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2268 def set_bounding_box(self, bb3):
2269 r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2270 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2272 def get_nearest_index(self, pt):
2273 r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2274 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2276 def get_nearest_extended_index(self, pt):
2277 r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2278 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2279 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2282 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2283 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2284 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2286 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2287 __repr__ = _swig_repr
2289 def __setitem__(self, *args):
2291 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2292 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2294 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2296 def __getitem__(self, *args):
2298 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2299 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2301 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2303 def __init__(self, *args):
2305 __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2306 __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2307 __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2309 _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2313 r"""get_is_dense() -> bool"""
2314 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2316 def show(self, *args):
2317 r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2318 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2320 def add_voxel(self, arg2, arg3):
2321 r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2322 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2324 def get_all_voxels(self):
2325 r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2326 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2327 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2330 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2331 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2332 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2334 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2335 __repr__ = _swig_repr
2337 def __setitem__(self, *args):
2339 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2340 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2342 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2344 def __getitem__(self, *args):
2346 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2347 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2349 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2351 def __init__(self, *args):
2353 __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2354 __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2355 __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2357 _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2361 r"""get_is_dense() -> bool"""
2362 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2364 def show(self, *args):
2365 r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2366 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2368 def add_voxel(self, arg2, arg3):
2369 r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2370 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2372 def get_all_voxels(self):
2373 r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2374 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2375 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2378 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2379 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP._GeometricPrimitive5D):
2380 r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2382 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2383 __repr__ = _swig_repr
2385 def __init__(self, *args):
2387 __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2388 __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2389 __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2390 __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2391 __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2392 __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2393 __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2395 _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2397 def show(self, *args):
2398 r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2399 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2401 def __getitem__(self, *args):
2403 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2404 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2406 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2408 def __setitem__(self, *args):
2410 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2411 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2413 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2415 def add_voxel(self, pt, vt):
2416 r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2417 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2419 def get_extended_index(self, index):
2420 r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2421 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2423 def get_bounding_box(self, *args):
2425 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2426 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2427 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2429 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2431 def set_bounding_box(self, bb3):
2432 r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2433 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2435 def get_nearest_index(self, pt):
2436 r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2437 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2439 def get_nearest_extended_index(self, pt):
2440 r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2441 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2442 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2445 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2446 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2447 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2449 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2450 __repr__ = _swig_repr
2452 def __setitem__(self, *args):
2454 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2455 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2457 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2459 def __getitem__(self, *args):
2461 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2462 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2464 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2466 def __init__(self, *args):
2468 __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2469 __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2470 __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2472 _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2476 r"""get_is_dense() -> bool"""
2477 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2479 def show(self, *args):
2480 r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2481 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2483 def add_voxel(self, arg2, arg3):
2484 r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2485 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2487 def get_all_voxels(self):
2488 r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2489 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2490 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2493 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2494 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2495 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2497 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2498 __repr__ = _swig_repr
2500 def __setitem__(self, *args):
2502 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2503 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2505 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2507 def __getitem__(self, *args):
2509 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2510 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2512 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2514 def __init__(self, *args):
2516 __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2517 __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2518 __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2520 _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2524 r"""get_is_dense() -> bool"""
2525 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2527 def show(self, *args):
2528 r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2529 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2531 def add_voxel(self, arg2, arg3):
2532 r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2533 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2535 def get_all_voxels(self):
2536 r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2537 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2538 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2541 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2542 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP._GeometricPrimitive6D):
2543 r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2545 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2546 __repr__ = _swig_repr
2548 def __init__(self, *args):
2550 __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2551 __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2552 __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2553 __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2554 __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2555 __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2556 __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2558 _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2560 def show(self, *args):
2561 r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2562 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2564 def __getitem__(self, *args):
2566 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2567 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2569 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2571 def __setitem__(self, *args):
2573 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2574 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2576 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2578 def add_voxel(self, pt, vt):
2579 r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2580 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2582 def get_extended_index(self, index):
2583 r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2584 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2586 def get_bounding_box(self, *args):
2588 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2589 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2590 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2592 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2594 def set_bounding_box(self, bb3):
2595 r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2596 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2598 def get_nearest_index(self, pt):
2599 r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2600 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2602 def get_nearest_extended_index(self, pt):
2603 r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2604 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2605 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2608 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2610 from .
import _histogram
2611 show_histogram= _histogram.show_histogram
2615 r"""get_module_name() -> std::string const"""
2616 return _IMP_statistics.get_module_name()
2619 r"""get_module_version() -> std::string const"""
2620 return _IMP_statistics.get_module_version()
2623 r"""get_example_path(std::string fname) -> std::string"""
2624 return _IMP_statistics.get_example_path(fname)
2627 r"""get_data_path(std::string fname) -> std::string"""
2628 return _IMP_statistics.get_data_path(fname)
2630 from .
import _version_check
def get_data_path
Return the full path to one of this module's data files.
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
double get_quantile(const Histogram1D &h, double fraction)
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
def get_example_path
Return the full path to one of this module's example files.
def get_module_version
Return the version of this module, as a string.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
double get_distance(const VectorD< D > &v1, const VectorD< D > &v2)
Compute the distance between two vectors.
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
def get_module_name
Return the fully-qualified name of this module.
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
Ints get_representatives(Embedding *d, PartitionalClustering *pc)