10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17 def swig_import_helper():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_statistics')).lstrip(
'.')
22 return importlib.import_module(mname)
24 return importlib.import_module(
'_IMP_statistics')
25 _IMP_statistics = swig_import_helper()
26 del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28 def swig_import_helper():
29 from os.path
import dirname
33 fp, pathname, description = imp.find_module(
'_IMP_statistics', [dirname(__file__)])
35 import _IMP_statistics
36 return _IMP_statistics
39 _mod = imp.load_module(
'_IMP_statistics', fp, pathname, description)
43 _IMP_statistics = swig_import_helper()
44 del swig_import_helper
46 import _IMP_statistics
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
78 def _swig_getattr(self, class_type, name):
79 if (name ==
"thisown"):
80 return self.this.own()
81 method = class_type.__swig_getmethods__.get(name,
None)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110 weakref_proxy =
lambda x: x
113 class IMP_STATISTICS_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
126 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
131 incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
132 incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
134 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
139 decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
140 decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
142 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
151 """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
152 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
156 """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
157 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
161 """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
162 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
166 """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
167 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
171 """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
172 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
177 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
182 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
187 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
192 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
197 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
202 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
208 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
214 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
215 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
223 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
224 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
225 IMP_SILENT = _IMP_statistics.IMP_SILENT
226 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
227 IMP_TERSE = _IMP_statistics.IMP_TERSE
228 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
229 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
230 IMP_NONE = _IMP_statistics.IMP_NONE
231 IMP_USAGE = _IMP_statistics.IMP_USAGE
232 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_statistics.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
245 class _DirectorObjects(object):
246 """@internal Simple class to keep references to director objects
247 to prevent premature deletion."""
250 def register(self, obj):
251 """Take a reference to a director object; will only work for
252 refcounted C++ classes"""
253 if hasattr(obj,
'get_ref_count'):
254 self._objects.append(obj)
256 """Only drop our reference and allow cleanup by Python if no other
257 Python references exist (we hold 3 references: one in self._objects,
258 one in x, and one in the argument list for getrefcount) *and* no
259 other C++ references exist (the Python object always holds one)"""
260 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
261 or x.get_ref_count() > 1]
265 def get_object_count(self):
266 """Get number of director objects (useful for testing only)"""
267 return len(self._objects)
268 _director_objects = _DirectorObjects()
270 class _ostream(object):
271 """Proxy of C++ std::ostream class."""
273 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
275 def __init__(self, *args, **kwargs):
276 raise AttributeError(
"No constructor defined")
277 __repr__ = _swig_repr
279 def write(self, osa_buf):
280 """write(_ostream self, char const * osa_buf)"""
281 return _IMP_statistics._ostream_write(self, osa_buf)
283 _ostream_swigregister = _IMP_statistics._ostream_swigregister
284 _ostream_swigregister(_ostream)
286 IMP_COMPILER_HAS_OVERRIDE = _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE
287 IMP_COMPILER_HAS_FINAL = _IMP_statistics.IMP_COMPILER_HAS_FINAL
288 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
289 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
291 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
292 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
293 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
294 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
295 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
296 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
298 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
299 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
300 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
301 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
302 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
303 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
304 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
305 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
306 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
308 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
309 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
310 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
311 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
312 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
313 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
314 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
315 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
318 _plural_types.append(
"Histogram1Ds")
319 _value_types.append(
"Histogram1D")
323 _plural_types.append(
"Histogram2Ds")
324 _value_types.append(
"Histogram2D")
328 _plural_types.append(
"Histogram3Ds")
329 _value_types.append(
"Histogram3D")
333 _plural_types.append(
"Histogram4Ds")
334 _value_types.append(
"Histogram4D")
338 _plural_types.append(
"Histogram5Ds")
339 _value_types.append(
"Histogram5D")
343 _plural_types.append(
"Histogram6Ds")
344 _value_types.append(
"Histogram6D")
348 _plural_types.append(
"Histogram1Ds")
349 _value_types.append(
"HistogramD<1>")
353 _plural_types.append(
"Histogram2Ds")
354 _value_types.append(
"HistogramD<2>")
358 _plural_types.append(
"Histogram3Ds")
359 _value_types.append(
"HistogramD<3>")
363 _plural_types.append(
"Histogram4Ds")
364 _value_types.append(
"HistogramD<4>")
368 _plural_types.append(
"Histogram5Ds")
369 _value_types.append(
"HistogramD<5>")
373 _plural_types.append(
"Histogram6Ds")
374 _value_types.append(
"HistogramD<6>")
378 _plural_types.append(
"HistogramKDs")
379 _value_types.append(
"HistogramKD")
383 _plural_types.append(
"HistogramKDs")
384 _value_types.append(
"HistogramD<-1>")
387 _object_types.append(
"PartitionalClustering")
390 def _object_cast_to_PartitionalClustering(o):
391 """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
392 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
394 _object_types.append(
"PartitionalClusteringWithCenter")
397 def _object_cast_to_PartitionalClusteringWithCenter(o):
398 """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
399 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
401 _object_types.append(
"Embedding")
404 def _object_cast_to_Embedding(o):
405 """_object_cast_to_Embedding(Object o) -> Embedding"""
406 return _IMP_statistics._object_cast_to_Embedding(o)
408 _object_types.append(
"ConfigurationSetXYZEmbedding")
411 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
412 """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
413 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
415 _object_types.append(
"VectorDEmbedding")
418 def _object_cast_to_VectorDEmbedding(o):
419 """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
420 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
422 _object_types.append(
"ParticleEmbedding")
425 def _object_cast_to_ParticleEmbedding(o):
426 """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
427 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
429 _object_types.append(
"Metric")
432 def _object_cast_to_Metric(o):
433 """_object_cast_to_Metric(Object o) -> Metric"""
434 return _IMP_statistics._object_cast_to_Metric(o)
436 _object_types.append(
"EuclideanMetric")
439 def _object_cast_to_EuclideanMetric(o):
440 """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
441 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
443 _object_types.append(
"ConfigurationSetRMSDMetric")
446 def _object_cast_to_ConfigurationSetRMSDMetric(o):
447 """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
448 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
450 _object_types.append(
"RecursivePartitionalClusteringMetric")
453 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
454 """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
455 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
457 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
460 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
461 """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
462 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
464 _object_types.append(
"ChiSquareMetric")
467 def _object_cast_to_ChiSquareMetric(o):
468 """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
469 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
471 """Proxy of C++ IMP::statistics::PartitionalClustering class."""
473 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
475 def __init__(self, *args, **kwargs):
476 raise AttributeError(
"No constructor defined - class is abstract")
478 def get_number_of_clusters(self):
479 """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
480 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
483 def get_cluster(self, cluster_index):
484 """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
485 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
488 def get_cluster_representative(self, cluster_index):
489 """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
490 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
492 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
493 __del__ =
lambda self:
None
496 """__str__(PartitionalClustering self) -> std::string"""
497 return _IMP_statistics.PartitionalClustering___str__(self)
501 """__repr__(PartitionalClustering self) -> std::string"""
502 return _IMP_statistics.PartitionalClustering___repr__(self)
507 return _object_cast_to_PartitionalClustering(o)
509 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
510 PartitionalClustering_swigregister(PartitionalClustering)
514 """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
515 return _IMP_statistics.validate_partitional_clustering(pc, n)
517 """Proxy of C++ IMP::statistics::Embedding class."""
519 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
521 def __init__(self, name):
522 """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
523 if self.__class__ == Embedding:
527 this = _IMP_statistics.new_Embedding(_self, name)
529 self.this.append(this)
530 except __builtin__.Exception:
533 if self.__class__ != Embedding:
534 _director_objects.register(self)
539 def do_get_weight(self, i):
540 """do_get_weight(Embedding self, unsigned int i) -> double"""
541 return _IMP_statistics.Embedding_do_get_weight(self, i)
544 def get_point(self, i):
545 """get_point(Embedding self, unsigned int i) -> VectorKD"""
546 return _IMP_statistics.Embedding_get_point(self, i)
549 def get_number_of_items(self):
550 """get_number_of_items(Embedding self) -> unsigned int"""
551 return _IMP_statistics.Embedding_get_number_of_items(self)
554 def get_weight(self, i):
555 """get_weight(Embedding self, unsigned int i) -> double"""
556 return _IMP_statistics.Embedding_get_weight(self, i)
559 def get_points(self):
560 """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
561 return _IMP_statistics.Embedding_get_points(self)
565 """__str__(Embedding self) -> std::string"""
566 return _IMP_statistics.Embedding___str__(self)
570 """__repr__(Embedding self) -> std::string"""
571 return _IMP_statistics.Embedding___repr__(self)
576 return _object_cast_to_Embedding(o)
579 def get_type_name(self):
580 return self.__class__.__name__
581 def do_show(self, out):
583 def get_version_info(self):
584 if"IMP::statistics" ==
"IMP":
585 return VersionInfo(self.__module__,
592 return _object_cast_to_Embedding(o)
594 __swig_destroy__ = _IMP_statistics.delete_Embedding
595 __del__ =
lambda self:
None
596 def __disown__(self):
598 _IMP_statistics.disown_Embedding(self)
599 return weakref_proxy(self)
601 def do_destroy(self):
602 """do_destroy(Embedding self)"""
603 return _IMP_statistics.Embedding_do_destroy(self)
605 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
606 Embedding_swigregister(Embedding)
609 """Proxy of C++ IMP::statistics::Metric class."""
611 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
613 def __init__(self, name):
614 """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
615 if self.__class__ == Metric:
619 this = _IMP_statistics.new_Metric(_self, name)
621 self.this.append(this)
622 except __builtin__.Exception:
625 if self.__class__ != Metric:
626 _director_objects.register(self)
631 def do_get_weight(self, i):
632 """do_get_weight(Metric self, unsigned int i) -> double"""
633 return _IMP_statistics.Metric_do_get_weight(self, i)
637 """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
638 return _IMP_statistics.Metric_get_distance(self, i, j)
641 def get_weight(self, i):
642 """get_weight(Metric self, unsigned int i) -> double"""
643 return _IMP_statistics.Metric_get_weight(self, i)
646 def get_number_of_items(self):
647 """get_number_of_items(Metric self) -> unsigned int"""
648 return _IMP_statistics.Metric_get_number_of_items(self)
650 __swig_destroy__ = _IMP_statistics.delete_Metric
651 __del__ =
lambda self:
None
654 """__str__(Metric self) -> std::string"""
655 return _IMP_statistics.Metric___str__(self)
659 """__repr__(Metric self) -> std::string"""
660 return _IMP_statistics.Metric___repr__(self)
665 return _object_cast_to_Metric(o)
668 def get_type_name(self):
669 return self.__class__.__name__
670 def do_show(self, out):
672 def get_version_info(self):
673 if"IMP::statistics" ==
"IMP":
674 return VersionInfo(self.__module__,
681 return _object_cast_to_Metric(o)
683 def __disown__(self):
685 _IMP_statistics.disown_Metric(self)
686 return weakref_proxy(self)
688 def do_destroy(self):
689 """do_destroy(Metric self)"""
690 return _IMP_statistics.Metric_do_destroy(self)
692 Metric_swigregister = _IMP_statistics.Metric_swigregister
693 Metric_swigregister(Metric)
695 class ChiSquareMetric(Metric):
696 """Proxy of C++ IMP::statistics::ChiSquareMetric class."""
698 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
700 def __init__(self, data_exp, constr_type=0):
702 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
703 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
705 this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
707 self.this.append(this)
708 except __builtin__.Exception:
711 def add_configuration(self, data, stddev, weight=1.0):
713 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
714 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
716 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
719 def get_data(self, i):
720 """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
721 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
724 def get_standard_deviation(self, i):
725 """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
726 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
729 def do_get_weight(self, i):
730 """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
731 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
734 def get_chi_square_experimental(self, i):
735 """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
736 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
739 def get_version_info(self):
740 """get_version_info(ChiSquareMetric self) -> VersionInfo"""
741 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
745 """__str__(ChiSquareMetric self) -> std::string"""
746 return _IMP_statistics.ChiSquareMetric___str__(self)
750 """__repr__(ChiSquareMetric self) -> std::string"""
751 return _IMP_statistics.ChiSquareMetric___repr__(self)
756 return _object_cast_to_ChiSquareMetric(o)
758 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
759 ChiSquareMetric_swigregister(ChiSquareMetric)
761 class PartitionalClusteringWithCenter(PartitionalClustering):
762 """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
764 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
766 def __init__(self, *args, **kwargs):
767 raise AttributeError(
"No constructor defined")
769 def get_cluster_center(self, i):
770 """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
771 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
774 def get_version_info(self):
775 """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
776 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
780 """__str__(PartitionalClusteringWithCenter self) -> std::string"""
781 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
785 """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
786 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
791 return _object_cast_to_PartitionalClusteringWithCenter(o)
793 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
794 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
796 class ConfigurationSetXYZEmbedding(Embedding):
797 """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
799 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
801 def __init__(self, cs, pi, align=False):
803 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
804 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
806 this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
808 self.this.append(this)
809 except __builtin__.Exception:
812 def get_version_info(self):
813 """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
814 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
818 """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
819 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
823 """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
824 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
829 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
831 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
832 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
834 class ParticleEmbedding(Embedding):
835 """Proxy of C++ IMP::statistics::ParticleEmbedding class."""
837 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
839 def __init__(self, *args):
841 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
842 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
843 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
845 this = _IMP_statistics.new_ParticleEmbedding(*args)
847 self.this.append(this)
848 except __builtin__.Exception:
851 def get_version_info(self):
852 """get_version_info(ParticleEmbedding self) -> VersionInfo"""
853 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
857 """__str__(ParticleEmbedding self) -> std::string"""
858 return _IMP_statistics.ParticleEmbedding___str__(self)
862 """__repr__(ParticleEmbedding self) -> std::string"""
863 return _IMP_statistics.ParticleEmbedding___repr__(self)
868 return _object_cast_to_ParticleEmbedding(o)
870 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
871 ParticleEmbedding_swigregister(ParticleEmbedding)
873 class VectorDEmbedding(Embedding):
874 """Proxy of C++ IMP::statistics::VectorDEmbedding class."""
876 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
878 def __init__(self, *args):
880 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
881 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
882 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
883 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
884 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
885 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
887 this = _IMP_statistics.new_VectorDEmbedding(*args)
889 self.this.append(this)
890 except __builtin__.Exception:
893 def get_version_info(self):
894 """get_version_info(VectorDEmbedding self) -> VersionInfo"""
895 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
899 """__str__(VectorDEmbedding self) -> std::string"""
900 return _IMP_statistics.VectorDEmbedding___str__(self)
904 """__repr__(VectorDEmbedding self) -> std::string"""
905 return _IMP_statistics.VectorDEmbedding___repr__(self)
910 return _object_cast_to_VectorDEmbedding(o)
912 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
913 VectorDEmbedding_swigregister(VectorDEmbedding)
915 class EuclideanMetric(Metric):
916 """Proxy of C++ IMP::statistics::EuclideanMetric class."""
918 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
920 def __init__(self, em):
921 """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
922 this = _IMP_statistics.new_EuclideanMetric(em)
924 self.this.append(this)
925 except __builtin__.Exception:
928 def get_version_info(self):
929 """get_version_info(EuclideanMetric self) -> VersionInfo"""
930 return _IMP_statistics.EuclideanMetric_get_version_info(self)
934 """__str__(EuclideanMetric self) -> std::string"""
935 return _IMP_statistics.EuclideanMetric___str__(self)
939 """__repr__(EuclideanMetric self) -> std::string"""
940 return _IMP_statistics.EuclideanMetric___repr__(self)
945 return _object_cast_to_EuclideanMetric(o)
947 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
948 EuclideanMetric_swigregister(EuclideanMetric)
950 class ConfigurationSetRMSDMetric(Metric):
951 """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
953 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
955 def __init__(self, cs, sc, align=False):
957 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
958 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
960 this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
962 self.this.append(this)
963 except __builtin__.Exception:
966 def get_version_info(self):
967 """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
968 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
972 """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
973 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
977 """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
978 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
983 return _object_cast_to_ConfigurationSetRMSDMetric(o)
985 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
986 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
990 """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
991 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
994 """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
995 return _IMP_statistics.create_bin_based_clustering(embed, side)
999 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1000 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1002 return _IMP_statistics.create_centrality_clustering(*args)
1005 """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1006 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1010 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1011 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1013 return _IMP_statistics.create_connectivity_clustering(*args)
1015 def create_gromos_clustering(d, cutoff):
1016 """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1017 return _IMP_statistics.create_gromos_clustering(d, cutoff)
1020 """get_quantile(Histogram1D h, double fraction) -> double"""
1021 return _IMP_statistics.get_quantile(h, fraction)
1024 """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1025 return _IMP_statistics.get_centroids(d, pc)
1028 """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1029 return _IMP_statistics.get_representatives(d, pc)
1030 class RecursivePartitionalClusteringEmbedding(Embedding):
1031 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
1033 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1035 def __init__(self, metric, clustering):
1036 """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1037 this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1039 self.this.append(this)
1040 except __builtin__.Exception:
1043 def create_full_clustering(self, center_cluster):
1044 """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1045 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1048 def get_version_info(self):
1049 """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1050 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1054 """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1055 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1059 """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1060 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1065 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1067 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1068 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1070 class RecursivePartitionalClusteringMetric(Metric):
1071 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
1073 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1075 def __init__(self, metric, clustering):
1076 """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1077 this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1079 self.this.append(this)
1080 except __builtin__.Exception:
1083 def create_full_clustering(self, center_cluster):
1084 """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1085 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1088 def get_version_info(self):
1089 """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1090 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1094 """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1095 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1099 """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1100 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1105 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1107 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1108 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1110 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1111 """Proxy of C++ IMP::statistics::HistogramD<(1)> class."""
1113 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1115 def __init__(self, *args):
1117 __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1118 __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1120 this = _IMP_statistics.new_Histogram1D(*args)
1122 self.this.append(this)
1123 except __builtin__.Exception:
1126 def add(self, x, weight=1):
1128 add(Histogram1D self, Vector1D x, double weight=1)
1129 add(Histogram1D self, Vector1D x)
1131 return _IMP_statistics.Histogram1D_add(self, x, weight)
1134 def get_total_count(self):
1135 """get_total_count(Histogram1D self) -> double"""
1136 return _IMP_statistics.Histogram1D_get_total_count(self)
1139 def get_frequencies(self):
1140 """get_frequencies(Histogram1D self) -> Histogram1D"""
1141 return _IMP_statistics.Histogram1D_get_frequencies(self)
1144 def get_probability_distribution_function(self):
1145 """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1146 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1149 def get_counts(self):
1150 """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1151 return _IMP_statistics.Histogram1D_get_counts(self)
1155 """get_mean(Histogram1D self) -> Vector1D"""
1156 return _IMP_statistics.Histogram1D_get_mean(self)
1159 def get_dimension(self):
1160 """get_dimension(Histogram1D self) -> unsigned int"""
1161 return _IMP_statistics.Histogram1D_get_dimension(self)
1164 def get_standard_deviation(self, mean):
1165 """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1166 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1169 def get_bounding_box(self):
1170 """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1171 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1174 def get_minimum_and_maximum(self):
1175 """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1176 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1179 def show(self, *args):
1181 show(Histogram1D self, _ostream out)
1182 show(Histogram1D self)
1184 return _IMP_statistics.Histogram1D_show(self, *args)
1188 """__str__(Histogram1D self) -> std::string"""
1189 return _IMP_statistics.Histogram1D___str__(self)
1193 """__repr__(Histogram1D self) -> std::string"""
1194 return _IMP_statistics.Histogram1D___repr__(self)
1197 def __cmp__(self, arg2):
1198 """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1199 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1202 def __eq__(self, arg2):
1203 """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1204 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1206 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1207 __del__ =
lambda self:
None
1208 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1209 Histogram1D_swigregister(Histogram1D)
1211 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1212 """Proxy of C++ IMP::statistics::HistogramD<(2)> class."""
1214 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1216 def __init__(self, *args):
1218 __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1219 __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1221 this = _IMP_statistics.new_Histogram2D(*args)
1223 self.this.append(this)
1224 except __builtin__.Exception:
1227 def add(self, x, weight=1):
1229 add(Histogram2D self, Vector2D x, double weight=1)
1230 add(Histogram2D self, Vector2D x)
1232 return _IMP_statistics.Histogram2D_add(self, x, weight)
1235 def get_total_count(self):
1236 """get_total_count(Histogram2D self) -> double"""
1237 return _IMP_statistics.Histogram2D_get_total_count(self)
1240 def get_frequencies(self):
1241 """get_frequencies(Histogram2D self) -> Histogram2D"""
1242 return _IMP_statistics.Histogram2D_get_frequencies(self)
1245 def get_probability_distribution_function(self):
1246 """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1247 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1250 def get_counts(self):
1251 """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1252 return _IMP_statistics.Histogram2D_get_counts(self)
1256 """get_mean(Histogram2D self) -> Vector2D"""
1257 return _IMP_statistics.Histogram2D_get_mean(self)
1260 def get_dimension(self):
1261 """get_dimension(Histogram2D self) -> unsigned int"""
1262 return _IMP_statistics.Histogram2D_get_dimension(self)
1265 def get_standard_deviation(self, mean):
1266 """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1267 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1270 def get_bounding_box(self):
1271 """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1272 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1275 def get_minimum_and_maximum(self):
1276 """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1277 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1280 def show(self, *args):
1282 show(Histogram2D self, _ostream out)
1283 show(Histogram2D self)
1285 return _IMP_statistics.Histogram2D_show(self, *args)
1289 """__str__(Histogram2D self) -> std::string"""
1290 return _IMP_statistics.Histogram2D___str__(self)
1294 """__repr__(Histogram2D self) -> std::string"""
1295 return _IMP_statistics.Histogram2D___repr__(self)
1298 def __cmp__(self, arg2):
1299 """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1300 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1303 def __eq__(self, arg2):
1304 """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1305 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1307 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1308 __del__ =
lambda self:
None
1309 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1310 Histogram2D_swigregister(Histogram2D)
1312 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1313 """Proxy of C++ IMP::statistics::HistogramD<(3)> class."""
1315 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1317 def __init__(self, *args):
1319 __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1320 __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1322 this = _IMP_statistics.new_Histogram3D(*args)
1324 self.this.append(this)
1325 except __builtin__.Exception:
1328 def add(self, x, weight=1):
1330 add(Histogram3D self, Vector3D x, double weight=1)
1331 add(Histogram3D self, Vector3D x)
1333 return _IMP_statistics.Histogram3D_add(self, x, weight)
1336 def get_total_count(self):
1337 """get_total_count(Histogram3D self) -> double"""
1338 return _IMP_statistics.Histogram3D_get_total_count(self)
1341 def get_frequencies(self):
1342 """get_frequencies(Histogram3D self) -> Histogram3D"""
1343 return _IMP_statistics.Histogram3D_get_frequencies(self)
1346 def get_probability_distribution_function(self):
1347 """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1348 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1351 def get_counts(self):
1352 """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1353 return _IMP_statistics.Histogram3D_get_counts(self)
1357 """get_mean(Histogram3D self) -> Vector3D"""
1358 return _IMP_statistics.Histogram3D_get_mean(self)
1361 def get_dimension(self):
1362 """get_dimension(Histogram3D self) -> unsigned int"""
1363 return _IMP_statistics.Histogram3D_get_dimension(self)
1366 def get_standard_deviation(self, mean):
1367 """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1368 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1371 def get_bounding_box(self):
1372 """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1373 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1376 def get_minimum_and_maximum(self):
1377 """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1378 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1381 def show(self, *args):
1383 show(Histogram3D self, _ostream out)
1384 show(Histogram3D self)
1386 return _IMP_statistics.Histogram3D_show(self, *args)
1390 """__str__(Histogram3D self) -> std::string"""
1391 return _IMP_statistics.Histogram3D___str__(self)
1395 """__repr__(Histogram3D self) -> std::string"""
1396 return _IMP_statistics.Histogram3D___repr__(self)
1399 def __cmp__(self, arg2):
1400 """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1401 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1404 def __eq__(self, arg2):
1405 """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1406 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1408 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1409 __del__ =
lambda self:
None
1410 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1411 Histogram3D_swigregister(Histogram3D)
1413 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1414 """Proxy of C++ IMP::statistics::HistogramD<(4)> class."""
1416 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1418 def __init__(self, *args):
1420 __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1421 __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1423 this = _IMP_statistics.new_Histogram4D(*args)
1425 self.this.append(this)
1426 except __builtin__.Exception:
1429 def add(self, x, weight=1):
1431 add(Histogram4D self, Vector4D x, double weight=1)
1432 add(Histogram4D self, Vector4D x)
1434 return _IMP_statistics.Histogram4D_add(self, x, weight)
1437 def get_total_count(self):
1438 """get_total_count(Histogram4D self) -> double"""
1439 return _IMP_statistics.Histogram4D_get_total_count(self)
1442 def get_frequencies(self):
1443 """get_frequencies(Histogram4D self) -> Histogram4D"""
1444 return _IMP_statistics.Histogram4D_get_frequencies(self)
1447 def get_probability_distribution_function(self):
1448 """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1449 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1452 def get_counts(self):
1453 """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1454 return _IMP_statistics.Histogram4D_get_counts(self)
1458 """get_mean(Histogram4D self) -> Vector4D"""
1459 return _IMP_statistics.Histogram4D_get_mean(self)
1462 def get_dimension(self):
1463 """get_dimension(Histogram4D self) -> unsigned int"""
1464 return _IMP_statistics.Histogram4D_get_dimension(self)
1467 def get_standard_deviation(self, mean):
1468 """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1469 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1472 def get_bounding_box(self):
1473 """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1474 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1477 def get_minimum_and_maximum(self):
1478 """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1479 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1482 def show(self, *args):
1484 show(Histogram4D self, _ostream out)
1485 show(Histogram4D self)
1487 return _IMP_statistics.Histogram4D_show(self, *args)
1491 """__str__(Histogram4D self) -> std::string"""
1492 return _IMP_statistics.Histogram4D___str__(self)
1496 """__repr__(Histogram4D self) -> std::string"""
1497 return _IMP_statistics.Histogram4D___repr__(self)
1500 def __cmp__(self, arg2):
1501 """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1502 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1505 def __eq__(self, arg2):
1506 """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1507 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1509 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1510 __del__ =
lambda self:
None
1511 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1512 Histogram4D_swigregister(Histogram4D)
1514 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1515 """Proxy of C++ IMP::statistics::HistogramD<(5)> class."""
1517 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1519 def __init__(self, *args):
1521 __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1522 __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1524 this = _IMP_statistics.new_Histogram5D(*args)
1526 self.this.append(this)
1527 except __builtin__.Exception:
1530 def add(self, x, weight=1):
1532 add(Histogram5D self, Vector5D x, double weight=1)
1533 add(Histogram5D self, Vector5D x)
1535 return _IMP_statistics.Histogram5D_add(self, x, weight)
1538 def get_total_count(self):
1539 """get_total_count(Histogram5D self) -> double"""
1540 return _IMP_statistics.Histogram5D_get_total_count(self)
1543 def get_frequencies(self):
1544 """get_frequencies(Histogram5D self) -> Histogram5D"""
1545 return _IMP_statistics.Histogram5D_get_frequencies(self)
1548 def get_probability_distribution_function(self):
1549 """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1550 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1553 def get_counts(self):
1554 """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1555 return _IMP_statistics.Histogram5D_get_counts(self)
1559 """get_mean(Histogram5D self) -> Vector5D"""
1560 return _IMP_statistics.Histogram5D_get_mean(self)
1563 def get_dimension(self):
1564 """get_dimension(Histogram5D self) -> unsigned int"""
1565 return _IMP_statistics.Histogram5D_get_dimension(self)
1568 def get_standard_deviation(self, mean):
1569 """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1570 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1573 def get_bounding_box(self):
1574 """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1575 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1578 def get_minimum_and_maximum(self):
1579 """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1580 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1583 def show(self, *args):
1585 show(Histogram5D self, _ostream out)
1586 show(Histogram5D self)
1588 return _IMP_statistics.Histogram5D_show(self, *args)
1592 """__str__(Histogram5D self) -> std::string"""
1593 return _IMP_statistics.Histogram5D___str__(self)
1597 """__repr__(Histogram5D self) -> std::string"""
1598 return _IMP_statistics.Histogram5D___repr__(self)
1601 def __cmp__(self, arg2):
1602 """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1603 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1606 def __eq__(self, arg2):
1607 """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1608 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1610 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1611 __del__ =
lambda self:
None
1612 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1613 Histogram5D_swigregister(Histogram5D)
1615 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1616 """Proxy of C++ IMP::statistics::HistogramD<(6)> class."""
1618 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1620 def __init__(self, *args):
1622 __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1623 __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1625 this = _IMP_statistics.new_Histogram6D(*args)
1627 self.this.append(this)
1628 except __builtin__.Exception:
1631 def add(self, x, weight=1):
1633 add(Histogram6D self, Vector6D x, double weight=1)
1634 add(Histogram6D self, Vector6D x)
1636 return _IMP_statistics.Histogram6D_add(self, x, weight)
1639 def get_total_count(self):
1640 """get_total_count(Histogram6D self) -> double"""
1641 return _IMP_statistics.Histogram6D_get_total_count(self)
1644 def get_frequencies(self):
1645 """get_frequencies(Histogram6D self) -> Histogram6D"""
1646 return _IMP_statistics.Histogram6D_get_frequencies(self)
1649 def get_probability_distribution_function(self):
1650 """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1651 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1654 def get_counts(self):
1655 """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1656 return _IMP_statistics.Histogram6D_get_counts(self)
1660 """get_mean(Histogram6D self) -> Vector6D"""
1661 return _IMP_statistics.Histogram6D_get_mean(self)
1664 def get_dimension(self):
1665 """get_dimension(Histogram6D self) -> unsigned int"""
1666 return _IMP_statistics.Histogram6D_get_dimension(self)
1669 def get_standard_deviation(self, mean):
1670 """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1671 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1674 def get_bounding_box(self):
1675 """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1676 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1679 def get_minimum_and_maximum(self):
1680 """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1681 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1684 def show(self, *args):
1686 show(Histogram6D self, _ostream out)
1687 show(Histogram6D self)
1689 return _IMP_statistics.Histogram6D_show(self, *args)
1693 """__str__(Histogram6D self) -> std::string"""
1694 return _IMP_statistics.Histogram6D___str__(self)
1698 """__repr__(Histogram6D self) -> std::string"""
1699 return _IMP_statistics.Histogram6D___repr__(self)
1702 def __cmp__(self, arg2):
1703 """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1704 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1707 def __eq__(self, arg2):
1708 """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1709 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1711 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1712 __del__ =
lambda self:
None
1713 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1714 Histogram6D_swigregister(Histogram6D)
1716 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1717 """Proxy of C++ IMP::statistics::HistogramD<(-1)> class."""
1719 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1721 def __init__(self, *args):
1723 __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1724 __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1726 this = _IMP_statistics.new_HistogramKD(*args)
1728 self.this.append(this)
1729 except __builtin__.Exception:
1732 def add(self, x, weight=1):
1734 add(HistogramKD self, VectorKD x, double weight=1)
1735 add(HistogramKD self, VectorKD x)
1737 return _IMP_statistics.HistogramKD_add(self, x, weight)
1740 def get_total_count(self):
1741 """get_total_count(HistogramKD self) -> double"""
1742 return _IMP_statistics.HistogramKD_get_total_count(self)
1745 def get_frequencies(self):
1746 """get_frequencies(HistogramKD self) -> HistogramKD"""
1747 return _IMP_statistics.HistogramKD_get_frequencies(self)
1750 def get_probability_distribution_function(self):
1751 """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1752 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1755 def get_counts(self):
1756 """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1757 return _IMP_statistics.HistogramKD_get_counts(self)
1761 """get_mean(HistogramKD self) -> VectorKD"""
1762 return _IMP_statistics.HistogramKD_get_mean(self)
1765 def get_dimension(self):
1766 """get_dimension(HistogramKD self) -> unsigned int"""
1767 return _IMP_statistics.HistogramKD_get_dimension(self)
1770 def get_standard_deviation(self, mean):
1771 """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1772 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1775 def get_bounding_box(self):
1776 """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1777 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1780 def get_minimum_and_maximum(self):
1781 """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1782 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1785 def show(self, *args):
1787 show(HistogramKD self, _ostream out)
1788 show(HistogramKD self)
1790 return _IMP_statistics.HistogramKD_show(self, *args)
1794 """__str__(HistogramKD self) -> std::string"""
1795 return _IMP_statistics.HistogramKD___str__(self)
1799 """__repr__(HistogramKD self) -> std::string"""
1800 return _IMP_statistics.HistogramKD___repr__(self)
1803 def __cmp__(self, arg2):
1804 """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1805 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1808 def __eq__(self, arg2):
1809 """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1810 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1812 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1813 __del__ =
lambda self:
None
1814 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1815 HistogramKD_swigregister(HistogramKD)
1817 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1818 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class."""
1820 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1821 __repr__ = _swig_repr
1823 def __setitem__(self, *args):
1825 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1826 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1828 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1831 def __getitem__(self, *args):
1833 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1834 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1836 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1839 def __init__(self, *args):
1841 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1842 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1843 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1844 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1845 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1847 this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1849 self.this.append(this)
1850 except __builtin__.Exception:
1854 """get_is_dense() -> bool"""
1855 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1857 get_is_dense = staticmethod(get_is_dense)
1859 def show(self, *args):
1861 show(_IntDenseGridStorageKD self, _ostream out)
1862 show(_IntDenseGridStorageKD self)
1864 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1867 def add_voxel(self, arg2, arg3):
1868 """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1869 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1872 def get_all_voxels(self):
1873 """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1874 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1876 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1877 __del__ =
lambda self:
None
1878 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1879 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1881 def _IntDenseGridStorageKD_get_is_dense():
1882 """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1883 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1885 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1886 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class."""
1888 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1889 __repr__ = _swig_repr
1891 def __setitem__(self, *args):
1893 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1894 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1896 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1899 def __getitem__(self, *args):
1901 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1902 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1904 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1907 def __init__(self, *args):
1909 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1910 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1911 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1912 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1913 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1915 this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1917 self.this.append(this)
1918 except __builtin__.Exception:
1922 """get_is_dense() -> bool"""
1923 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1925 get_is_dense = staticmethod(get_is_dense)
1927 def show(self, *args):
1929 show(_FloatDenseGridStorageKD self, _ostream out)
1930 show(_FloatDenseGridStorageKD self)
1932 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1935 def add_voxel(self, arg2, arg3):
1936 """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1937 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1940 def get_all_voxels(self):
1941 """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1942 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
1944 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
1945 __del__ =
lambda self:
None
1946 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
1947 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
1949 def _FloatDenseGridStorageKD_get_is_dense():
1950 """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
1951 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1953 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
1954 """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class."""
1956 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1957 __repr__ = _swig_repr
1959 def __init__(self, *args):
1961 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb, double default_value) -> _HistogramCountsGridKD
1962 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
1963 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
1964 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
1965 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb, double const & default_value) -> _HistogramCountsGridKD
1966 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
1967 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
1968 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
1969 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
1970 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin, double const & default_value) -> _HistogramCountsGridKD
1971 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
1972 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
1974 this = _IMP_statistics.new__HistogramCountsGridKD(*args)
1976 self.this.append(this)
1977 except __builtin__.Exception:
1980 def show(self, *args):
1982 show(_HistogramCountsGridKD self, _ostream out)
1983 show(_HistogramCountsGridKD self)
1985 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
1988 def __getitem__(self, *args):
1990 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
1991 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
1993 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
1996 def __setitem__(self, *args):
1998 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
1999 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2001 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2004 def add_voxel(self, pt, vt):
2005 """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2006 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2009 def get_extended_index(self, index):
2010 """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2011 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2014 def get_bounding_box(self, *args):
2016 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2017 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2018 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2020 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2023 def set_bounding_box(self, bb3):
2024 """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2025 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2028 def get_nearest_index(self, pt):
2029 """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2030 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2033 def get_nearest_extended_index(self, pt):
2034 """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2035 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2037 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2038 __del__ =
lambda self:
None
2039 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2040 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2042 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2043 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class."""
2045 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2046 __repr__ = _swig_repr
2048 def __setitem__(self, *args):
2050 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2051 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2053 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2056 def __getitem__(self, *args):
2058 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2059 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2061 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2064 def __init__(self, *args):
2066 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2067 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2068 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2069 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2070 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2072 this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2074 self.this.append(this)
2075 except __builtin__.Exception:
2079 """get_is_dense() -> bool"""
2080 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2082 get_is_dense = staticmethod(get_is_dense)
2084 def show(self, *args):
2086 show(_IntDenseGridStorage1D self, _ostream out)
2087 show(_IntDenseGridStorage1D self)
2089 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2092 def add_voxel(self, arg2, arg3):
2093 """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2094 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2097 def get_all_voxels(self):
2098 """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2099 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2101 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2102 __del__ =
lambda self:
None
2103 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2104 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2106 def _IntDenseGridStorage1D_get_is_dense():
2107 """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2108 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2110 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2111 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class."""
2113 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2114 __repr__ = _swig_repr
2116 def __setitem__(self, *args):
2118 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2119 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2121 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2124 def __getitem__(self, *args):
2126 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2127 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2129 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2132 def __init__(self, *args):
2134 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2135 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2136 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2137 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2138 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2140 this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2142 self.this.append(this)
2143 except __builtin__.Exception:
2147 """get_is_dense() -> bool"""
2148 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2150 get_is_dense = staticmethod(get_is_dense)
2152 def show(self, *args):
2154 show(_FloatDenseGridStorage1D self, _ostream out)
2155 show(_FloatDenseGridStorage1D self)
2157 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2160 def add_voxel(self, arg2, arg3):
2161 """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2162 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2165 def get_all_voxels(self):
2166 """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2167 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2169 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2170 __del__ =
lambda self:
None
2171 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2172 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2174 def _FloatDenseGridStorage1D_get_is_dense():
2175 """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2176 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2178 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2179 """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class."""
2181 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2182 __repr__ = _swig_repr
2184 def __init__(self, *args):
2186 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb, double default_value) -> _HistogramCountsGrid1D
2187 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2188 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2189 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2190 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb, double const & default_value) -> _HistogramCountsGrid1D
2191 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2192 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2193 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2194 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2195 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin, double const & default_value) -> _HistogramCountsGrid1D
2196 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2197 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2199 this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2201 self.this.append(this)
2202 except __builtin__.Exception:
2205 def show(self, *args):
2207 show(_HistogramCountsGrid1D self, _ostream out)
2208 show(_HistogramCountsGrid1D self)
2210 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2213 def __getitem__(self, *args):
2215 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2216 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2218 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2221 def __setitem__(self, *args):
2223 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2224 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2226 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2229 def add_voxel(self, pt, vt):
2230 """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2231 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2234 def get_extended_index(self, index):
2235 """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2236 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2239 def get_bounding_box(self, *args):
2241 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2242 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2243 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2245 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2248 def set_bounding_box(self, bb3):
2249 """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2250 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2253 def get_nearest_index(self, pt):
2254 """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2255 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2258 def get_nearest_extended_index(self, pt):
2259 """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2260 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2262 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2263 __del__ =
lambda self:
None
2264 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2265 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2267 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2268 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class."""
2270 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2271 __repr__ = _swig_repr
2273 def __setitem__(self, *args):
2275 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2276 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2278 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2281 def __getitem__(self, *args):
2283 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2284 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2286 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2289 def __init__(self, *args):
2291 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2292 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2293 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2294 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2295 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2297 this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2299 self.this.append(this)
2300 except __builtin__.Exception:
2304 """get_is_dense() -> bool"""
2305 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2307 get_is_dense = staticmethod(get_is_dense)
2309 def show(self, *args):
2311 show(_IntDenseGridStorage2D self, _ostream out)
2312 show(_IntDenseGridStorage2D self)
2314 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2317 def add_voxel(self, arg2, arg3):
2318 """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2319 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2322 def get_all_voxels(self):
2323 """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2324 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2326 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2327 __del__ =
lambda self:
None
2328 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2329 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2331 def _IntDenseGridStorage2D_get_is_dense():
2332 """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2333 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2335 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2336 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class."""
2338 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2339 __repr__ = _swig_repr
2341 def __setitem__(self, *args):
2343 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2344 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2346 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2349 def __getitem__(self, *args):
2351 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2352 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2354 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2357 def __init__(self, *args):
2359 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2360 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2361 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2362 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2363 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2365 this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2367 self.this.append(this)
2368 except __builtin__.Exception:
2372 """get_is_dense() -> bool"""
2373 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2375 get_is_dense = staticmethod(get_is_dense)
2377 def show(self, *args):
2379 show(_FloatDenseGridStorage2D self, _ostream out)
2380 show(_FloatDenseGridStorage2D self)
2382 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2385 def add_voxel(self, arg2, arg3):
2386 """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2387 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2390 def get_all_voxels(self):
2391 """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2392 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2394 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2395 __del__ =
lambda self:
None
2396 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2397 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2399 def _FloatDenseGridStorage2D_get_is_dense():
2400 """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2401 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2403 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2404 """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class."""
2406 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2407 __repr__ = _swig_repr
2409 def __init__(self, *args):
2411 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb, double default_value) -> _HistogramCountsGrid2D
2412 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2413 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2414 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2415 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb, double const & default_value) -> _HistogramCountsGrid2D
2416 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2417 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2418 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2419 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2420 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin, double const & default_value) -> _HistogramCountsGrid2D
2421 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2422 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2424 this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2426 self.this.append(this)
2427 except __builtin__.Exception:
2430 def show(self, *args):
2432 show(_HistogramCountsGrid2D self, _ostream out)
2433 show(_HistogramCountsGrid2D self)
2435 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2438 def __getitem__(self, *args):
2440 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2441 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2443 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2446 def __setitem__(self, *args):
2448 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2449 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2451 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2454 def add_voxel(self, pt, vt):
2455 """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2456 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2459 def get_extended_index(self, index):
2460 """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2461 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2464 def get_bounding_box(self, *args):
2466 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2467 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2468 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2470 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2473 def set_bounding_box(self, bb3):
2474 """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2475 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2478 def get_nearest_index(self, pt):
2479 """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2480 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2483 def get_nearest_extended_index(self, pt):
2484 """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2485 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2487 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2488 __del__ =
lambda self:
None
2489 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2490 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2492 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2493 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class."""
2495 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2496 __repr__ = _swig_repr
2498 def __setitem__(self, *args):
2500 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2501 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2503 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2506 def __getitem__(self, *args):
2508 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2509 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2511 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2514 def __init__(self, *args):
2516 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2517 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2518 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2519 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2520 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2522 this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2524 self.this.append(this)
2525 except __builtin__.Exception:
2529 """get_is_dense() -> bool"""
2530 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2532 get_is_dense = staticmethod(get_is_dense)
2534 def show(self, *args):
2536 show(_IntDenseGridStorage3D self, _ostream out)
2537 show(_IntDenseGridStorage3D self)
2539 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2542 def add_voxel(self, arg2, arg3):
2543 """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2544 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2547 def get_all_voxels(self):
2548 """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2549 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2551 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2552 __del__ =
lambda self:
None
2553 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2554 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2556 def _IntDenseGridStorage3D_get_is_dense():
2557 """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2558 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2560 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2561 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class."""
2563 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2564 __repr__ = _swig_repr
2566 def __setitem__(self, *args):
2568 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2569 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2571 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2574 def __getitem__(self, *args):
2576 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2577 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2579 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2582 def __init__(self, *args):
2584 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2585 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2586 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2587 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2588 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2590 this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2592 self.this.append(this)
2593 except __builtin__.Exception:
2597 """get_is_dense() -> bool"""
2598 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2600 get_is_dense = staticmethod(get_is_dense)
2602 def show(self, *args):
2604 show(_FloatDenseGridStorage3D self, _ostream out)
2605 show(_FloatDenseGridStorage3D self)
2607 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2610 def add_voxel(self, arg2, arg3):
2611 """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2612 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2615 def get_all_voxels(self):
2616 """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2617 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2619 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2620 __del__ =
lambda self:
None
2621 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2622 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2624 def _FloatDenseGridStorage3D_get_is_dense():
2625 """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2626 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2628 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2629 """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class."""
2631 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2632 __repr__ = _swig_repr
2634 def __init__(self, *args):
2636 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb, double default_value) -> _HistogramCountsGrid3D
2637 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2638 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2639 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2640 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb, double const & default_value) -> _HistogramCountsGrid3D
2641 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2642 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2643 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2644 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2645 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin, double const & default_value) -> _HistogramCountsGrid3D
2646 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2647 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2649 this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2651 self.this.append(this)
2652 except __builtin__.Exception:
2655 def show(self, *args):
2657 show(_HistogramCountsGrid3D self, _ostream out)
2658 show(_HistogramCountsGrid3D self)
2660 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2663 def __getitem__(self, *args):
2665 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2666 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2668 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2671 def __setitem__(self, *args):
2673 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2674 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2676 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2679 def add_voxel(self, pt, vt):
2680 """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2681 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2684 def get_extended_index(self, index):
2685 """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2686 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2689 def get_bounding_box(self, *args):
2691 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2692 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2693 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2695 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2698 def set_bounding_box(self, bb3):
2699 """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2700 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2703 def get_nearest_index(self, pt):
2704 """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2705 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2708 def get_nearest_extended_index(self, pt):
2709 """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2710 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2712 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2713 __del__ =
lambda self:
None
2714 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2715 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2717 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2718 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class."""
2720 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2721 __repr__ = _swig_repr
2723 def __setitem__(self, *args):
2725 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2726 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2728 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2731 def __getitem__(self, *args):
2733 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2734 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2736 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2739 def __init__(self, *args):
2741 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2742 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2743 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2744 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2745 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2747 this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2749 self.this.append(this)
2750 except __builtin__.Exception:
2754 """get_is_dense() -> bool"""
2755 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2757 get_is_dense = staticmethod(get_is_dense)
2759 def show(self, *args):
2761 show(_IntDenseGridStorage4D self, _ostream out)
2762 show(_IntDenseGridStorage4D self)
2764 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2767 def add_voxel(self, arg2, arg3):
2768 """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2769 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2772 def get_all_voxels(self):
2773 """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2774 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2776 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2777 __del__ =
lambda self:
None
2778 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2779 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2781 def _IntDenseGridStorage4D_get_is_dense():
2782 """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2783 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2785 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2786 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class."""
2788 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2789 __repr__ = _swig_repr
2791 def __setitem__(self, *args):
2793 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2794 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2796 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2799 def __getitem__(self, *args):
2801 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2802 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2804 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2807 def __init__(self, *args):
2809 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2810 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2811 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2812 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2813 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2815 this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2817 self.this.append(this)
2818 except __builtin__.Exception:
2822 """get_is_dense() -> bool"""
2823 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2825 get_is_dense = staticmethod(get_is_dense)
2827 def show(self, *args):
2829 show(_FloatDenseGridStorage4D self, _ostream out)
2830 show(_FloatDenseGridStorage4D self)
2832 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2835 def add_voxel(self, arg2, arg3):
2836 """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2837 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2840 def get_all_voxels(self):
2841 """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2842 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2844 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2845 __del__ =
lambda self:
None
2846 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2847 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2849 def _FloatDenseGridStorage4D_get_is_dense():
2850 """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2851 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2853 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2854 """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class."""
2856 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2857 __repr__ = _swig_repr
2859 def __init__(self, *args):
2861 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb, double default_value) -> _HistogramCountsGrid4D
2862 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2863 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2864 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2865 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb, double const & default_value) -> _HistogramCountsGrid4D
2866 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2867 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2868 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2869 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2870 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin, double const & default_value) -> _HistogramCountsGrid4D
2871 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2872 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2874 this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2876 self.this.append(this)
2877 except __builtin__.Exception:
2880 def show(self, *args):
2882 show(_HistogramCountsGrid4D self, _ostream out)
2883 show(_HistogramCountsGrid4D self)
2885 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2888 def __getitem__(self, *args):
2890 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2891 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2893 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2896 def __setitem__(self, *args):
2898 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2899 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2901 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2904 def add_voxel(self, pt, vt):
2905 """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2906 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2909 def get_extended_index(self, index):
2910 """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2911 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2914 def get_bounding_box(self, *args):
2916 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2917 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2918 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2920 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2923 def set_bounding_box(self, bb3):
2924 """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2925 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2928 def get_nearest_index(self, pt):
2929 """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2930 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2933 def get_nearest_extended_index(self, pt):
2934 """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2935 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2937 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2938 __del__ =
lambda self:
None
2939 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
2940 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2942 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2943 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class."""
2945 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2946 __repr__ = _swig_repr
2948 def __setitem__(self, *args):
2950 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2951 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2953 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2956 def __getitem__(self, *args):
2958 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
2959 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
2961 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
2964 def __init__(self, *args):
2966 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
2967 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
2968 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
2969 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
2970 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
2972 this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
2974 self.this.append(this)
2975 except __builtin__.Exception:
2979 """get_is_dense() -> bool"""
2980 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
2982 get_is_dense = staticmethod(get_is_dense)
2984 def show(self, *args):
2986 show(_IntDenseGridStorage5D self, _ostream out)
2987 show(_IntDenseGridStorage5D self)
2989 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
2992 def add_voxel(self, arg2, arg3):
2993 """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
2994 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
2997 def get_all_voxels(self):
2998 """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
2999 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3001 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3002 __del__ =
lambda self:
None
3003 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3004 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3006 def _IntDenseGridStorage5D_get_is_dense():
3007 """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3008 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3010 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3011 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class."""
3013 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3014 __repr__ = _swig_repr
3016 def __setitem__(self, *args):
3018 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3019 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3021 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3024 def __getitem__(self, *args):
3026 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3027 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3029 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3032 def __init__(self, *args):
3034 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3035 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3036 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3037 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3038 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3040 this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3042 self.this.append(this)
3043 except __builtin__.Exception:
3047 """get_is_dense() -> bool"""
3048 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3050 get_is_dense = staticmethod(get_is_dense)
3052 def show(self, *args):
3054 show(_FloatDenseGridStorage5D self, _ostream out)
3055 show(_FloatDenseGridStorage5D self)
3057 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3060 def add_voxel(self, arg2, arg3):
3061 """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3062 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3065 def get_all_voxels(self):
3066 """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3067 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3069 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3070 __del__ =
lambda self:
None
3071 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3072 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3074 def _FloatDenseGridStorage5D_get_is_dense():
3075 """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3076 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3078 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3079 """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class."""
3081 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3082 __repr__ = _swig_repr
3084 def __init__(self, *args):
3086 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb, double default_value) -> _HistogramCountsGrid5D
3087 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3088 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3089 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3090 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb, double const & default_value) -> _HistogramCountsGrid5D
3091 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3092 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3093 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3094 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3095 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin, double const & default_value) -> _HistogramCountsGrid5D
3096 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3097 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3099 this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3101 self.this.append(this)
3102 except __builtin__.Exception:
3105 def show(self, *args):
3107 show(_HistogramCountsGrid5D self, _ostream out)
3108 show(_HistogramCountsGrid5D self)
3110 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3113 def __getitem__(self, *args):
3115 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3116 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3118 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3121 def __setitem__(self, *args):
3123 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3124 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3126 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3129 def add_voxel(self, pt, vt):
3130 """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3131 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3134 def get_extended_index(self, index):
3135 """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3136 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3139 def get_bounding_box(self, *args):
3141 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3142 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3143 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3145 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3148 def set_bounding_box(self, bb3):
3149 """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3150 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3153 def get_nearest_index(self, pt):
3154 """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3155 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3158 def get_nearest_extended_index(self, pt):
3159 """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3160 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3162 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3163 __del__ =
lambda self:
None
3164 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3165 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3167 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3168 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class."""
3170 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3171 __repr__ = _swig_repr
3173 def __setitem__(self, *args):
3175 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3176 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3178 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3181 def __getitem__(self, *args):
3183 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3184 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3186 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3189 def __init__(self, *args):
3191 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3192 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3193 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3194 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3195 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3197 this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3199 self.this.append(this)
3200 except __builtin__.Exception:
3204 """get_is_dense() -> bool"""
3205 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3207 get_is_dense = staticmethod(get_is_dense)
3209 def show(self, *args):
3211 show(_IntDenseGridStorage6D self, _ostream out)
3212 show(_IntDenseGridStorage6D self)
3214 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3217 def add_voxel(self, arg2, arg3):
3218 """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3219 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3222 def get_all_voxels(self):
3223 """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3224 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3226 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3227 __del__ =
lambda self:
None
3228 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3229 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3231 def _IntDenseGridStorage6D_get_is_dense():
3232 """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3233 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3235 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3236 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class."""
3238 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3239 __repr__ = _swig_repr
3241 def __setitem__(self, *args):
3243 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3244 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3246 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3249 def __getitem__(self, *args):
3251 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3252 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3254 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3257 def __init__(self, *args):
3259 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3260 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3261 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3262 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3263 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3265 this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3267 self.this.append(this)
3268 except __builtin__.Exception:
3272 """get_is_dense() -> bool"""
3273 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3275 get_is_dense = staticmethod(get_is_dense)
3277 def show(self, *args):
3279 show(_FloatDenseGridStorage6D self, _ostream out)
3280 show(_FloatDenseGridStorage6D self)
3282 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3285 def add_voxel(self, arg2, arg3):
3286 """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3287 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3290 def get_all_voxels(self):
3291 """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3292 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3294 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3295 __del__ =
lambda self:
None
3296 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3297 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3299 def _FloatDenseGridStorage6D_get_is_dense():
3300 """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3301 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3303 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3304 """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class."""
3306 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3307 __repr__ = _swig_repr
3309 def __init__(self, *args):
3311 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb, double default_value) -> _HistogramCountsGrid6D
3312 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3313 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3314 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3315 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb, double const & default_value) -> _HistogramCountsGrid6D
3316 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3317 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3318 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3319 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3320 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin, double const & default_value) -> _HistogramCountsGrid6D
3321 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3322 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3324 this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3326 self.this.append(this)
3327 except __builtin__.Exception:
3330 def show(self, *args):
3332 show(_HistogramCountsGrid6D self, _ostream out)
3333 show(_HistogramCountsGrid6D self)
3335 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3338 def __getitem__(self, *args):
3340 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3341 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3343 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3346 def __setitem__(self, *args):
3348 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3349 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3351 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3354 def add_voxel(self, pt, vt):
3355 """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3356 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3359 def get_extended_index(self, index):
3360 """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3361 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3364 def get_bounding_box(self, *args):
3366 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3367 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3368 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3370 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3373 def set_bounding_box(self, bb3):
3374 """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3375 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3378 def get_nearest_index(self, pt):
3379 """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3380 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3383 def get_nearest_extended_index(self, pt):
3384 """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3385 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3387 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3388 __del__ =
lambda self:
None
3389 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3390 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3393 from .
import _histogram
3394 show_histogram= _histogram.show_histogram
3398 """get_module_version() -> std::string const"""
3399 return _IMP_statistics.get_module_version()
3402 """get_example_path(std::string fname) -> std::string"""
3403 return _IMP_statistics.get_example_path(fname)
3406 """get_data_path(std::string fname) -> std::string"""
3407 return _IMP_statistics.get_data_path(fname)
3409 from .
import _version_check
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
def get_data_path
Return the full path to one of this module's data files.
def get_module_version
Return the version of this module, as a string.
def get_example_path
Return the full path to one of this module's example files.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
double get_quantile(const Histogram1D &h, double fraction)
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
Version and module information for Objects.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Ints get_representatives(Embedding *d, PartitionalClustering *pc)