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 __eq__(self, arg2):
1008 r"""__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1009 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1010 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1013 _IMP_statistics.Histogram1D_swigregister(Histogram1D)
1014 class Histogram2D(IMP._GeometricPrimitive2D):
1015 r"""Proxy of C++ IMP::statistics::HistogramD< 2 > class."""
1017 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1019 def __init__(self, *args):
1021 __init__(Histogram2D self) -> Histogram2D
1022 __init__(Histogram2D self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1024 _IMP_statistics.Histogram2D_swiginit(self, _IMP_statistics.new_Histogram2D(*args))
1026 def add(self, x, weight=1):
1027 r"""add(Histogram2D self, Vector2D x, double weight=1)"""
1028 return _IMP_statistics.Histogram2D_add(self, x, weight)
1030 def get_total_count(self):
1031 r"""get_total_count(Histogram2D self) -> double"""
1032 return _IMP_statistics.Histogram2D_get_total_count(self)
1034 def get_frequencies(self):
1035 r"""get_frequencies(Histogram2D self) -> Histogram2D"""
1036 return _IMP_statistics.Histogram2D_get_frequencies(self)
1038 def get_probability_distribution_function(self):
1039 r"""get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1040 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1042 def get_counts(self):
1043 r"""get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1044 return _IMP_statistics.Histogram2D_get_counts(self)
1047 r"""get_mean(Histogram2D self) -> Vector2D"""
1048 return _IMP_statistics.Histogram2D_get_mean(self)
1050 def get_dimension(self):
1051 r"""get_dimension(Histogram2D self) -> unsigned int"""
1052 return _IMP_statistics.Histogram2D_get_dimension(self)
1054 def get_standard_deviation(self, mean):
1055 r"""get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1056 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1058 def get_bounding_box(self):
1059 r"""get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1060 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1062 def get_minimum_and_maximum(self):
1063 r"""get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1064 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1066 def show(self, *args):
1067 r"""show(Histogram2D self, _ostream out=std::cout)"""
1068 return _IMP_statistics.Histogram2D_show(self, *args)
1071 r"""__str__(Histogram2D self) -> std::string"""
1072 return _IMP_statistics.Histogram2D___str__(self)
1075 r"""__repr__(Histogram2D self) -> std::string"""
1076 return _IMP_statistics.Histogram2D___repr__(self)
1078 def __eq__(self, arg2):
1079 r"""__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1080 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1081 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1084 _IMP_statistics.Histogram2D_swigregister(Histogram2D)
1085 class Histogram3D(IMP._GeometricPrimitive3D):
1086 r"""Proxy of C++ IMP::statistics::HistogramD< 3 > class."""
1088 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1090 def __init__(self, *args):
1092 __init__(Histogram3D self) -> Histogram3D
1093 __init__(Histogram3D self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1095 _IMP_statistics.Histogram3D_swiginit(self, _IMP_statistics.new_Histogram3D(*args))
1097 def add(self, x, weight=1):
1098 r"""add(Histogram3D self, Vector3D x, double weight=1)"""
1099 return _IMP_statistics.Histogram3D_add(self, x, weight)
1101 def get_total_count(self):
1102 r"""get_total_count(Histogram3D self) -> double"""
1103 return _IMP_statistics.Histogram3D_get_total_count(self)
1105 def get_frequencies(self):
1106 r"""get_frequencies(Histogram3D self) -> Histogram3D"""
1107 return _IMP_statistics.Histogram3D_get_frequencies(self)
1109 def get_probability_distribution_function(self):
1110 r"""get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1111 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1113 def get_counts(self):
1114 r"""get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1115 return _IMP_statistics.Histogram3D_get_counts(self)
1118 r"""get_mean(Histogram3D self) -> Vector3D"""
1119 return _IMP_statistics.Histogram3D_get_mean(self)
1121 def get_dimension(self):
1122 r"""get_dimension(Histogram3D self) -> unsigned int"""
1123 return _IMP_statistics.Histogram3D_get_dimension(self)
1125 def get_standard_deviation(self, mean):
1126 r"""get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1127 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1129 def get_bounding_box(self):
1130 r"""get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1131 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1133 def get_minimum_and_maximum(self):
1134 r"""get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1135 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1137 def show(self, *args):
1138 r"""show(Histogram3D self, _ostream out=std::cout)"""
1139 return _IMP_statistics.Histogram3D_show(self, *args)
1142 r"""__str__(Histogram3D self) -> std::string"""
1143 return _IMP_statistics.Histogram3D___str__(self)
1146 r"""__repr__(Histogram3D self) -> std::string"""
1147 return _IMP_statistics.Histogram3D___repr__(self)
1149 def __eq__(self, arg2):
1150 r"""__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1151 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1152 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1155 _IMP_statistics.Histogram3D_swigregister(Histogram3D)
1156 class Histogram4D(IMP._GeometricPrimitive4D):
1157 r"""Proxy of C++ IMP::statistics::HistogramD< 4 > class."""
1159 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1161 def __init__(self, *args):
1163 __init__(Histogram4D self) -> Histogram4D
1164 __init__(Histogram4D self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1166 _IMP_statistics.Histogram4D_swiginit(self, _IMP_statistics.new_Histogram4D(*args))
1168 def add(self, x, weight=1):
1169 r"""add(Histogram4D self, Vector4D x, double weight=1)"""
1170 return _IMP_statistics.Histogram4D_add(self, x, weight)
1172 def get_total_count(self):
1173 r"""get_total_count(Histogram4D self) -> double"""
1174 return _IMP_statistics.Histogram4D_get_total_count(self)
1176 def get_frequencies(self):
1177 r"""get_frequencies(Histogram4D self) -> Histogram4D"""
1178 return _IMP_statistics.Histogram4D_get_frequencies(self)
1180 def get_probability_distribution_function(self):
1181 r"""get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1182 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1184 def get_counts(self):
1185 r"""get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1186 return _IMP_statistics.Histogram4D_get_counts(self)
1189 r"""get_mean(Histogram4D self) -> Vector4D"""
1190 return _IMP_statistics.Histogram4D_get_mean(self)
1192 def get_dimension(self):
1193 r"""get_dimension(Histogram4D self) -> unsigned int"""
1194 return _IMP_statistics.Histogram4D_get_dimension(self)
1196 def get_standard_deviation(self, mean):
1197 r"""get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1198 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1200 def get_bounding_box(self):
1201 r"""get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1202 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1204 def get_minimum_and_maximum(self):
1205 r"""get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1206 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1208 def show(self, *args):
1209 r"""show(Histogram4D self, _ostream out=std::cout)"""
1210 return _IMP_statistics.Histogram4D_show(self, *args)
1213 r"""__str__(Histogram4D self) -> std::string"""
1214 return _IMP_statistics.Histogram4D___str__(self)
1217 r"""__repr__(Histogram4D self) -> std::string"""
1218 return _IMP_statistics.Histogram4D___repr__(self)
1220 def __eq__(self, arg2):
1221 r"""__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1222 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1223 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1226 _IMP_statistics.Histogram4D_swigregister(Histogram4D)
1227 class Histogram5D(IMP._GeometricPrimitive5D):
1228 r"""Proxy of C++ IMP::statistics::HistogramD< 5 > class."""
1230 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1232 def __init__(self, *args):
1234 __init__(Histogram5D self) -> Histogram5D
1235 __init__(Histogram5D self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1237 _IMP_statistics.Histogram5D_swiginit(self, _IMP_statistics.new_Histogram5D(*args))
1239 def add(self, x, weight=1):
1240 r"""add(Histogram5D self, Vector5D x, double weight=1)"""
1241 return _IMP_statistics.Histogram5D_add(self, x, weight)
1243 def get_total_count(self):
1244 r"""get_total_count(Histogram5D self) -> double"""
1245 return _IMP_statistics.Histogram5D_get_total_count(self)
1247 def get_frequencies(self):
1248 r"""get_frequencies(Histogram5D self) -> Histogram5D"""
1249 return _IMP_statistics.Histogram5D_get_frequencies(self)
1251 def get_probability_distribution_function(self):
1252 r"""get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1253 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1255 def get_counts(self):
1256 r"""get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1257 return _IMP_statistics.Histogram5D_get_counts(self)
1260 r"""get_mean(Histogram5D self) -> Vector5D"""
1261 return _IMP_statistics.Histogram5D_get_mean(self)
1263 def get_dimension(self):
1264 r"""get_dimension(Histogram5D self) -> unsigned int"""
1265 return _IMP_statistics.Histogram5D_get_dimension(self)
1267 def get_standard_deviation(self, mean):
1268 r"""get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1269 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1271 def get_bounding_box(self):
1272 r"""get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1273 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1275 def get_minimum_and_maximum(self):
1276 r"""get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1277 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1279 def show(self, *args):
1280 r"""show(Histogram5D self, _ostream out=std::cout)"""
1281 return _IMP_statistics.Histogram5D_show(self, *args)
1284 r"""__str__(Histogram5D self) -> std::string"""
1285 return _IMP_statistics.Histogram5D___str__(self)
1288 r"""__repr__(Histogram5D self) -> std::string"""
1289 return _IMP_statistics.Histogram5D___repr__(self)
1291 def __eq__(self, arg2):
1292 r"""__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1293 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1294 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1297 _IMP_statistics.Histogram5D_swigregister(Histogram5D)
1298 class Histogram6D(IMP._GeometricPrimitive6D):
1299 r"""Proxy of C++ IMP::statistics::HistogramD< 6 > class."""
1301 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1303 def __init__(self, *args):
1305 __init__(Histogram6D self) -> Histogram6D
1306 __init__(Histogram6D self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1308 _IMP_statistics.Histogram6D_swiginit(self, _IMP_statistics.new_Histogram6D(*args))
1310 def add(self, x, weight=1):
1311 r"""add(Histogram6D self, Vector6D x, double weight=1)"""
1312 return _IMP_statistics.Histogram6D_add(self, x, weight)
1314 def get_total_count(self):
1315 r"""get_total_count(Histogram6D self) -> double"""
1316 return _IMP_statistics.Histogram6D_get_total_count(self)
1318 def get_frequencies(self):
1319 r"""get_frequencies(Histogram6D self) -> Histogram6D"""
1320 return _IMP_statistics.Histogram6D_get_frequencies(self)
1322 def get_probability_distribution_function(self):
1323 r"""get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1324 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1326 def get_counts(self):
1327 r"""get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1328 return _IMP_statistics.Histogram6D_get_counts(self)
1331 r"""get_mean(Histogram6D self) -> Vector6D"""
1332 return _IMP_statistics.Histogram6D_get_mean(self)
1334 def get_dimension(self):
1335 r"""get_dimension(Histogram6D self) -> unsigned int"""
1336 return _IMP_statistics.Histogram6D_get_dimension(self)
1338 def get_standard_deviation(self, mean):
1339 r"""get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1340 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1342 def get_bounding_box(self):
1343 r"""get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1344 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1346 def get_minimum_and_maximum(self):
1347 r"""get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1348 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1350 def show(self, *args):
1351 r"""show(Histogram6D self, _ostream out=std::cout)"""
1352 return _IMP_statistics.Histogram6D_show(self, *args)
1355 r"""__str__(Histogram6D self) -> std::string"""
1356 return _IMP_statistics.Histogram6D___str__(self)
1359 r"""__repr__(Histogram6D self) -> std::string"""
1360 return _IMP_statistics.Histogram6D___repr__(self)
1362 def __eq__(self, arg2):
1363 r"""__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1364 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1365 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1368 _IMP_statistics.Histogram6D_swigregister(Histogram6D)
1369 class HistogramKD(IMP._GeometricPrimitiveKD):
1370 r"""Proxy of C++ IMP::statistics::HistogramD< -1 > class."""
1372 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1374 def __init__(self, *args):
1376 __init__(HistogramKD self) -> HistogramKD
1377 __init__(HistogramKD self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1379 _IMP_statistics.HistogramKD_swiginit(self, _IMP_statistics.new_HistogramKD(*args))
1381 def add(self, x, weight=1):
1382 r"""add(HistogramKD self, VectorKD x, double weight=1)"""
1383 return _IMP_statistics.HistogramKD_add(self, x, weight)
1385 def get_total_count(self):
1386 r"""get_total_count(HistogramKD self) -> double"""
1387 return _IMP_statistics.HistogramKD_get_total_count(self)
1389 def get_frequencies(self):
1390 r"""get_frequencies(HistogramKD self) -> HistogramKD"""
1391 return _IMP_statistics.HistogramKD_get_frequencies(self)
1393 def get_probability_distribution_function(self):
1394 r"""get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1395 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1397 def get_counts(self):
1398 r"""get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1399 return _IMP_statistics.HistogramKD_get_counts(self)
1402 r"""get_mean(HistogramKD self) -> VectorKD"""
1403 return _IMP_statistics.HistogramKD_get_mean(self)
1405 def get_dimension(self):
1406 r"""get_dimension(HistogramKD self) -> unsigned int"""
1407 return _IMP_statistics.HistogramKD_get_dimension(self)
1409 def get_standard_deviation(self, mean):
1410 r"""get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1411 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1413 def get_bounding_box(self):
1414 r"""get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1415 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1417 def get_minimum_and_maximum(self):
1418 r"""get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1419 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1421 def show(self, *args):
1422 r"""show(HistogramKD self, _ostream out=std::cout)"""
1423 return _IMP_statistics.HistogramKD_show(self, *args)
1426 r"""__str__(HistogramKD self) -> std::string"""
1427 return _IMP_statistics.HistogramKD___str__(self)
1430 r"""__repr__(HistogramKD self) -> std::string"""
1431 return _IMP_statistics.HistogramKD___repr__(self)
1433 def __eq__(self, arg2):
1434 r"""__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1435 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1436 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1439 _IMP_statistics.HistogramKD_swigregister(HistogramKD)
1440 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1441 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,int > class."""
1443 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1444 __repr__ = _swig_repr
1446 def __setitem__(self, *args):
1448 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1449 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1451 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1453 def __getitem__(self, *args):
1455 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1456 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1458 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1460 def __init__(self, *args):
1462 __init__(_IntDenseGridStorageKD self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1463 __init__(_IntDenseGridStorageKD self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorageKD
1464 __init__(_IntDenseGridStorageKD self, int const & default_value=int()) -> _IntDenseGridStorageKD
1466 _IMP_statistics._IntDenseGridStorageKD_swiginit(self, _IMP_statistics.new__IntDenseGridStorageKD(*args))
1470 r"""get_is_dense() -> bool"""
1471 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1473 def show(self, *args):
1474 r"""show(_IntDenseGridStorageKD self, _ostream out=std::cout)"""
1475 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1477 def add_voxel(self, arg2, arg3):
1478 r"""add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1479 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1481 def get_all_voxels(self):
1482 r"""get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1483 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1484 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1487 _IMP_statistics._IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1488 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1489 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< -1,double > class."""
1491 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1492 __repr__ = _swig_repr
1494 def __setitem__(self, *args):
1496 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1497 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1499 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1501 def __getitem__(self, *args):
1503 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1504 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1506 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1508 def __init__(self, *args):
1510 __init__(_FloatDenseGridStorageKD self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1511 __init__(_FloatDenseGridStorageKD self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorageKD
1512 __init__(_FloatDenseGridStorageKD self, double const & default_value=double()) -> _FloatDenseGridStorageKD
1514 _IMP_statistics._FloatDenseGridStorageKD_swiginit(self, _IMP_statistics.new__FloatDenseGridStorageKD(*args))
1518 r"""get_is_dense() -> bool"""
1519 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1521 def show(self, *args):
1522 r"""show(_FloatDenseGridStorageKD self, _ostream out=std::cout)"""
1523 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1525 def add_voxel(self, arg2, arg3):
1526 r"""add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1527 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1529 def get_all_voxels(self):
1530 r"""get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1531 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1532 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1535 _IMP_statistics._FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1536 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP._GeometricPrimitiveKD):
1537 r"""Proxy of C++ IMP::algebra::GridD< -1,IMP::algebra::DenseGridStorageD< -1,double >,double,IMP::algebra::DefaultEmbeddingD< -1 > > class."""
1539 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1540 __repr__ = _swig_repr
1542 def __init__(self, *args):
1544 __init__(_HistogramCountsGridKD self, IMP::Ints const counts, BoundingBoxKD bb, double default_value=double()) -> _HistogramCountsGridKD
1545 __init__(_HistogramCountsGridKD self, double side, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1546 __init__(_HistogramCountsGridKD self, VectorKD sides, BoundingBoxKD bb, double const & default_value=double()) -> _HistogramCountsGridKD
1547 __init__(_HistogramCountsGridKD self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1548 __init__(_HistogramCountsGridKD self, double side, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1549 __init__(_HistogramCountsGridKD self, VectorKD sides, VectorKD origin, double const & default_value=double()) -> _HistogramCountsGridKD
1550 __init__(_HistogramCountsGridKD self) -> _HistogramCountsGridKD
1552 _IMP_statistics._HistogramCountsGridKD_swiginit(self, _IMP_statistics.new__HistogramCountsGridKD(*args))
1554 def show(self, *args):
1555 r"""show(_HistogramCountsGridKD self, _ostream out=std::cout)"""
1556 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1558 def __getitem__(self, *args):
1560 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1561 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1563 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1565 def __setitem__(self, *args):
1567 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1568 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
1570 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
1572 def add_voxel(self, pt, vt):
1573 r"""add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
1574 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
1576 def get_extended_index(self, index):
1577 r"""get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
1578 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
1580 def get_bounding_box(self, *args):
1582 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
1583 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
1584 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
1586 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
1588 def set_bounding_box(self, bb3):
1589 r"""set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
1590 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
1592 def get_nearest_index(self, pt):
1593 r"""get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
1594 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
1596 def get_nearest_extended_index(self, pt):
1597 r"""get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
1598 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
1599 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
1602 _IMP_statistics._HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
1603 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1604 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,int > class."""
1606 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1607 __repr__ = _swig_repr
1609 def __setitem__(self, *args):
1611 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
1612 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
1614 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
1616 def __getitem__(self, *args):
1618 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
1619 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
1621 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
1623 def __init__(self, *args):
1625 __init__(_IntDenseGridStorage1D self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
1626 __init__(_IntDenseGridStorage1D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage1D
1627 __init__(_IntDenseGridStorage1D self, int const & default_value=int()) -> _IntDenseGridStorage1D
1629 _IMP_statistics._IntDenseGridStorage1D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage1D(*args))
1633 r"""get_is_dense() -> bool"""
1634 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
1636 def show(self, *args):
1637 r"""show(_IntDenseGridStorage1D self, _ostream out=std::cout)"""
1638 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
1640 def add_voxel(self, arg2, arg3):
1641 r"""add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
1642 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
1644 def get_all_voxels(self):
1645 r"""get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
1646 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
1647 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
1650 _IMP_statistics._IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
1651 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
1652 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 1,double > class."""
1654 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1655 __repr__ = _swig_repr
1657 def __setitem__(self, *args):
1659 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
1660 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
1662 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
1664 def __getitem__(self, *args):
1666 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
1667 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
1669 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
1671 def __init__(self, *args):
1673 __init__(_FloatDenseGridStorage1D self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
1674 __init__(_FloatDenseGridStorage1D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage1D
1675 __init__(_FloatDenseGridStorage1D self, double const & default_value=double()) -> _FloatDenseGridStorage1D
1677 _IMP_statistics._FloatDenseGridStorage1D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage1D(*args))
1681 r"""get_is_dense() -> bool"""
1682 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
1684 def show(self, *args):
1685 r"""show(_FloatDenseGridStorage1D self, _ostream out=std::cout)"""
1686 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
1688 def add_voxel(self, arg2, arg3):
1689 r"""add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
1690 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
1692 def get_all_voxels(self):
1693 r"""get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
1694 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
1695 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
1698 _IMP_statistics._FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
1699 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP._GeometricPrimitive1D):
1700 r"""Proxy of C++ IMP::algebra::GridD< 1,IMP::algebra::DenseGridStorageD< 1,double >,double,IMP::algebra::DefaultEmbeddingD< 1 > > class."""
1702 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1703 __repr__ = _swig_repr
1705 def __init__(self, *args):
1707 __init__(_HistogramCountsGrid1D self, IMP::Ints const counts, BoundingBox1D bb, double default_value=double()) -> _HistogramCountsGrid1D
1708 __init__(_HistogramCountsGrid1D self, double side, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1709 __init__(_HistogramCountsGrid1D self, Vector1D sides, BoundingBox1D bb, double const & default_value=double()) -> _HistogramCountsGrid1D
1710 __init__(_HistogramCountsGrid1D self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
1711 __init__(_HistogramCountsGrid1D self, double side, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1712 __init__(_HistogramCountsGrid1D self, Vector1D sides, Vector1D origin, double const & default_value=double()) -> _HistogramCountsGrid1D
1713 __init__(_HistogramCountsGrid1D self) -> _HistogramCountsGrid1D
1715 _IMP_statistics._HistogramCountsGrid1D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid1D(*args))
1717 def show(self, *args):
1718 r"""show(_HistogramCountsGrid1D self, _ostream out=std::cout)"""
1719 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
1721 def __getitem__(self, *args):
1723 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
1724 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
1726 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
1728 def __setitem__(self, *args):
1730 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
1731 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
1733 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
1735 def add_voxel(self, pt, vt):
1736 r"""add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
1737 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
1739 def get_extended_index(self, index):
1740 r"""get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
1741 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
1743 def get_bounding_box(self, *args):
1745 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
1746 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
1747 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
1749 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
1751 def set_bounding_box(self, bb3):
1752 r"""set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
1753 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
1755 def get_nearest_index(self, pt):
1756 r"""get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
1757 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
1759 def get_nearest_extended_index(self, pt):
1760 r"""get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
1761 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
1762 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
1765 _IMP_statistics._HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
1766 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1767 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,int > class."""
1769 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1770 __repr__ = _swig_repr
1772 def __setitem__(self, *args):
1774 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
1775 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
1777 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
1779 def __getitem__(self, *args):
1781 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
1782 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
1784 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
1786 def __init__(self, *args):
1788 __init__(_IntDenseGridStorage2D self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
1789 __init__(_IntDenseGridStorage2D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage2D
1790 __init__(_IntDenseGridStorage2D self, int const & default_value=int()) -> _IntDenseGridStorage2D
1792 _IMP_statistics._IntDenseGridStorage2D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage2D(*args))
1796 r"""get_is_dense() -> bool"""
1797 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
1799 def show(self, *args):
1800 r"""show(_IntDenseGridStorage2D self, _ostream out=std::cout)"""
1801 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
1803 def add_voxel(self, arg2, arg3):
1804 r"""add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
1805 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
1807 def get_all_voxels(self):
1808 r"""get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
1809 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
1810 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
1813 _IMP_statistics._IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
1814 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
1815 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 2,double > class."""
1817 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1818 __repr__ = _swig_repr
1820 def __setitem__(self, *args):
1822 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
1823 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
1825 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
1827 def __getitem__(self, *args):
1829 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
1830 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
1832 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
1834 def __init__(self, *args):
1836 __init__(_FloatDenseGridStorage2D self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
1837 __init__(_FloatDenseGridStorage2D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage2D
1838 __init__(_FloatDenseGridStorage2D self, double const & default_value=double()) -> _FloatDenseGridStorage2D
1840 _IMP_statistics._FloatDenseGridStorage2D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage2D(*args))
1844 r"""get_is_dense() -> bool"""
1845 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
1847 def show(self, *args):
1848 r"""show(_FloatDenseGridStorage2D self, _ostream out=std::cout)"""
1849 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
1851 def add_voxel(self, arg2, arg3):
1852 r"""add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
1853 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
1855 def get_all_voxels(self):
1856 r"""get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
1857 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
1858 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
1861 _IMP_statistics._FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
1862 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP._GeometricPrimitive2D):
1863 r"""Proxy of C++ IMP::algebra::GridD< 2,IMP::algebra::DenseGridStorageD< 2,double >,double,IMP::algebra::DefaultEmbeddingD< 2 > > class."""
1865 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1866 __repr__ = _swig_repr
1868 def __init__(self, *args):
1870 __init__(_HistogramCountsGrid2D self, IMP::Ints const counts, BoundingBox2D bb, double default_value=double()) -> _HistogramCountsGrid2D
1871 __init__(_HistogramCountsGrid2D self, double side, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1872 __init__(_HistogramCountsGrid2D self, Vector2D sides, BoundingBox2D bb, double const & default_value=double()) -> _HistogramCountsGrid2D
1873 __init__(_HistogramCountsGrid2D self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
1874 __init__(_HistogramCountsGrid2D self, double side, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1875 __init__(_HistogramCountsGrid2D self, Vector2D sides, Vector2D origin, double const & default_value=double()) -> _HistogramCountsGrid2D
1876 __init__(_HistogramCountsGrid2D self) -> _HistogramCountsGrid2D
1878 _IMP_statistics._HistogramCountsGrid2D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid2D(*args))
1880 def show(self, *args):
1881 r"""show(_HistogramCountsGrid2D self, _ostream out=std::cout)"""
1882 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
1884 def __getitem__(self, *args):
1886 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
1887 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
1889 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
1891 def __setitem__(self, *args):
1893 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
1894 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
1896 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
1898 def add_voxel(self, pt, vt):
1899 r"""add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
1900 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
1902 def get_extended_index(self, index):
1903 r"""get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
1904 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
1906 def get_bounding_box(self, *args):
1908 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
1909 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
1910 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
1912 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
1914 def set_bounding_box(self, bb3):
1915 r"""set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
1916 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
1918 def get_nearest_index(self, pt):
1919 r"""get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
1920 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
1922 def get_nearest_extended_index(self, pt):
1923 r"""get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
1924 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
1925 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
1928 _IMP_statistics._HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
1929 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1930 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,int > class."""
1932 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1933 __repr__ = _swig_repr
1935 def __setitem__(self, *args):
1937 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
1938 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
1940 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
1942 def __getitem__(self, *args):
1944 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
1945 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
1947 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
1949 def __init__(self, *args):
1951 __init__(_IntDenseGridStorage3D self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
1952 __init__(_IntDenseGridStorage3D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage3D
1953 __init__(_IntDenseGridStorage3D self, int const & default_value=int()) -> _IntDenseGridStorage3D
1955 _IMP_statistics._IntDenseGridStorage3D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage3D(*args))
1959 r"""get_is_dense() -> bool"""
1960 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
1962 def show(self, *args):
1963 r"""show(_IntDenseGridStorage3D self, _ostream out=std::cout)"""
1964 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
1966 def add_voxel(self, arg2, arg3):
1967 r"""add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
1968 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
1970 def get_all_voxels(self):
1971 r"""get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
1972 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
1973 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
1976 _IMP_statistics._IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
1977 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
1978 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 3,double > class."""
1980 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1981 __repr__ = _swig_repr
1983 def __setitem__(self, *args):
1985 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
1986 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
1988 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
1990 def __getitem__(self, *args):
1992 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
1993 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
1995 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
1997 def __init__(self, *args):
1999 __init__(_FloatDenseGridStorage3D self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2000 __init__(_FloatDenseGridStorage3D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage3D
2001 __init__(_FloatDenseGridStorage3D self, double const & default_value=double()) -> _FloatDenseGridStorage3D
2003 _IMP_statistics._FloatDenseGridStorage3D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage3D(*args))
2007 r"""get_is_dense() -> bool"""
2008 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2010 def show(self, *args):
2011 r"""show(_FloatDenseGridStorage3D self, _ostream out=std::cout)"""
2012 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2014 def add_voxel(self, arg2, arg3):
2015 r"""add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2016 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2018 def get_all_voxels(self):
2019 r"""get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2020 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2021 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2024 _IMP_statistics._FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2025 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP._GeometricPrimitive3D):
2026 r"""Proxy of C++ IMP::algebra::GridD< 3,IMP::algebra::DenseGridStorageD< 3,double >,double,IMP::algebra::DefaultEmbeddingD< 3 > > class."""
2028 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2029 __repr__ = _swig_repr
2031 def __init__(self, *args):
2033 __init__(_HistogramCountsGrid3D self, IMP::Ints const counts, BoundingBox3D bb, double default_value=double()) -> _HistogramCountsGrid3D
2034 __init__(_HistogramCountsGrid3D self, double side, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2035 __init__(_HistogramCountsGrid3D self, Vector3D sides, BoundingBox3D bb, double const & default_value=double()) -> _HistogramCountsGrid3D
2036 __init__(_HistogramCountsGrid3D self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2037 __init__(_HistogramCountsGrid3D self, double side, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2038 __init__(_HistogramCountsGrid3D self, Vector3D sides, Vector3D origin, double const & default_value=double()) -> _HistogramCountsGrid3D
2039 __init__(_HistogramCountsGrid3D self) -> _HistogramCountsGrid3D
2041 _IMP_statistics._HistogramCountsGrid3D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid3D(*args))
2043 def show(self, *args):
2044 r"""show(_HistogramCountsGrid3D self, _ostream out=std::cout)"""
2045 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2047 def __getitem__(self, *args):
2049 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2050 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2052 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2054 def __setitem__(self, *args):
2056 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2057 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2059 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2061 def add_voxel(self, pt, vt):
2062 r"""add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2063 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2065 def get_extended_index(self, index):
2066 r"""get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2067 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2069 def get_bounding_box(self, *args):
2071 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2072 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2073 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2075 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2077 def set_bounding_box(self, bb3):
2078 r"""set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2079 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2081 def get_nearest_index(self, pt):
2082 r"""get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2083 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2085 def get_nearest_extended_index(self, pt):
2086 r"""get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2087 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2088 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2091 _IMP_statistics._HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2092 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2093 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,int > class."""
2095 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2096 __repr__ = _swig_repr
2098 def __setitem__(self, *args):
2100 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2101 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2103 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2105 def __getitem__(self, *args):
2107 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2108 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2110 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2112 def __init__(self, *args):
2114 __init__(_IntDenseGridStorage4D self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2115 __init__(_IntDenseGridStorage4D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage4D
2116 __init__(_IntDenseGridStorage4D self, int const & default_value=int()) -> _IntDenseGridStorage4D
2118 _IMP_statistics._IntDenseGridStorage4D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage4D(*args))
2122 r"""get_is_dense() -> bool"""
2123 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2125 def show(self, *args):
2126 r"""show(_IntDenseGridStorage4D self, _ostream out=std::cout)"""
2127 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2129 def add_voxel(self, arg2, arg3):
2130 r"""add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2131 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2133 def get_all_voxels(self):
2134 r"""get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2135 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2136 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2139 _IMP_statistics._IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2140 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2141 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 4,double > class."""
2143 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2144 __repr__ = _swig_repr
2146 def __setitem__(self, *args):
2148 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2149 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2151 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2153 def __getitem__(self, *args):
2155 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2156 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2158 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2160 def __init__(self, *args):
2162 __init__(_FloatDenseGridStorage4D self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2163 __init__(_FloatDenseGridStorage4D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage4D
2164 __init__(_FloatDenseGridStorage4D self, double const & default_value=double()) -> _FloatDenseGridStorage4D
2166 _IMP_statistics._FloatDenseGridStorage4D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage4D(*args))
2170 r"""get_is_dense() -> bool"""
2171 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2173 def show(self, *args):
2174 r"""show(_FloatDenseGridStorage4D self, _ostream out=std::cout)"""
2175 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2177 def add_voxel(self, arg2, arg3):
2178 r"""add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2179 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2181 def get_all_voxels(self):
2182 r"""get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2183 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2184 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2187 _IMP_statistics._FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2188 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP._GeometricPrimitive4D):
2189 r"""Proxy of C++ IMP::algebra::GridD< 4,IMP::algebra::DenseGridStorageD< 4,double >,double,IMP::algebra::DefaultEmbeddingD< 4 > > class."""
2191 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2192 __repr__ = _swig_repr
2194 def __init__(self, *args):
2196 __init__(_HistogramCountsGrid4D self, IMP::Ints const counts, BoundingBox4D bb, double default_value=double()) -> _HistogramCountsGrid4D
2197 __init__(_HistogramCountsGrid4D self, double side, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2198 __init__(_HistogramCountsGrid4D self, Vector4D sides, BoundingBox4D bb, double const & default_value=double()) -> _HistogramCountsGrid4D
2199 __init__(_HistogramCountsGrid4D self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2200 __init__(_HistogramCountsGrid4D self, double side, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2201 __init__(_HistogramCountsGrid4D self, Vector4D sides, Vector4D origin, double const & default_value=double()) -> _HistogramCountsGrid4D
2202 __init__(_HistogramCountsGrid4D self) -> _HistogramCountsGrid4D
2204 _IMP_statistics._HistogramCountsGrid4D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid4D(*args))
2206 def show(self, *args):
2207 r"""show(_HistogramCountsGrid4D self, _ostream out=std::cout)"""
2208 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2210 def __getitem__(self, *args):
2212 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2213 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2215 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2217 def __setitem__(self, *args):
2219 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2220 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2222 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2224 def add_voxel(self, pt, vt):
2225 r"""add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2226 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2228 def get_extended_index(self, index):
2229 r"""get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2230 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2232 def get_bounding_box(self, *args):
2234 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2235 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2236 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2238 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2240 def set_bounding_box(self, bb3):
2241 r"""set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2242 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2244 def get_nearest_index(self, pt):
2245 r"""get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2246 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2248 def get_nearest_extended_index(self, pt):
2249 r"""get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2250 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2251 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2254 _IMP_statistics._HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2255 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2256 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,int > class."""
2258 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2259 __repr__ = _swig_repr
2261 def __setitem__(self, *args):
2263 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2264 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2266 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2268 def __getitem__(self, *args):
2270 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2271 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2273 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2275 def __init__(self, *args):
2277 __init__(_IntDenseGridStorage5D self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2278 __init__(_IntDenseGridStorage5D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage5D
2279 __init__(_IntDenseGridStorage5D self, int const & default_value=int()) -> _IntDenseGridStorage5D
2281 _IMP_statistics._IntDenseGridStorage5D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage5D(*args))
2285 r"""get_is_dense() -> bool"""
2286 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2288 def show(self, *args):
2289 r"""show(_IntDenseGridStorage5D self, _ostream out=std::cout)"""
2290 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2292 def add_voxel(self, arg2, arg3):
2293 r"""add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2294 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2296 def get_all_voxels(self):
2297 r"""get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2298 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
2299 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
2302 _IMP_statistics._IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
2303 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2304 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 5,double > class."""
2306 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2307 __repr__ = _swig_repr
2309 def __setitem__(self, *args):
2311 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
2312 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
2314 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
2316 def __getitem__(self, *args):
2318 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
2319 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
2321 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
2323 def __init__(self, *args):
2325 __init__(_FloatDenseGridStorage5D self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
2326 __init__(_FloatDenseGridStorage5D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage5D
2327 __init__(_FloatDenseGridStorage5D self, double const & default_value=double()) -> _FloatDenseGridStorage5D
2329 _IMP_statistics._FloatDenseGridStorage5D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage5D(*args))
2333 r"""get_is_dense() -> bool"""
2334 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
2336 def show(self, *args):
2337 r"""show(_FloatDenseGridStorage5D self, _ostream out=std::cout)"""
2338 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
2340 def add_voxel(self, arg2, arg3):
2341 r"""add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
2342 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
2344 def get_all_voxels(self):
2345 r"""get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
2346 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
2347 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
2350 _IMP_statistics._FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
2351 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP._GeometricPrimitive5D):
2352 r"""Proxy of C++ IMP::algebra::GridD< 5,IMP::algebra::DenseGridStorageD< 5,double >,double,IMP::algebra::DefaultEmbeddingD< 5 > > class."""
2354 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2355 __repr__ = _swig_repr
2357 def __init__(self, *args):
2359 __init__(_HistogramCountsGrid5D self, IMP::Ints const counts, BoundingBox5D bb, double default_value=double()) -> _HistogramCountsGrid5D
2360 __init__(_HistogramCountsGrid5D self, double side, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2361 __init__(_HistogramCountsGrid5D self, Vector5D sides, BoundingBox5D bb, double const & default_value=double()) -> _HistogramCountsGrid5D
2362 __init__(_HistogramCountsGrid5D self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
2363 __init__(_HistogramCountsGrid5D self, double side, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2364 __init__(_HistogramCountsGrid5D self, Vector5D sides, Vector5D origin, double const & default_value=double()) -> _HistogramCountsGrid5D
2365 __init__(_HistogramCountsGrid5D self) -> _HistogramCountsGrid5D
2367 _IMP_statistics._HistogramCountsGrid5D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid5D(*args))
2369 def show(self, *args):
2370 r"""show(_HistogramCountsGrid5D self, _ostream out=std::cout)"""
2371 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
2373 def __getitem__(self, *args):
2375 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
2376 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
2378 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
2380 def __setitem__(self, *args):
2382 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
2383 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
2385 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
2387 def add_voxel(self, pt, vt):
2388 r"""add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
2389 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
2391 def get_extended_index(self, index):
2392 r"""get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
2393 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
2395 def get_bounding_box(self, *args):
2397 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
2398 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
2399 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
2401 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
2403 def set_bounding_box(self, bb3):
2404 r"""set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
2405 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
2407 def get_nearest_index(self, pt):
2408 r"""get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
2409 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
2411 def get_nearest_extended_index(self, pt):
2412 r"""get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
2413 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
2414 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
2417 _IMP_statistics._HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
2418 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2419 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,int > class."""
2421 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2422 __repr__ = _swig_repr
2424 def __setitem__(self, *args):
2426 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
2427 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
2429 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
2431 def __getitem__(self, *args):
2433 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
2434 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
2436 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
2438 def __init__(self, *args):
2440 __init__(_IntDenseGridStorage6D self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
2441 __init__(_IntDenseGridStorage6D self, IMP::Ints const & counts, int const & default_value=int()) -> _IntDenseGridStorage6D
2442 __init__(_IntDenseGridStorage6D self, int const & default_value=int()) -> _IntDenseGridStorage6D
2444 _IMP_statistics._IntDenseGridStorage6D_swiginit(self, _IMP_statistics.new__IntDenseGridStorage6D(*args))
2448 r"""get_is_dense() -> bool"""
2449 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
2451 def show(self, *args):
2452 r"""show(_IntDenseGridStorage6D self, _ostream out=std::cout)"""
2453 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
2455 def add_voxel(self, arg2, arg3):
2456 r"""add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
2457 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
2459 def get_all_voxels(self):
2460 r"""get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
2461 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
2462 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
2465 _IMP_statistics._IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
2466 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
2467 r"""Proxy of C++ IMP::algebra::DenseGridStorageD< 6,double > class."""
2469 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2470 __repr__ = _swig_repr
2472 def __setitem__(self, *args):
2474 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
2475 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
2477 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
2479 def __getitem__(self, *args):
2481 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
2482 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
2484 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
2486 def __init__(self, *args):
2488 __init__(_FloatDenseGridStorage6D self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
2489 __init__(_FloatDenseGridStorage6D self, IMP::Ints const & counts, double const & default_value=double()) -> _FloatDenseGridStorage6D
2490 __init__(_FloatDenseGridStorage6D self, double const & default_value=double()) -> _FloatDenseGridStorage6D
2492 _IMP_statistics._FloatDenseGridStorage6D_swiginit(self, _IMP_statistics.new__FloatDenseGridStorage6D(*args))
2496 r"""get_is_dense() -> bool"""
2497 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
2499 def show(self, *args):
2500 r"""show(_FloatDenseGridStorage6D self, _ostream out=std::cout)"""
2501 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
2503 def add_voxel(self, arg2, arg3):
2504 r"""add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
2505 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
2507 def get_all_voxels(self):
2508 r"""get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
2509 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
2510 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
2513 _IMP_statistics._FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
2514 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP._GeometricPrimitive6D):
2515 r"""Proxy of C++ IMP::algebra::GridD< 6,IMP::algebra::DenseGridStorageD< 6,double >,double,IMP::algebra::DefaultEmbeddingD< 6 > > class."""
2517 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2518 __repr__ = _swig_repr
2520 def __init__(self, *args):
2522 __init__(_HistogramCountsGrid6D self, IMP::Ints const counts, BoundingBox6D bb, double default_value=double()) -> _HistogramCountsGrid6D
2523 __init__(_HistogramCountsGrid6D self, double side, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2524 __init__(_HistogramCountsGrid6D self, Vector6D sides, BoundingBox6D bb, double const & default_value=double()) -> _HistogramCountsGrid6D
2525 __init__(_HistogramCountsGrid6D self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
2526 __init__(_HistogramCountsGrid6D self, double side, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2527 __init__(_HistogramCountsGrid6D self, Vector6D sides, Vector6D origin, double const & default_value=double()) -> _HistogramCountsGrid6D
2528 __init__(_HistogramCountsGrid6D self) -> _HistogramCountsGrid6D
2530 _IMP_statistics._HistogramCountsGrid6D_swiginit(self, _IMP_statistics.new__HistogramCountsGrid6D(*args))
2532 def show(self, *args):
2533 r"""show(_HistogramCountsGrid6D self, _ostream out=std::cout)"""
2534 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
2536 def __getitem__(self, *args):
2538 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
2539 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
2541 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
2543 def __setitem__(self, *args):
2545 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
2546 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
2548 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
2550 def add_voxel(self, pt, vt):
2551 r"""add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
2552 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
2554 def get_extended_index(self, index):
2555 r"""get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
2556 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
2558 def get_bounding_box(self, *args):
2560 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
2561 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
2562 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
2564 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
2566 def set_bounding_box(self, bb3):
2567 r"""set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
2568 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
2570 def get_nearest_index(self, pt):
2571 r"""get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
2572 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
2574 def get_nearest_extended_index(self, pt):
2575 r"""get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
2576 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
2577 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
2580 _IMP_statistics._HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
2582 from .
import _histogram
2583 show_histogram= _histogram.show_histogram
2587 r"""get_module_name() -> std::string const"""
2588 return _IMP_statistics.get_module_name()
2591 r"""get_module_version() -> std::string const"""
2592 return _IMP_statistics.get_module_version()
2595 r"""get_example_path(std::string fname) -> std::string"""
2596 return _IMP_statistics.get_example_path(fname)
2599 r"""get_data_path(std::string fname) -> std::string"""
2600 return _IMP_statistics.get_data_path(fname)
2602 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)
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.
double get_mean(const DoubleMatrix &mat, const IntMatrix &mask)
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)