10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_statistics', [dirname(__file__)])
24 import _IMP_statistics
25 return _IMP_statistics
28 _mod = imp.load_module(
'_IMP_statistics', fp, pathname, description)
32 _IMP_statistics = swig_import_helper()
33 del swig_import_helper
35 import _IMP_statistics
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
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
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)
224 _IMP_statistics.IMP_DEBUG_swigconstant(_IMP_statistics)
225 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
227 _IMP_statistics.IMP_RELEASE_swigconstant(_IMP_statistics)
228 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
230 _IMP_statistics.IMP_SILENT_swigconstant(_IMP_statistics)
231 IMP_SILENT = _IMP_statistics.IMP_SILENT
233 _IMP_statistics.IMP_PROGRESS_swigconstant(_IMP_statistics)
234 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
236 _IMP_statistics.IMP_TERSE_swigconstant(_IMP_statistics)
237 IMP_TERSE = _IMP_statistics.IMP_TERSE
239 _IMP_statistics.IMP_VERBOSE_swigconstant(_IMP_statistics)
240 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
242 _IMP_statistics.IMP_MEMORY_swigconstant(_IMP_statistics)
243 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
245 _IMP_statistics.IMP_NONE_swigconstant(_IMP_statistics)
246 IMP_NONE = _IMP_statistics.IMP_NONE
248 _IMP_statistics.IMP_USAGE_swigconstant(_IMP_statistics)
249 IMP_USAGE = _IMP_statistics.IMP_USAGE
251 _IMP_statistics.IMP_INTERNAL_swigconstant(_IMP_statistics)
252 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
254 _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_statistics)
255 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
257 _IMP_statistics.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_statistics)
258 IMP_COMPILER_HAS_AUTO = _IMP_statistics.IMP_COMPILER_HAS_AUTO
260 _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_statistics)
261 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
263 _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_statistics)
264 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR
266 _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
267 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
269 _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_statistics)
270 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
272 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_statistics)
273 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
275 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_statistics)
276 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
278 _IMP_statistics.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
279 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
282 class _DirectorObjects(object):
283 """@internal Simple class to keep references to director objects
284 to prevent premature deletion."""
287 def register(self, obj):
288 """Take a reference to a director object; will only work for
289 refcounted C++ classes"""
290 if hasattr(obj,
'get_ref_count'):
291 self._objects.append(obj)
293 """Only drop our reference and allow cleanup by Python if no other
294 Python references exist (we hold 3 references: one in self._objects,
295 one in x, and one in the argument list for getrefcount) *and* no
296 other C++ references exist (the Python object always holds one)"""
297 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
298 or x.get_ref_count() > 1]
302 def get_object_count(self):
303 """Get number of director objects (useful for testing only)"""
304 return len(self._objects)
305 _director_objects = _DirectorObjects()
307 class _ostream(object):
308 """Proxy of C++ std::ostream class."""
310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
312 def __init__(self, *args, **kwargs):
313 raise AttributeError(
"No constructor defined")
314 __repr__ = _swig_repr
316 def write(self, osa_buf):
317 """write(_ostream self, char const * osa_buf)"""
318 return _IMP_statistics._ostream_write(self, osa_buf)
320 _ostream_swigregister = _IMP_statistics._ostream_swigregister
321 _ostream_swigregister(_ostream)
324 _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_statistics)
325 IMP_COMPILER_HAS_OVERRIDE = _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE
327 _IMP_statistics.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_statistics)
328 IMP_COMPILER_HAS_FINAL = _IMP_statistics.IMP_COMPILER_HAS_FINAL
330 _IMP_statistics.IMP_HAS_NOEXCEPT_swigconstant(_IMP_statistics)
331 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
334 _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
346 _IMP_statistics.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
347 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
350 _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
351 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
353 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
354 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
356 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
357 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
359 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
360 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
362 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
363 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
365 _IMP_statistics.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_statistics)
366 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
368 _IMP_statistics.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_statistics)
369 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
371 _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_statistics)
372 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
375 _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
376 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
378 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
379 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
381 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
382 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
384 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
385 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
387 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
388 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
390 _IMP_statistics.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_statistics)
391 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
393 _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_statistics)
394 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
397 _plural_types.append(
"Histogram1Ds")
398 _value_types.append(
"Histogram1D")
402 _plural_types.append(
"Histogram2Ds")
403 _value_types.append(
"Histogram2D")
407 _plural_types.append(
"Histogram3Ds")
408 _value_types.append(
"Histogram3D")
412 _plural_types.append(
"Histogram4Ds")
413 _value_types.append(
"Histogram4D")
417 _plural_types.append(
"Histogram5Ds")
418 _value_types.append(
"Histogram5D")
422 _plural_types.append(
"Histogram6Ds")
423 _value_types.append(
"Histogram6D")
427 _plural_types.append(
"Histogram1Ds")
428 _value_types.append(
"HistogramD<1>")
432 _plural_types.append(
"Histogram2Ds")
433 _value_types.append(
"HistogramD<2>")
437 _plural_types.append(
"Histogram3Ds")
438 _value_types.append(
"HistogramD<3>")
442 _plural_types.append(
"Histogram4Ds")
443 _value_types.append(
"HistogramD<4>")
447 _plural_types.append(
"Histogram5Ds")
448 _value_types.append(
"HistogramD<5>")
452 _plural_types.append(
"Histogram6Ds")
453 _value_types.append(
"HistogramD<6>")
457 _plural_types.append(
"HistogramKDs")
458 _value_types.append(
"HistogramKD")
462 _plural_types.append(
"HistogramKDs")
463 _value_types.append(
"HistogramD<-1>")
466 _object_types.append(
"PartitionalClustering")
469 def _object_cast_to_PartitionalClustering(o):
470 """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
471 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
473 _object_types.append(
"PartitionalClusteringWithCenter")
476 def _object_cast_to_PartitionalClusteringWithCenter(o):
477 """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
478 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
480 _object_types.append(
"Embedding")
483 def _object_cast_to_Embedding(o):
484 """_object_cast_to_Embedding(Object o) -> Embedding"""
485 return _IMP_statistics._object_cast_to_Embedding(o)
487 _object_types.append(
"ConfigurationSetXYZEmbedding")
490 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
491 """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
492 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
494 _object_types.append(
"VectorDEmbedding")
497 def _object_cast_to_VectorDEmbedding(o):
498 """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
499 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
501 _object_types.append(
"ParticleEmbedding")
504 def _object_cast_to_ParticleEmbedding(o):
505 """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
506 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
508 _object_types.append(
"Metric")
511 def _object_cast_to_Metric(o):
512 """_object_cast_to_Metric(Object o) -> Metric"""
513 return _IMP_statistics._object_cast_to_Metric(o)
515 _object_types.append(
"EuclideanMetric")
518 def _object_cast_to_EuclideanMetric(o):
519 """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
520 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
522 _object_types.append(
"ConfigurationSetRMSDMetric")
525 def _object_cast_to_ConfigurationSetRMSDMetric(o):
526 """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
527 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
529 _object_types.append(
"RecursivePartitionalClusteringMetric")
532 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
533 """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
534 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
536 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
539 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
540 """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
541 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
543 _object_types.append(
"ChiSquareMetric")
546 def _object_cast_to_ChiSquareMetric(o):
547 """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
548 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
550 """Proxy of C++ IMP::statistics::PartitionalClustering class."""
552 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
554 def __init__(self, *args, **kwargs):
555 raise AttributeError(
"No constructor defined - class is abstract")
557 def get_number_of_clusters(self):
558 """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
559 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
562 def get_cluster(self, cluster_index):
563 """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
564 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
567 def get_cluster_representative(self, cluster_index):
568 """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
569 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
571 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
572 __del__ =
lambda self:
None
575 """__str__(PartitionalClustering self) -> std::string"""
576 return _IMP_statistics.PartitionalClustering___str__(self)
580 """__repr__(PartitionalClustering self) -> std::string"""
581 return _IMP_statistics.PartitionalClustering___repr__(self)
586 return _object_cast_to_PartitionalClustering(o)
588 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
589 PartitionalClustering_swigregister(PartitionalClustering)
593 """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
594 return _IMP_statistics.validate_partitional_clustering(pc, n)
596 """Proxy of C++ IMP::statistics::Embedding class."""
598 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
600 def __init__(self, name):
601 """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
602 if self.__class__ == Embedding:
606 this = _IMP_statistics.new_Embedding(_self, name)
608 self.this.append(this)
612 if self.__class__ != Embedding:
613 _director_objects.register(self)
618 def do_get_weight(self, i):
619 """do_get_weight(Embedding self, unsigned int i) -> double"""
620 return _IMP_statistics.Embedding_do_get_weight(self, i)
623 def get_point(self, i):
624 """get_point(Embedding self, unsigned int i) -> VectorKD"""
625 return _IMP_statistics.Embedding_get_point(self, i)
628 def get_number_of_items(self):
629 """get_number_of_items(Embedding self) -> unsigned int"""
630 return _IMP_statistics.Embedding_get_number_of_items(self)
633 def get_weight(self, i):
634 """get_weight(Embedding self, unsigned int i) -> double"""
635 return _IMP_statistics.Embedding_get_weight(self, i)
638 def get_points(self):
639 """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
640 return _IMP_statistics.Embedding_get_points(self)
644 """__str__(Embedding self) -> std::string"""
645 return _IMP_statistics.Embedding___str__(self)
649 """__repr__(Embedding self) -> std::string"""
650 return _IMP_statistics.Embedding___repr__(self)
655 return _object_cast_to_Embedding(o)
658 def get_type_name(self):
659 return self.__class__.__name__
660 def do_show(self, out):
662 def get_version_info(self):
663 if"IMP::statistics" ==
"IMP":
664 return VersionInfo(self.__module__,
665 __import__(self.__module__).get_module_version())
668 __import__(self.__module__).get_module_version())
671 return _object_cast_to_Embedding(o)
673 __swig_destroy__ = _IMP_statistics.delete_Embedding
674 __del__ =
lambda self:
None
675 def __disown__(self):
677 _IMP_statistics.disown_Embedding(self)
678 return weakref_proxy(self)
680 def do_destroy(self):
681 """do_destroy(Embedding self)"""
682 return _IMP_statistics.Embedding_do_destroy(self)
684 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
685 Embedding_swigregister(Embedding)
688 """Proxy of C++ IMP::statistics::Metric class."""
690 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
692 def __init__(self, name):
693 """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
694 if self.__class__ == Metric:
698 this = _IMP_statistics.new_Metric(_self, name)
700 self.this.append(this)
704 if self.__class__ != Metric:
705 _director_objects.register(self)
710 def do_get_weight(self, i):
711 """do_get_weight(Metric self, unsigned int i) -> double"""
712 return _IMP_statistics.Metric_do_get_weight(self, i)
716 """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
717 return _IMP_statistics.Metric_get_distance(self, i, j)
720 def get_weight(self, i):
721 """get_weight(Metric self, unsigned int i) -> double"""
722 return _IMP_statistics.Metric_get_weight(self, i)
725 def get_number_of_items(self):
726 """get_number_of_items(Metric self) -> unsigned int"""
727 return _IMP_statistics.Metric_get_number_of_items(self)
729 __swig_destroy__ = _IMP_statistics.delete_Metric
730 __del__ =
lambda self:
None
733 """__str__(Metric self) -> std::string"""
734 return _IMP_statistics.Metric___str__(self)
738 """__repr__(Metric self) -> std::string"""
739 return _IMP_statistics.Metric___repr__(self)
744 return _object_cast_to_Metric(o)
747 def get_type_name(self):
748 return self.__class__.__name__
749 def do_show(self, out):
751 def get_version_info(self):
752 if"IMP::statistics" ==
"IMP":
753 return VersionInfo(self.__module__,
754 __import__(self.__module__).get_module_version())
757 __import__(self.__module__).get_module_version())
760 return _object_cast_to_Metric(o)
762 def __disown__(self):
764 _IMP_statistics.disown_Metric(self)
765 return weakref_proxy(self)
767 def do_destroy(self):
768 """do_destroy(Metric self)"""
769 return _IMP_statistics.Metric_do_destroy(self)
771 Metric_swigregister = _IMP_statistics.Metric_swigregister
772 Metric_swigregister(Metric)
774 class ChiSquareMetric(Metric):
775 """Proxy of C++ IMP::statistics::ChiSquareMetric class."""
777 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
779 def __init__(self, data_exp, constr_type=0):
781 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
782 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
784 this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
786 self.this.append(this)
790 def add_configuration(self, data, stddev, weight=1.0):
792 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
793 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
795 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
798 def get_data(self, i):
799 """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
800 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
803 def get_standard_deviation(self, i):
804 """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
805 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
808 def do_get_weight(self, i):
809 """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
810 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
813 def get_chi_square_experimental(self, i):
814 """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
815 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
818 def get_version_info(self):
819 """get_version_info(ChiSquareMetric self) -> VersionInfo"""
820 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
824 """__str__(ChiSquareMetric self) -> std::string"""
825 return _IMP_statistics.ChiSquareMetric___str__(self)
829 """__repr__(ChiSquareMetric self) -> std::string"""
830 return _IMP_statistics.ChiSquareMetric___repr__(self)
835 return _object_cast_to_ChiSquareMetric(o)
837 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
838 ChiSquareMetric_swigregister(ChiSquareMetric)
840 class PartitionalClusteringWithCenter(PartitionalClustering):
841 """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class."""
843 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
845 def __init__(self, *args, **kwargs):
846 raise AttributeError(
"No constructor defined")
848 def get_cluster_center(self, i):
849 """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
850 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
853 def get_version_info(self):
854 """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
855 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
859 """__str__(PartitionalClusteringWithCenter self) -> std::string"""
860 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
864 """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
865 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
870 return _object_cast_to_PartitionalClusteringWithCenter(o)
872 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
873 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
875 class ConfigurationSetXYZEmbedding(Embedding):
876 """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class."""
878 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
880 def __init__(self, cs, pi, align=False):
882 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
883 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
885 this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
887 self.this.append(this)
891 def get_version_info(self):
892 """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
893 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
897 """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
898 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
902 """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
903 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
908 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
910 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
911 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
913 class ParticleEmbedding(Embedding):
914 """Proxy of C++ IMP::statistics::ParticleEmbedding class."""
916 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
918 def __init__(self, *args):
920 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
921 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
922 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
924 this = _IMP_statistics.new_ParticleEmbedding(*args)
926 self.this.append(this)
930 def get_version_info(self):
931 """get_version_info(ParticleEmbedding self) -> VersionInfo"""
932 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
936 """__str__(ParticleEmbedding self) -> std::string"""
937 return _IMP_statistics.ParticleEmbedding___str__(self)
941 """__repr__(ParticleEmbedding self) -> std::string"""
942 return _IMP_statistics.ParticleEmbedding___repr__(self)
947 return _object_cast_to_ParticleEmbedding(o)
949 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
950 ParticleEmbedding_swigregister(ParticleEmbedding)
952 class VectorDEmbedding(Embedding):
953 """Proxy of C++ IMP::statistics::VectorDEmbedding class."""
955 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
957 def __init__(self, *args):
959 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
960 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
961 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
962 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
963 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
964 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
966 this = _IMP_statistics.new_VectorDEmbedding(*args)
968 self.this.append(this)
972 def get_version_info(self):
973 """get_version_info(VectorDEmbedding self) -> VersionInfo"""
974 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
978 """__str__(VectorDEmbedding self) -> std::string"""
979 return _IMP_statistics.VectorDEmbedding___str__(self)
983 """__repr__(VectorDEmbedding self) -> std::string"""
984 return _IMP_statistics.VectorDEmbedding___repr__(self)
989 return _object_cast_to_VectorDEmbedding(o)
991 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
992 VectorDEmbedding_swigregister(VectorDEmbedding)
994 class EuclideanMetric(Metric):
995 """Proxy of C++ IMP::statistics::EuclideanMetric class."""
997 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
999 def __init__(self, em):
1000 """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
1001 this = _IMP_statistics.new_EuclideanMetric(em)
1003 self.this.append(this)
1007 def get_version_info(self):
1008 """get_version_info(EuclideanMetric self) -> VersionInfo"""
1009 return _IMP_statistics.EuclideanMetric_get_version_info(self)
1013 """__str__(EuclideanMetric self) -> std::string"""
1014 return _IMP_statistics.EuclideanMetric___str__(self)
1018 """__repr__(EuclideanMetric self) -> std::string"""
1019 return _IMP_statistics.EuclideanMetric___repr__(self)
1024 return _object_cast_to_EuclideanMetric(o)
1026 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
1027 EuclideanMetric_swigregister(EuclideanMetric)
1029 class ConfigurationSetRMSDMetric(Metric):
1030 """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class."""
1032 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1034 def __init__(self, cs, sc, align=False):
1036 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
1037 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
1039 this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
1041 self.this.append(this)
1045 def get_version_info(self):
1046 """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
1047 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
1051 """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
1052 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
1056 """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
1057 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
1062 return _object_cast_to_ConfigurationSetRMSDMetric(o)
1064 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
1065 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
1069 """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
1070 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
1073 """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
1074 return _IMP_statistics.create_bin_based_clustering(embed, side)
1078 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1079 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1081 return _IMP_statistics.create_centrality_clustering(*args)
1084 """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1085 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1089 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1090 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1092 return _IMP_statistics.create_connectivity_clustering(*args)
1095 """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1096 return _IMP_statistics.create_gromos_clustering(d, cutoff)
1099 """get_quantile(Histogram1D h, double fraction) -> double"""
1100 return _IMP_statistics.get_quantile(h, fraction)
1103 """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1104 return _IMP_statistics.get_centroids(d, pc)
1107 """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1108 return _IMP_statistics.get_representatives(d, pc)
1109 class RecursivePartitionalClusteringEmbedding(Embedding):
1110 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class."""
1112 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1114 def __init__(self, metric, clustering):
1115 """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1116 this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1118 self.this.append(this)
1122 def create_full_clustering(self, center_cluster):
1123 """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1124 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1127 def get_version_info(self):
1128 """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1129 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1133 """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1134 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1138 """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1139 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1144 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1146 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1147 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1149 class RecursivePartitionalClusteringMetric(Metric):
1150 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class."""
1152 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1154 def __init__(self, metric, clustering):
1155 """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1156 this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1158 self.this.append(this)
1162 def create_full_clustering(self, center_cluster):
1163 """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1164 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1167 def get_version_info(self):
1168 """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1169 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1173 """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1174 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1178 """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1179 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1184 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1186 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1187 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1189 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1190 """Proxy of C++ IMP::statistics::HistogramD<(1)> class."""
1192 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1194 def __init__(self, *args):
1196 __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1197 __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1199 this = _IMP_statistics.new_Histogram1D(*args)
1201 self.this.append(this)
1205 def add(self, x, weight=1):
1207 add(Histogram1D self, Vector1D x, double weight=1)
1208 add(Histogram1D self, Vector1D x)
1210 return _IMP_statistics.Histogram1D_add(self, x, weight)
1213 def get_total_count(self):
1214 """get_total_count(Histogram1D self) -> double"""
1215 return _IMP_statistics.Histogram1D_get_total_count(self)
1218 def get_frequencies(self):
1219 """get_frequencies(Histogram1D self) -> Histogram1D"""
1220 return _IMP_statistics.Histogram1D_get_frequencies(self)
1223 def get_probability_distribution_function(self):
1224 """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1225 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1228 def get_counts(self):
1229 """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1230 return _IMP_statistics.Histogram1D_get_counts(self)
1234 """get_mean(Histogram1D self) -> Vector1D"""
1235 return _IMP_statistics.Histogram1D_get_mean(self)
1238 def get_dimension(self):
1239 """get_dimension(Histogram1D self) -> unsigned int"""
1240 return _IMP_statistics.Histogram1D_get_dimension(self)
1243 def get_standard_deviation(self, mean):
1244 """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1245 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1248 def get_bounding_box(self):
1249 """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1250 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1253 def get_minimum_and_maximum(self):
1254 """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1255 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1258 def show(self, *args):
1260 show(Histogram1D self, _ostream out)
1261 show(Histogram1D self)
1263 return _IMP_statistics.Histogram1D_show(self, *args)
1267 """__str__(Histogram1D self) -> std::string"""
1268 return _IMP_statistics.Histogram1D___str__(self)
1272 """__repr__(Histogram1D self) -> std::string"""
1273 return _IMP_statistics.Histogram1D___repr__(self)
1276 def __cmp__(self, arg2):
1277 """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1278 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1281 def __eq__(self, arg2):
1282 """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1283 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1285 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1286 __del__ =
lambda self:
None
1287 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1288 Histogram1D_swigregister(Histogram1D)
1290 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1291 """Proxy of C++ IMP::statistics::HistogramD<(2)> class."""
1293 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1295 def __init__(self, *args):
1297 __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1298 __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1300 this = _IMP_statistics.new_Histogram2D(*args)
1302 self.this.append(this)
1306 def add(self, x, weight=1):
1308 add(Histogram2D self, Vector2D x, double weight=1)
1309 add(Histogram2D self, Vector2D x)
1311 return _IMP_statistics.Histogram2D_add(self, x, weight)
1314 def get_total_count(self):
1315 """get_total_count(Histogram2D self) -> double"""
1316 return _IMP_statistics.Histogram2D_get_total_count(self)
1319 def get_frequencies(self):
1320 """get_frequencies(Histogram2D self) -> Histogram2D"""
1321 return _IMP_statistics.Histogram2D_get_frequencies(self)
1324 def get_probability_distribution_function(self):
1325 """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1326 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1329 def get_counts(self):
1330 """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1331 return _IMP_statistics.Histogram2D_get_counts(self)
1335 """get_mean(Histogram2D self) -> Vector2D"""
1336 return _IMP_statistics.Histogram2D_get_mean(self)
1339 def get_dimension(self):
1340 """get_dimension(Histogram2D self) -> unsigned int"""
1341 return _IMP_statistics.Histogram2D_get_dimension(self)
1344 def get_standard_deviation(self, mean):
1345 """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1346 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1349 def get_bounding_box(self):
1350 """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1351 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1354 def get_minimum_and_maximum(self):
1355 """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1356 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1359 def show(self, *args):
1361 show(Histogram2D self, _ostream out)
1362 show(Histogram2D self)
1364 return _IMP_statistics.Histogram2D_show(self, *args)
1368 """__str__(Histogram2D self) -> std::string"""
1369 return _IMP_statistics.Histogram2D___str__(self)
1373 """__repr__(Histogram2D self) -> std::string"""
1374 return _IMP_statistics.Histogram2D___repr__(self)
1377 def __cmp__(self, arg2):
1378 """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1379 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1382 def __eq__(self, arg2):
1383 """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1384 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1386 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1387 __del__ =
lambda self:
None
1388 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1389 Histogram2D_swigregister(Histogram2D)
1391 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1392 """Proxy of C++ IMP::statistics::HistogramD<(3)> class."""
1394 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1396 def __init__(self, *args):
1398 __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1399 __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1401 this = _IMP_statistics.new_Histogram3D(*args)
1403 self.this.append(this)
1407 def add(self, x, weight=1):
1409 add(Histogram3D self, Vector3D x, double weight=1)
1410 add(Histogram3D self, Vector3D x)
1412 return _IMP_statistics.Histogram3D_add(self, x, weight)
1415 def get_total_count(self):
1416 """get_total_count(Histogram3D self) -> double"""
1417 return _IMP_statistics.Histogram3D_get_total_count(self)
1420 def get_frequencies(self):
1421 """get_frequencies(Histogram3D self) -> Histogram3D"""
1422 return _IMP_statistics.Histogram3D_get_frequencies(self)
1425 def get_probability_distribution_function(self):
1426 """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1427 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1430 def get_counts(self):
1431 """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1432 return _IMP_statistics.Histogram3D_get_counts(self)
1436 """get_mean(Histogram3D self) -> Vector3D"""
1437 return _IMP_statistics.Histogram3D_get_mean(self)
1440 def get_dimension(self):
1441 """get_dimension(Histogram3D self) -> unsigned int"""
1442 return _IMP_statistics.Histogram3D_get_dimension(self)
1445 def get_standard_deviation(self, mean):
1446 """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1447 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1450 def get_bounding_box(self):
1451 """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1452 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1455 def get_minimum_and_maximum(self):
1456 """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1457 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1460 def show(self, *args):
1462 show(Histogram3D self, _ostream out)
1463 show(Histogram3D self)
1465 return _IMP_statistics.Histogram3D_show(self, *args)
1469 """__str__(Histogram3D self) -> std::string"""
1470 return _IMP_statistics.Histogram3D___str__(self)
1474 """__repr__(Histogram3D self) -> std::string"""
1475 return _IMP_statistics.Histogram3D___repr__(self)
1478 def __cmp__(self, arg2):
1479 """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1480 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1483 def __eq__(self, arg2):
1484 """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1485 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1487 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1488 __del__ =
lambda self:
None
1489 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1490 Histogram3D_swigregister(Histogram3D)
1492 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1493 """Proxy of C++ IMP::statistics::HistogramD<(4)> class."""
1495 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1497 def __init__(self, *args):
1499 __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1500 __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1502 this = _IMP_statistics.new_Histogram4D(*args)
1504 self.this.append(this)
1508 def add(self, x, weight=1):
1510 add(Histogram4D self, Vector4D x, double weight=1)
1511 add(Histogram4D self, Vector4D x)
1513 return _IMP_statistics.Histogram4D_add(self, x, weight)
1516 def get_total_count(self):
1517 """get_total_count(Histogram4D self) -> double"""
1518 return _IMP_statistics.Histogram4D_get_total_count(self)
1521 def get_frequencies(self):
1522 """get_frequencies(Histogram4D self) -> Histogram4D"""
1523 return _IMP_statistics.Histogram4D_get_frequencies(self)
1526 def get_probability_distribution_function(self):
1527 """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1528 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1531 def get_counts(self):
1532 """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1533 return _IMP_statistics.Histogram4D_get_counts(self)
1537 """get_mean(Histogram4D self) -> Vector4D"""
1538 return _IMP_statistics.Histogram4D_get_mean(self)
1541 def get_dimension(self):
1542 """get_dimension(Histogram4D self) -> unsigned int"""
1543 return _IMP_statistics.Histogram4D_get_dimension(self)
1546 def get_standard_deviation(self, mean):
1547 """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1548 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1551 def get_bounding_box(self):
1552 """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1553 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1556 def get_minimum_and_maximum(self):
1557 """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1558 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1561 def show(self, *args):
1563 show(Histogram4D self, _ostream out)
1564 show(Histogram4D self)
1566 return _IMP_statistics.Histogram4D_show(self, *args)
1570 """__str__(Histogram4D self) -> std::string"""
1571 return _IMP_statistics.Histogram4D___str__(self)
1575 """__repr__(Histogram4D self) -> std::string"""
1576 return _IMP_statistics.Histogram4D___repr__(self)
1579 def __cmp__(self, arg2):
1580 """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1581 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1584 def __eq__(self, arg2):
1585 """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1586 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1588 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1589 __del__ =
lambda self:
None
1590 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1591 Histogram4D_swigregister(Histogram4D)
1593 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1594 """Proxy of C++ IMP::statistics::HistogramD<(5)> class."""
1596 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1598 def __init__(self, *args):
1600 __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1601 __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1603 this = _IMP_statistics.new_Histogram5D(*args)
1605 self.this.append(this)
1609 def add(self, x, weight=1):
1611 add(Histogram5D self, Vector5D x, double weight=1)
1612 add(Histogram5D self, Vector5D x)
1614 return _IMP_statistics.Histogram5D_add(self, x, weight)
1617 def get_total_count(self):
1618 """get_total_count(Histogram5D self) -> double"""
1619 return _IMP_statistics.Histogram5D_get_total_count(self)
1622 def get_frequencies(self):
1623 """get_frequencies(Histogram5D self) -> Histogram5D"""
1624 return _IMP_statistics.Histogram5D_get_frequencies(self)
1627 def get_probability_distribution_function(self):
1628 """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1629 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1632 def get_counts(self):
1633 """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1634 return _IMP_statistics.Histogram5D_get_counts(self)
1638 """get_mean(Histogram5D self) -> Vector5D"""
1639 return _IMP_statistics.Histogram5D_get_mean(self)
1642 def get_dimension(self):
1643 """get_dimension(Histogram5D self) -> unsigned int"""
1644 return _IMP_statistics.Histogram5D_get_dimension(self)
1647 def get_standard_deviation(self, mean):
1648 """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1649 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1652 def get_bounding_box(self):
1653 """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1654 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1657 def get_minimum_and_maximum(self):
1658 """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1659 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1662 def show(self, *args):
1664 show(Histogram5D self, _ostream out)
1665 show(Histogram5D self)
1667 return _IMP_statistics.Histogram5D_show(self, *args)
1671 """__str__(Histogram5D self) -> std::string"""
1672 return _IMP_statistics.Histogram5D___str__(self)
1676 """__repr__(Histogram5D self) -> std::string"""
1677 return _IMP_statistics.Histogram5D___repr__(self)
1680 def __cmp__(self, arg2):
1681 """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1682 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1685 def __eq__(self, arg2):
1686 """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1687 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1689 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1690 __del__ =
lambda self:
None
1691 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1692 Histogram5D_swigregister(Histogram5D)
1694 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1695 """Proxy of C++ IMP::statistics::HistogramD<(6)> class."""
1697 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1699 def __init__(self, *args):
1701 __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1702 __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1704 this = _IMP_statistics.new_Histogram6D(*args)
1706 self.this.append(this)
1710 def add(self, x, weight=1):
1712 add(Histogram6D self, Vector6D x, double weight=1)
1713 add(Histogram6D self, Vector6D x)
1715 return _IMP_statistics.Histogram6D_add(self, x, weight)
1718 def get_total_count(self):
1719 """get_total_count(Histogram6D self) -> double"""
1720 return _IMP_statistics.Histogram6D_get_total_count(self)
1723 def get_frequencies(self):
1724 """get_frequencies(Histogram6D self) -> Histogram6D"""
1725 return _IMP_statistics.Histogram6D_get_frequencies(self)
1728 def get_probability_distribution_function(self):
1729 """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1730 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1733 def get_counts(self):
1734 """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1735 return _IMP_statistics.Histogram6D_get_counts(self)
1739 """get_mean(Histogram6D self) -> Vector6D"""
1740 return _IMP_statistics.Histogram6D_get_mean(self)
1743 def get_dimension(self):
1744 """get_dimension(Histogram6D self) -> unsigned int"""
1745 return _IMP_statistics.Histogram6D_get_dimension(self)
1748 def get_standard_deviation(self, mean):
1749 """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1750 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1753 def get_bounding_box(self):
1754 """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1755 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1758 def get_minimum_and_maximum(self):
1759 """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1760 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1763 def show(self, *args):
1765 show(Histogram6D self, _ostream out)
1766 show(Histogram6D self)
1768 return _IMP_statistics.Histogram6D_show(self, *args)
1772 """__str__(Histogram6D self) -> std::string"""
1773 return _IMP_statistics.Histogram6D___str__(self)
1777 """__repr__(Histogram6D self) -> std::string"""
1778 return _IMP_statistics.Histogram6D___repr__(self)
1781 def __cmp__(self, arg2):
1782 """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1783 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1786 def __eq__(self, arg2):
1787 """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1788 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1790 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1791 __del__ =
lambda self:
None
1792 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1793 Histogram6D_swigregister(Histogram6D)
1795 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1796 """Proxy of C++ IMP::statistics::HistogramD<(-1)> class."""
1798 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1800 def __init__(self, *args):
1802 __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1803 __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1805 this = _IMP_statistics.new_HistogramKD(*args)
1807 self.this.append(this)
1811 def add(self, x, weight=1):
1813 add(HistogramKD self, VectorKD x, double weight=1)
1814 add(HistogramKD self, VectorKD x)
1816 return _IMP_statistics.HistogramKD_add(self, x, weight)
1819 def get_total_count(self):
1820 """get_total_count(HistogramKD self) -> double"""
1821 return _IMP_statistics.HistogramKD_get_total_count(self)
1824 def get_frequencies(self):
1825 """get_frequencies(HistogramKD self) -> HistogramKD"""
1826 return _IMP_statistics.HistogramKD_get_frequencies(self)
1829 def get_probability_distribution_function(self):
1830 """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1831 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1834 def get_counts(self):
1835 """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1836 return _IMP_statistics.HistogramKD_get_counts(self)
1840 """get_mean(HistogramKD self) -> VectorKD"""
1841 return _IMP_statistics.HistogramKD_get_mean(self)
1844 def get_dimension(self):
1845 """get_dimension(HistogramKD self) -> unsigned int"""
1846 return _IMP_statistics.HistogramKD_get_dimension(self)
1849 def get_standard_deviation(self, mean):
1850 """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1851 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1854 def get_bounding_box(self):
1855 """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1856 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1859 def get_minimum_and_maximum(self):
1860 """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1861 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1864 def show(self, *args):
1866 show(HistogramKD self, _ostream out)
1867 show(HistogramKD self)
1869 return _IMP_statistics.HistogramKD_show(self, *args)
1873 """__str__(HistogramKD self) -> std::string"""
1874 return _IMP_statistics.HistogramKD___str__(self)
1878 """__repr__(HistogramKD self) -> std::string"""
1879 return _IMP_statistics.HistogramKD___repr__(self)
1882 def __cmp__(self, arg2):
1883 """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1884 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1887 def __eq__(self, arg2):
1888 """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1889 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1891 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1892 __del__ =
lambda self:
None
1893 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1894 HistogramKD_swigregister(HistogramKD)
1896 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1897 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class."""
1899 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1900 __repr__ = _swig_repr
1902 def __setitem__(self, *args):
1904 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1905 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1907 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1910 def __getitem__(self, *args):
1912 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1913 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1915 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1918 def __init__(self, *args):
1920 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1921 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1922 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1923 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1924 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1926 this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1928 self.this.append(this)
1933 """get_is_dense() -> bool"""
1934 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1936 get_is_dense = staticmethod(get_is_dense)
1938 def show(self, *args):
1940 show(_IntDenseGridStorageKD self, _ostream out)
1941 show(_IntDenseGridStorageKD self)
1943 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1946 def add_voxel(self, arg2, arg3):
1947 """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1948 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1951 def get_all_voxels(self):
1952 """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1953 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1955 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1956 __del__ =
lambda self:
None
1957 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1958 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1960 def _IntDenseGridStorageKD_get_is_dense():
1961 """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1962 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1964 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1965 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class."""
1967 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1968 __repr__ = _swig_repr
1970 def __setitem__(self, *args):
1972 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1973 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1975 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1978 def __getitem__(self, *args):
1980 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1981 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1983 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1986 def __init__(self, *args):
1988 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1989 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1990 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1991 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1992 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1994 this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1996 self.this.append(this)
2001 """get_is_dense() -> bool"""
2002 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2004 get_is_dense = staticmethod(get_is_dense)
2006 def show(self, *args):
2008 show(_FloatDenseGridStorageKD self, _ostream out)
2009 show(_FloatDenseGridStorageKD self)
2011 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
2014 def add_voxel(self, arg2, arg3):
2015 """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
2016 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
2019 def get_all_voxels(self):
2020 """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
2021 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
2023 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
2024 __del__ =
lambda self:
None
2025 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
2026 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
2028 def _FloatDenseGridStorageKD_get_is_dense():
2029 """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
2030 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2032 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
2033 """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class."""
2035 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2036 __repr__ = _swig_repr
2038 def __init__(self, *args):
2040 __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
2041 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
2042 __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
2043 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
2044 __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
2045 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
2046 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
2047 __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
2048 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
2049 __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
2050 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
2051 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
2053 this = _IMP_statistics.new__HistogramCountsGridKD(*args)
2055 self.this.append(this)
2059 def show(self, *args):
2061 show(_HistogramCountsGridKD self, _ostream out)
2062 show(_HistogramCountsGridKD self)
2064 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
2067 def __getitem__(self, *args):
2069 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
2070 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
2072 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
2075 def __setitem__(self, *args):
2077 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
2078 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2080 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2083 def add_voxel(self, pt, vt):
2084 """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2085 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2088 def get_extended_index(self, index):
2089 """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2090 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2093 def get_bounding_box(self, *args):
2095 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2096 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2097 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2099 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2102 def set_bounding_box(self, bb3):
2103 """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2104 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2107 def get_nearest_index(self, pt):
2108 """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2109 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2112 def get_nearest_extended_index(self, pt):
2113 """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2114 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2116 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2117 __del__ =
lambda self:
None
2118 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2119 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2121 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2122 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class."""
2124 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2125 __repr__ = _swig_repr
2127 def __setitem__(self, *args):
2129 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2130 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2132 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2135 def __getitem__(self, *args):
2137 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2138 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2140 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2143 def __init__(self, *args):
2145 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2146 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2147 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2148 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2149 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2151 this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2153 self.this.append(this)
2158 """get_is_dense() -> bool"""
2159 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2161 get_is_dense = staticmethod(get_is_dense)
2163 def show(self, *args):
2165 show(_IntDenseGridStorage1D self, _ostream out)
2166 show(_IntDenseGridStorage1D self)
2168 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2171 def add_voxel(self, arg2, arg3):
2172 """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2173 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2176 def get_all_voxels(self):
2177 """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2178 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2180 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2181 __del__ =
lambda self:
None
2182 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2183 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2185 def _IntDenseGridStorage1D_get_is_dense():
2186 """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2187 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2189 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2190 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class."""
2192 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2193 __repr__ = _swig_repr
2195 def __setitem__(self, *args):
2197 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2198 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2200 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2203 def __getitem__(self, *args):
2205 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2206 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2208 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2211 def __init__(self, *args):
2213 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2214 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2215 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2216 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2217 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2219 this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2221 self.this.append(this)
2226 """get_is_dense() -> bool"""
2227 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2229 get_is_dense = staticmethod(get_is_dense)
2231 def show(self, *args):
2233 show(_FloatDenseGridStorage1D self, _ostream out)
2234 show(_FloatDenseGridStorage1D self)
2236 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2239 def add_voxel(self, arg2, arg3):
2240 """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2241 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2244 def get_all_voxels(self):
2245 """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2246 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2248 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2249 __del__ =
lambda self:
None
2250 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2251 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2253 def _FloatDenseGridStorage1D_get_is_dense():
2254 """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2255 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2257 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2258 """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class."""
2260 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2261 __repr__ = _swig_repr
2263 def __init__(self, *args):
2265 __init__(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
2266 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2267 __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
2268 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2269 __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
2270 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2271 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2272 __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
2273 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2274 __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
2275 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2276 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2278 this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2280 self.this.append(this)
2284 def show(self, *args):
2286 show(_HistogramCountsGrid1D self, _ostream out)
2287 show(_HistogramCountsGrid1D self)
2289 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2292 def __getitem__(self, *args):
2294 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2295 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2297 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2300 def __setitem__(self, *args):
2302 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2303 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2305 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2308 def add_voxel(self, pt, vt):
2309 """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2310 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2313 def get_extended_index(self, index):
2314 """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2315 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2318 def get_bounding_box(self, *args):
2320 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2321 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2322 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2324 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2327 def set_bounding_box(self, bb3):
2328 """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2329 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2332 def get_nearest_index(self, pt):
2333 """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2334 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2337 def get_nearest_extended_index(self, pt):
2338 """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2339 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2341 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2342 __del__ =
lambda self:
None
2343 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2344 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2346 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2347 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class."""
2349 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2350 __repr__ = _swig_repr
2352 def __setitem__(self, *args):
2354 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2355 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2357 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2360 def __getitem__(self, *args):
2362 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2363 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2365 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2368 def __init__(self, *args):
2370 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2371 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2372 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2373 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2374 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2376 this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2378 self.this.append(this)
2383 """get_is_dense() -> bool"""
2384 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2386 get_is_dense = staticmethod(get_is_dense)
2388 def show(self, *args):
2390 show(_IntDenseGridStorage2D self, _ostream out)
2391 show(_IntDenseGridStorage2D self)
2393 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2396 def add_voxel(self, arg2, arg3):
2397 """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2398 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2401 def get_all_voxels(self):
2402 """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2403 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2405 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2406 __del__ =
lambda self:
None
2407 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2408 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2410 def _IntDenseGridStorage2D_get_is_dense():
2411 """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2412 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2414 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2415 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class."""
2417 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2418 __repr__ = _swig_repr
2420 def __setitem__(self, *args):
2422 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2423 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2425 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2428 def __getitem__(self, *args):
2430 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2431 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2433 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2436 def __init__(self, *args):
2438 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2439 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2440 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2441 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2442 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2444 this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2446 self.this.append(this)
2451 """get_is_dense() -> bool"""
2452 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2454 get_is_dense = staticmethod(get_is_dense)
2456 def show(self, *args):
2458 show(_FloatDenseGridStorage2D self, _ostream out)
2459 show(_FloatDenseGridStorage2D self)
2461 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2464 def add_voxel(self, arg2, arg3):
2465 """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2466 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2469 def get_all_voxels(self):
2470 """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2471 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2473 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2474 __del__ =
lambda self:
None
2475 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2476 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2478 def _FloatDenseGridStorage2D_get_is_dense():
2479 """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2480 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2482 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2483 """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class."""
2485 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2486 __repr__ = _swig_repr
2488 def __init__(self, *args):
2490 __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
2491 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2492 __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
2493 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2494 __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
2495 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2496 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2497 __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
2498 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2499 __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
2500 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2501 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2503 this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2505 self.this.append(this)
2509 def show(self, *args):
2511 show(_HistogramCountsGrid2D self, _ostream out)
2512 show(_HistogramCountsGrid2D self)
2514 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2517 def __getitem__(self, *args):
2519 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2520 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2522 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2525 def __setitem__(self, *args):
2527 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2528 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2530 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2533 def add_voxel(self, pt, vt):
2534 """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2535 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2538 def get_extended_index(self, index):
2539 """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2540 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2543 def get_bounding_box(self, *args):
2545 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2546 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2547 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2549 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2552 def set_bounding_box(self, bb3):
2553 """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2554 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2557 def get_nearest_index(self, pt):
2558 """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2559 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2562 def get_nearest_extended_index(self, pt):
2563 """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2564 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2566 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2567 __del__ =
lambda self:
None
2568 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2569 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2571 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2572 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class."""
2574 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2575 __repr__ = _swig_repr
2577 def __setitem__(self, *args):
2579 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2580 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2582 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2585 def __getitem__(self, *args):
2587 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2588 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2590 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2593 def __init__(self, *args):
2595 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2596 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2597 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2598 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2599 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2601 this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2603 self.this.append(this)
2608 """get_is_dense() -> bool"""
2609 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2611 get_is_dense = staticmethod(get_is_dense)
2613 def show(self, *args):
2615 show(_IntDenseGridStorage3D self, _ostream out)
2616 show(_IntDenseGridStorage3D self)
2618 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2621 def add_voxel(self, arg2, arg3):
2622 """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2623 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2626 def get_all_voxels(self):
2627 """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2628 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2630 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2631 __del__ =
lambda self:
None
2632 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2633 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2635 def _IntDenseGridStorage3D_get_is_dense():
2636 """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2637 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2639 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2640 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class."""
2642 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2643 __repr__ = _swig_repr
2645 def __setitem__(self, *args):
2647 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2648 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2650 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2653 def __getitem__(self, *args):
2655 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2656 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2658 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2661 def __init__(self, *args):
2663 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2664 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2665 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2666 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2667 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2669 this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2671 self.this.append(this)
2676 """get_is_dense() -> bool"""
2677 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2679 get_is_dense = staticmethod(get_is_dense)
2681 def show(self, *args):
2683 show(_FloatDenseGridStorage3D self, _ostream out)
2684 show(_FloatDenseGridStorage3D self)
2686 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2689 def add_voxel(self, arg2, arg3):
2690 """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2691 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2694 def get_all_voxels(self):
2695 """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2696 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2698 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2699 __del__ =
lambda self:
None
2700 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2701 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2703 def _FloatDenseGridStorage3D_get_is_dense():
2704 """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2705 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2707 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2708 """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class."""
2710 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2711 __repr__ = _swig_repr
2713 def __init__(self, *args):
2715 __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
2716 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2717 __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
2718 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2719 __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
2720 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2721 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2722 __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
2723 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2724 __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
2725 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2726 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2728 this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2730 self.this.append(this)
2734 def show(self, *args):
2736 show(_HistogramCountsGrid3D self, _ostream out)
2737 show(_HistogramCountsGrid3D self)
2739 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2742 def __getitem__(self, *args):
2744 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2745 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2747 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2750 def __setitem__(self, *args):
2752 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2753 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2755 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2758 def add_voxel(self, pt, vt):
2759 """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2760 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2763 def get_extended_index(self, index):
2764 """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2765 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2768 def get_bounding_box(self, *args):
2770 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2771 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2772 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2774 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2777 def set_bounding_box(self, bb3):
2778 """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2779 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2782 def get_nearest_index(self, pt):
2783 """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2784 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2787 def get_nearest_extended_index(self, pt):
2788 """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2789 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2791 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2792 __del__ =
lambda self:
None
2793 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2794 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2796 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2797 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class."""
2799 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2800 __repr__ = _swig_repr
2802 def __setitem__(self, *args):
2804 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2805 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2807 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2810 def __getitem__(self, *args):
2812 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2813 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2815 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2818 def __init__(self, *args):
2820 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2821 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2822 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2823 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2824 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2826 this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2828 self.this.append(this)
2833 """get_is_dense() -> bool"""
2834 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2836 get_is_dense = staticmethod(get_is_dense)
2838 def show(self, *args):
2840 show(_IntDenseGridStorage4D self, _ostream out)
2841 show(_IntDenseGridStorage4D self)
2843 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2846 def add_voxel(self, arg2, arg3):
2847 """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2848 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2851 def get_all_voxels(self):
2852 """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2853 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2855 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2856 __del__ =
lambda self:
None
2857 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2858 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2860 def _IntDenseGridStorage4D_get_is_dense():
2861 """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2862 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2864 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2865 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class."""
2867 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2868 __repr__ = _swig_repr
2870 def __setitem__(self, *args):
2872 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2873 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2875 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2878 def __getitem__(self, *args):
2880 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2881 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2883 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2886 def __init__(self, *args):
2888 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2889 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2890 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2891 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2892 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2894 this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2896 self.this.append(this)
2901 """get_is_dense() -> bool"""
2902 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2904 get_is_dense = staticmethod(get_is_dense)
2906 def show(self, *args):
2908 show(_FloatDenseGridStorage4D self, _ostream out)
2909 show(_FloatDenseGridStorage4D self)
2911 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2914 def add_voxel(self, arg2, arg3):
2915 """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2916 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2919 def get_all_voxels(self):
2920 """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2921 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2923 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2924 __del__ =
lambda self:
None
2925 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2926 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2928 def _FloatDenseGridStorage4D_get_is_dense():
2929 """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2930 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2932 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2933 """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class."""
2935 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2936 __repr__ = _swig_repr
2938 def __init__(self, *args):
2940 __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
2941 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2942 __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
2943 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2944 __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
2945 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2946 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2947 __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
2948 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2949 __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
2950 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2951 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2953 this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2955 self.this.append(this)
2959 def show(self, *args):
2961 show(_HistogramCountsGrid4D self, _ostream out)
2962 show(_HistogramCountsGrid4D self)
2964 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2967 def __getitem__(self, *args):
2969 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2970 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2972 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2975 def __setitem__(self, *args):
2977 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2978 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2980 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2983 def add_voxel(self, pt, vt):
2984 """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2985 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2988 def get_extended_index(self, index):
2989 """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2990 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2993 def get_bounding_box(self, *args):
2995 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2996 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2997 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2999 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
3002 def set_bounding_box(self, bb3):
3003 """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
3004 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
3007 def get_nearest_index(self, pt):
3008 """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
3009 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
3012 def get_nearest_extended_index(self, pt):
3013 """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
3014 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
3016 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
3017 __del__ =
lambda self:
None
3018 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
3019 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
3021 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3022 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class."""
3024 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3025 __repr__ = _swig_repr
3027 def __setitem__(self, *args):
3029 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
3030 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
3032 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
3035 def __getitem__(self, *args):
3037 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
3038 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
3040 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
3043 def __init__(self, *args):
3045 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
3046 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
3047 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
3048 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
3049 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
3051 this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
3053 self.this.append(this)
3058 """get_is_dense() -> bool"""
3059 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3061 get_is_dense = staticmethod(get_is_dense)
3063 def show(self, *args):
3065 show(_IntDenseGridStorage5D self, _ostream out)
3066 show(_IntDenseGridStorage5D self)
3068 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
3071 def add_voxel(self, arg2, arg3):
3072 """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
3073 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
3076 def get_all_voxels(self):
3077 """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
3078 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3080 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3081 __del__ =
lambda self:
None
3082 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3083 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3085 def _IntDenseGridStorage5D_get_is_dense():
3086 """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3087 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3089 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3090 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class."""
3092 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3093 __repr__ = _swig_repr
3095 def __setitem__(self, *args):
3097 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3098 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3100 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3103 def __getitem__(self, *args):
3105 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3106 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3108 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3111 def __init__(self, *args):
3113 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3114 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3115 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3116 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3117 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3119 this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3121 self.this.append(this)
3126 """get_is_dense() -> bool"""
3127 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3129 get_is_dense = staticmethod(get_is_dense)
3131 def show(self, *args):
3133 show(_FloatDenseGridStorage5D self, _ostream out)
3134 show(_FloatDenseGridStorage5D self)
3136 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3139 def add_voxel(self, arg2, arg3):
3140 """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3141 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3144 def get_all_voxels(self):
3145 """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3146 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3148 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3149 __del__ =
lambda self:
None
3150 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3151 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3153 def _FloatDenseGridStorage5D_get_is_dense():
3154 """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3155 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3157 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3158 """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class."""
3160 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3161 __repr__ = _swig_repr
3163 def __init__(self, *args):
3165 __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
3166 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3167 __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
3168 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3169 __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
3170 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3171 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3172 __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
3173 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3174 __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
3175 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3176 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3178 this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3180 self.this.append(this)
3184 def show(self, *args):
3186 show(_HistogramCountsGrid5D self, _ostream out)
3187 show(_HistogramCountsGrid5D self)
3189 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3192 def __getitem__(self, *args):
3194 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3195 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3197 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3200 def __setitem__(self, *args):
3202 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3203 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3205 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3208 def add_voxel(self, pt, vt):
3209 """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3210 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3213 def get_extended_index(self, index):
3214 """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3215 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3218 def get_bounding_box(self, *args):
3220 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3221 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3222 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3224 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3227 def set_bounding_box(self, bb3):
3228 """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3229 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3232 def get_nearest_index(self, pt):
3233 """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3234 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3237 def get_nearest_extended_index(self, pt):
3238 """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3239 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3241 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3242 __del__ =
lambda self:
None
3243 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3244 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3246 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3247 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class."""
3249 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3250 __repr__ = _swig_repr
3252 def __setitem__(self, *args):
3254 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3255 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3257 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3260 def __getitem__(self, *args):
3262 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3263 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3265 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3268 def __init__(self, *args):
3270 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3271 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3272 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3273 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3274 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3276 this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3278 self.this.append(this)
3283 """get_is_dense() -> bool"""
3284 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3286 get_is_dense = staticmethod(get_is_dense)
3288 def show(self, *args):
3290 show(_IntDenseGridStorage6D self, _ostream out)
3291 show(_IntDenseGridStorage6D self)
3293 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3296 def add_voxel(self, arg2, arg3):
3297 """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3298 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3301 def get_all_voxels(self):
3302 """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3303 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3305 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3306 __del__ =
lambda self:
None
3307 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3308 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3310 def _IntDenseGridStorage6D_get_is_dense():
3311 """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3312 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3314 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3315 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class."""
3317 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3318 __repr__ = _swig_repr
3320 def __setitem__(self, *args):
3322 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3323 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3325 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3328 def __getitem__(self, *args):
3330 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3331 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3333 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3336 def __init__(self, *args):
3338 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3339 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3340 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3341 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3342 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3344 this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3346 self.this.append(this)
3351 """get_is_dense() -> bool"""
3352 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3354 get_is_dense = staticmethod(get_is_dense)
3356 def show(self, *args):
3358 show(_FloatDenseGridStorage6D self, _ostream out)
3359 show(_FloatDenseGridStorage6D self)
3361 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3364 def add_voxel(self, arg2, arg3):
3365 """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3366 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3369 def get_all_voxels(self):
3370 """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3371 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3373 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3374 __del__ =
lambda self:
None
3375 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3376 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3378 def _FloatDenseGridStorage6D_get_is_dense():
3379 """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3380 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3382 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3383 """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class."""
3385 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3386 __repr__ = _swig_repr
3388 def __init__(self, *args):
3390 __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
3391 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3392 __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
3393 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3394 __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
3395 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3396 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3397 __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
3398 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3399 __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
3400 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3401 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3403 this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3405 self.this.append(this)
3409 def show(self, *args):
3411 show(_HistogramCountsGrid6D self, _ostream out)
3412 show(_HistogramCountsGrid6D self)
3414 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3417 def __getitem__(self, *args):
3419 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3420 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3422 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3425 def __setitem__(self, *args):
3427 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3428 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3430 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3433 def add_voxel(self, pt, vt):
3434 """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3435 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3438 def get_extended_index(self, index):
3439 """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3440 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3443 def get_bounding_box(self, *args):
3445 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3446 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3447 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3449 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3452 def set_bounding_box(self, bb3):
3453 """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3454 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3457 def get_nearest_index(self, pt):
3458 """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3459 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3462 def get_nearest_extended_index(self, pt):
3463 """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3464 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3466 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3467 __del__ =
lambda self:
None
3468 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3469 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3472 from .
import _histogram
3473 show_histogram= _histogram.show_histogram
3476 def get_module_version():
3477 """get_module_version() -> std::string const"""
3478 return _IMP_statistics.get_module_version()
3481 """get_example_path(std::string fname) -> std::string"""
3482 return _IMP_statistics.get_example_path(fname)
3485 """get_data_path(std::string fname) -> std::string"""
3486 return _IMP_statistics.get_data_path(fname)
3488 from .
import _version_check
3489 _version_check.check_version(get_module_version())
3490 __version__ = get_module_version()
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
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.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
PartitionalClustering * create_gromos_clustering(Metric *d, double cutoff)
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
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)
Ints get_representatives(Embedding *d, PartitionalClustering *pc)