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"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
125 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
130 incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
131 incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
133 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
138 decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
139 decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
141 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
150 """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
151 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
155 """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
156 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
160 """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
161 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
165 """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
166 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
170 """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
171 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
176 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
181 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
186 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
191 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
196 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
201 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
207 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
213 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
214 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
223 _IMP_statistics.IMP_DEBUG_swigconstant(_IMP_statistics)
224 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
226 _IMP_statistics.IMP_RELEASE_swigconstant(_IMP_statistics)
227 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
229 _IMP_statistics.IMP_SILENT_swigconstant(_IMP_statistics)
230 IMP_SILENT = _IMP_statistics.IMP_SILENT
232 _IMP_statistics.IMP_PROGRESS_swigconstant(_IMP_statistics)
233 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
235 _IMP_statistics.IMP_TERSE_swigconstant(_IMP_statistics)
236 IMP_TERSE = _IMP_statistics.IMP_TERSE
238 _IMP_statistics.IMP_VERBOSE_swigconstant(_IMP_statistics)
239 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
241 _IMP_statistics.IMP_MEMORY_swigconstant(_IMP_statistics)
242 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
244 _IMP_statistics.IMP_NONE_swigconstant(_IMP_statistics)
245 IMP_NONE = _IMP_statistics.IMP_NONE
247 _IMP_statistics.IMP_USAGE_swigconstant(_IMP_statistics)
248 IMP_USAGE = _IMP_statistics.IMP_USAGE
250 _IMP_statistics.IMP_INTERNAL_swigconstant(_IMP_statistics)
251 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
253 _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_statistics)
254 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
256 _IMP_statistics.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_statistics)
257 IMP_COMPILER_HAS_AUTO = _IMP_statistics.IMP_COMPILER_HAS_AUTO
259 _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_statistics)
260 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
262 _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_statistics)
263 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_statistics.IMP_COMPILER_HAS_UNIQUE_PTR
265 _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
266 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
268 _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_statistics)
269 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
271 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_statistics)
272 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
274 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_statistics)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
277 _IMP_statistics.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
278 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
281 class _DirectorObjects(object):
282 """@internal Simple class to keep references to director objects
283 to prevent premature deletion."""
286 def register(self, obj):
287 """Take a reference to a director object; will only work for
288 refcounted C++ classes"""
289 if hasattr(obj,
'get_ref_count'):
290 self._objects.append(obj)
292 """Only drop our reference and allow cleanup by Python if no other
293 Python references exist (we hold 3 references: one in self._objects,
294 one in x, and one in the argument list for getrefcount) *and* no
295 other C++ references exist (the Python object always holds one)"""
296 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
297 or x.get_ref_count() > 1]
301 def get_object_count(self):
302 """Get number of director objects (useful for testing only)"""
303 return len(self._objects)
304 _director_objects = _DirectorObjects()
306 class _ostream(object):
307 """Proxy of C++ std::ostream class"""
308 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
310 def __init__(self, *args, **kwargs):
311 raise AttributeError(
"No constructor defined")
312 __repr__ = _swig_repr
314 def write(self, osa_buf):
315 """write(_ostream self, char const * osa_buf)"""
316 return _IMP_statistics._ostream_write(self, osa_buf)
318 _ostream_swigregister = _IMP_statistics._ostream_swigregister
319 _ostream_swigregister(_ostream)
322 _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_statistics)
323 IMP_COMPILER_HAS_OVERRIDE = _IMP_statistics.IMP_COMPILER_HAS_OVERRIDE
325 _IMP_statistics.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_statistics)
326 IMP_COMPILER_HAS_FINAL = _IMP_statistics.IMP_COMPILER_HAS_FINAL
328 _IMP_statistics.IMP_HAS_NOEXCEPT_swigconstant(_IMP_statistics)
329 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
332 _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
333 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
335 _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
336 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
338 _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
339 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
341 _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
342 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
344 _IMP_statistics.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
345 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
348 _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
349 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
351 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
352 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
354 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
355 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
357 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
358 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
360 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
361 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
363 _IMP_statistics.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_statistics)
364 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
366 _IMP_statistics.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_statistics)
367 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
369 _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_statistics)
370 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
373 _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
374 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
376 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
377 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
379 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
380 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
382 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
383 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
385 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
386 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
388 _IMP_statistics.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_statistics)
389 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
391 _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_statistics)
392 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
395 _plural_types.append(
"Histogram1Ds")
396 _value_types.append(
"Histogram1D")
400 _plural_types.append(
"Histogram2Ds")
401 _value_types.append(
"Histogram2D")
405 _plural_types.append(
"Histogram3Ds")
406 _value_types.append(
"Histogram3D")
410 _plural_types.append(
"Histogram4Ds")
411 _value_types.append(
"Histogram4D")
415 _plural_types.append(
"Histogram5Ds")
416 _value_types.append(
"Histogram5D")
420 _plural_types.append(
"Histogram6Ds")
421 _value_types.append(
"Histogram6D")
425 _plural_types.append(
"Histogram1Ds")
426 _value_types.append(
"HistogramD<1>")
430 _plural_types.append(
"Histogram2Ds")
431 _value_types.append(
"HistogramD<2>")
435 _plural_types.append(
"Histogram3Ds")
436 _value_types.append(
"HistogramD<3>")
440 _plural_types.append(
"Histogram4Ds")
441 _value_types.append(
"HistogramD<4>")
445 _plural_types.append(
"Histogram5Ds")
446 _value_types.append(
"HistogramD<5>")
450 _plural_types.append(
"Histogram6Ds")
451 _value_types.append(
"HistogramD<6>")
455 _plural_types.append(
"HistogramKDs")
456 _value_types.append(
"HistogramKD")
460 _plural_types.append(
"HistogramKDs")
461 _value_types.append(
"HistogramD<-1>")
464 _object_types.append(
"PartitionalClustering")
467 def _object_cast_to_PartitionalClustering(o):
468 """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
469 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
471 _object_types.append(
"PartitionalClusteringWithCenter")
474 def _object_cast_to_PartitionalClusteringWithCenter(o):
475 """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
476 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
478 _object_types.append(
"Embedding")
481 def _object_cast_to_Embedding(o):
482 """_object_cast_to_Embedding(Object o) -> Embedding"""
483 return _IMP_statistics._object_cast_to_Embedding(o)
485 _object_types.append(
"ConfigurationSetXYZEmbedding")
488 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
489 """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
490 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
492 _object_types.append(
"VectorDEmbedding")
495 def _object_cast_to_VectorDEmbedding(o):
496 """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
497 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
499 _object_types.append(
"ParticleEmbedding")
502 def _object_cast_to_ParticleEmbedding(o):
503 """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
504 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
506 _object_types.append(
"Metric")
509 def _object_cast_to_Metric(o):
510 """_object_cast_to_Metric(Object o) -> Metric"""
511 return _IMP_statistics._object_cast_to_Metric(o)
513 _object_types.append(
"EuclideanMetric")
516 def _object_cast_to_EuclideanMetric(o):
517 """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
518 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
520 _object_types.append(
"ConfigurationSetRMSDMetric")
523 def _object_cast_to_ConfigurationSetRMSDMetric(o):
524 """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
525 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
527 _object_types.append(
"RecursivePartitionalClusteringMetric")
530 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
531 """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
532 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
534 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
537 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
538 """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
539 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
541 _object_types.append(
"ChiSquareMetric")
544 def _object_cast_to_ChiSquareMetric(o):
545 """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
546 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
548 """Proxy of C++ IMP::statistics::PartitionalClustering class"""
549 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
551 def __init__(self, *args, **kwargs):
552 raise AttributeError(
"No constructor defined - class is abstract")
554 def get_number_of_clusters(self):
555 """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
556 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
559 def get_cluster(self, cluster_index):
560 """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
561 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
564 def get_cluster_representative(self, cluster_index):
565 """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
566 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
568 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
569 __del__ =
lambda self:
None
572 """__str__(PartitionalClustering self) -> std::string"""
573 return _IMP_statistics.PartitionalClustering___str__(self)
577 """__repr__(PartitionalClustering self) -> std::string"""
578 return _IMP_statistics.PartitionalClustering___repr__(self)
583 return _object_cast_to_PartitionalClustering(o)
585 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
586 PartitionalClustering_swigregister(PartitionalClustering)
590 """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
591 return _IMP_statistics.validate_partitional_clustering(pc, n)
593 """Proxy of C++ IMP::statistics::Embedding class"""
594 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
596 def __init__(self, name):
597 """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
598 if self.__class__ == Embedding:
602 this = _IMP_statistics.new_Embedding(_self, name)
604 self.this.append(this)
608 if self.__class__ != Embedding:
609 _director_objects.register(self)
614 def do_get_weight(self, i):
615 """do_get_weight(Embedding self, unsigned int i) -> double"""
616 return _IMP_statistics.Embedding_do_get_weight(self, i)
619 def get_point(self, i):
620 """get_point(Embedding self, unsigned int i) -> VectorKD"""
621 return _IMP_statistics.Embedding_get_point(self, i)
624 def get_number_of_items(self):
625 """get_number_of_items(Embedding self) -> unsigned int"""
626 return _IMP_statistics.Embedding_get_number_of_items(self)
629 def get_weight(self, i):
630 """get_weight(Embedding self, unsigned int i) -> double"""
631 return _IMP_statistics.Embedding_get_weight(self, i)
634 def get_points(self):
635 """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
636 return _IMP_statistics.Embedding_get_points(self)
640 """__str__(Embedding self) -> std::string"""
641 return _IMP_statistics.Embedding___str__(self)
645 """__repr__(Embedding self) -> std::string"""
646 return _IMP_statistics.Embedding___repr__(self)
651 return _object_cast_to_Embedding(o)
654 def get_type_name(self):
655 return self.__class__.__name__
656 def do_show(self, out):
658 def get_version_info(self):
659 if"IMP::statistics" ==
"IMP":
660 return VersionInfo(self.__module__,
661 __import__(self.__module__).get_module_version())
664 __import__(self.__module__).get_module_version())
667 return _object_cast_to_Embedding(o)
669 __swig_destroy__ = _IMP_statistics.delete_Embedding
670 __del__ =
lambda self:
None
671 def __disown__(self):
673 _IMP_statistics.disown_Embedding(self)
674 return weakref_proxy(self)
676 def do_destroy(self):
677 """do_destroy(Embedding self)"""
678 return _IMP_statistics.Embedding_do_destroy(self)
680 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
681 Embedding_swigregister(Embedding)
684 """Proxy of C++ IMP::statistics::Metric class"""
685 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
687 def __init__(self, name):
688 """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
689 if self.__class__ == Metric:
693 this = _IMP_statistics.new_Metric(_self, name)
695 self.this.append(this)
699 if self.__class__ != Metric:
700 _director_objects.register(self)
705 def do_get_weight(self, i):
706 """do_get_weight(Metric self, unsigned int i) -> double"""
707 return _IMP_statistics.Metric_do_get_weight(self, i)
711 """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
712 return _IMP_statistics.Metric_get_distance(self, i, j)
715 def get_weight(self, i):
716 """get_weight(Metric self, unsigned int i) -> double"""
717 return _IMP_statistics.Metric_get_weight(self, i)
720 def get_number_of_items(self):
721 """get_number_of_items(Metric self) -> unsigned int"""
722 return _IMP_statistics.Metric_get_number_of_items(self)
724 __swig_destroy__ = _IMP_statistics.delete_Metric
725 __del__ =
lambda self:
None
728 """__str__(Metric self) -> std::string"""
729 return _IMP_statistics.Metric___str__(self)
733 """__repr__(Metric self) -> std::string"""
734 return _IMP_statistics.Metric___repr__(self)
739 return _object_cast_to_Metric(o)
742 def get_type_name(self):
743 return self.__class__.__name__
744 def do_show(self, out):
746 def get_version_info(self):
747 if"IMP::statistics" ==
"IMP":
748 return VersionInfo(self.__module__,
749 __import__(self.__module__).get_module_version())
752 __import__(self.__module__).get_module_version())
755 return _object_cast_to_Metric(o)
757 def __disown__(self):
759 _IMP_statistics.disown_Metric(self)
760 return weakref_proxy(self)
762 def do_destroy(self):
763 """do_destroy(Metric self)"""
764 return _IMP_statistics.Metric_do_destroy(self)
766 Metric_swigregister = _IMP_statistics.Metric_swigregister
767 Metric_swigregister(Metric)
769 class ChiSquareMetric(Metric):
770 """Proxy of C++ IMP::statistics::ChiSquareMetric class"""
771 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
773 def __init__(self, data_exp, constr_type=0):
775 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
776 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
778 this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
780 self.this.append(this)
784 def add_configuration(self, data, stddev, weight=1.0):
786 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
787 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
789 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
792 def get_data(self, i):
793 """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
794 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
797 def get_standard_deviation(self, i):
798 """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
799 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
802 def do_get_weight(self, i):
803 """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
804 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
807 def get_chi_square_experimental(self, i):
808 """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
809 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
812 def get_version_info(self):
813 """get_version_info(ChiSquareMetric self) -> VersionInfo"""
814 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
818 """__str__(ChiSquareMetric self) -> std::string"""
819 return _IMP_statistics.ChiSquareMetric___str__(self)
823 """__repr__(ChiSquareMetric self) -> std::string"""
824 return _IMP_statistics.ChiSquareMetric___repr__(self)
829 return _object_cast_to_ChiSquareMetric(o)
831 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
832 ChiSquareMetric_swigregister(ChiSquareMetric)
834 class PartitionalClusteringWithCenter(PartitionalClustering):
835 """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class"""
836 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
838 def __init__(self, *args, **kwargs):
839 raise AttributeError(
"No constructor defined")
841 def get_cluster_center(self, i):
842 """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
843 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
846 def get_version_info(self):
847 """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
848 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
852 """__str__(PartitionalClusteringWithCenter self) -> std::string"""
853 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
857 """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
858 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
863 return _object_cast_to_PartitionalClusteringWithCenter(o)
865 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
866 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
868 class ConfigurationSetXYZEmbedding(Embedding):
869 """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class"""
870 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
872 def __init__(self, cs, pi, align=False):
874 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
875 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
877 this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
879 self.this.append(this)
883 def get_version_info(self):
884 """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
885 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
889 """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
890 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
894 """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
895 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
900 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
902 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
903 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
905 class ParticleEmbedding(Embedding):
906 """Proxy of C++ IMP::statistics::ParticleEmbedding class"""
907 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
909 def __init__(self, *args):
911 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
912 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
913 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
915 this = _IMP_statistics.new_ParticleEmbedding(*args)
917 self.this.append(this)
921 def get_version_info(self):
922 """get_version_info(ParticleEmbedding self) -> VersionInfo"""
923 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
927 """__str__(ParticleEmbedding self) -> std::string"""
928 return _IMP_statistics.ParticleEmbedding___str__(self)
932 """__repr__(ParticleEmbedding self) -> std::string"""
933 return _IMP_statistics.ParticleEmbedding___repr__(self)
938 return _object_cast_to_ParticleEmbedding(o)
940 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
941 ParticleEmbedding_swigregister(ParticleEmbedding)
943 class VectorDEmbedding(Embedding):
944 """Proxy of C++ IMP::statistics::VectorDEmbedding class"""
945 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
947 def __init__(self, *args):
949 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
950 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
951 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
952 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
953 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
954 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
956 this = _IMP_statistics.new_VectorDEmbedding(*args)
958 self.this.append(this)
962 def get_version_info(self):
963 """get_version_info(VectorDEmbedding self) -> VersionInfo"""
964 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
968 """__str__(VectorDEmbedding self) -> std::string"""
969 return _IMP_statistics.VectorDEmbedding___str__(self)
973 """__repr__(VectorDEmbedding self) -> std::string"""
974 return _IMP_statistics.VectorDEmbedding___repr__(self)
979 return _object_cast_to_VectorDEmbedding(o)
981 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
982 VectorDEmbedding_swigregister(VectorDEmbedding)
984 class EuclideanMetric(Metric):
985 """Proxy of C++ IMP::statistics::EuclideanMetric class"""
986 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
988 def __init__(self, em):
989 """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
990 this = _IMP_statistics.new_EuclideanMetric(em)
992 self.this.append(this)
996 def get_version_info(self):
997 """get_version_info(EuclideanMetric self) -> VersionInfo"""
998 return _IMP_statistics.EuclideanMetric_get_version_info(self)
1002 """__str__(EuclideanMetric self) -> std::string"""
1003 return _IMP_statistics.EuclideanMetric___str__(self)
1007 """__repr__(EuclideanMetric self) -> std::string"""
1008 return _IMP_statistics.EuclideanMetric___repr__(self)
1013 return _object_cast_to_EuclideanMetric(o)
1015 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
1016 EuclideanMetric_swigregister(EuclideanMetric)
1018 class ConfigurationSetRMSDMetric(Metric):
1019 """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class"""
1020 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1022 def __init__(self, cs, sc, align=False):
1024 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
1025 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
1027 this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
1029 self.this.append(this)
1033 def get_version_info(self):
1034 """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
1035 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
1039 """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
1040 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
1044 """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
1045 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
1050 return _object_cast_to_ConfigurationSetRMSDMetric(o)
1052 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
1053 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
1057 """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
1058 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
1061 """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
1062 return _IMP_statistics.create_bin_based_clustering(embed, side)
1066 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1067 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1069 return _IMP_statistics.create_centrality_clustering(*args)
1072 """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1073 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1077 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1078 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1080 return _IMP_statistics.create_connectivity_clustering(*args)
1083 """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1084 return _IMP_statistics.create_gromos_clustering(d, cutoff)
1087 """get_quantile(Histogram1D h, double fraction) -> double"""
1088 return _IMP_statistics.get_quantile(h, fraction)
1091 """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1092 return _IMP_statistics.get_centroids(d, pc)
1095 """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1096 return _IMP_statistics.get_representatives(d, pc)
1097 class RecursivePartitionalClusteringEmbedding(Embedding):
1098 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class"""
1099 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1101 def __init__(self, metric, clustering):
1102 """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1103 this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1105 self.this.append(this)
1109 def create_full_clustering(self, center_cluster):
1110 """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1111 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1114 def get_version_info(self):
1115 """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1116 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1120 """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1121 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1125 """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1126 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1131 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1133 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1134 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1136 class RecursivePartitionalClusteringMetric(Metric):
1137 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class"""
1138 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1140 def __init__(self, metric, clustering):
1141 """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1142 this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1144 self.this.append(this)
1148 def create_full_clustering(self, center_cluster):
1149 """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1150 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1153 def get_version_info(self):
1154 """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1155 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1159 """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1160 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1164 """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1165 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1170 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1172 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1173 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1175 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1176 """Proxy of C++ IMP::statistics::HistogramD<(1)> class"""
1177 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1179 def __init__(self, *args):
1181 __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1182 __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1184 this = _IMP_statistics.new_Histogram1D(*args)
1186 self.this.append(this)
1190 def add(self, x, weight=1):
1192 add(Histogram1D self, Vector1D x, double weight=1)
1193 add(Histogram1D self, Vector1D x)
1195 return _IMP_statistics.Histogram1D_add(self, x, weight)
1198 def get_total_count(self):
1199 """get_total_count(Histogram1D self) -> double"""
1200 return _IMP_statistics.Histogram1D_get_total_count(self)
1203 def get_frequencies(self):
1204 """get_frequencies(Histogram1D self) -> Histogram1D"""
1205 return _IMP_statistics.Histogram1D_get_frequencies(self)
1208 def get_probability_distribution_function(self):
1209 """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1210 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1213 def get_counts(self):
1214 """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1215 return _IMP_statistics.Histogram1D_get_counts(self)
1219 """get_mean(Histogram1D self) -> Vector1D"""
1220 return _IMP_statistics.Histogram1D_get_mean(self)
1223 def get_dimension(self):
1224 """get_dimension(Histogram1D self) -> unsigned int"""
1225 return _IMP_statistics.Histogram1D_get_dimension(self)
1228 def get_standard_deviation(self, mean):
1229 """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1230 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1233 def get_bounding_box(self):
1234 """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1235 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1238 def get_minimum_and_maximum(self):
1239 """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1240 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1243 def show(self, *args):
1245 show(Histogram1D self, _ostream out)
1246 show(Histogram1D self)
1248 return _IMP_statistics.Histogram1D_show(self, *args)
1252 """__str__(Histogram1D self) -> std::string"""
1253 return _IMP_statistics.Histogram1D___str__(self)
1257 """__repr__(Histogram1D self) -> std::string"""
1258 return _IMP_statistics.Histogram1D___repr__(self)
1261 def __cmp__(self, arg2):
1262 """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1263 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1266 def __eq__(self, arg2):
1267 """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1268 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1270 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1271 __del__ =
lambda self:
None
1272 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1273 Histogram1D_swigregister(Histogram1D)
1275 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1276 """Proxy of C++ IMP::statistics::HistogramD<(2)> class"""
1277 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1279 def __init__(self, *args):
1281 __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1282 __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1284 this = _IMP_statistics.new_Histogram2D(*args)
1286 self.this.append(this)
1290 def add(self, x, weight=1):
1292 add(Histogram2D self, Vector2D x, double weight=1)
1293 add(Histogram2D self, Vector2D x)
1295 return _IMP_statistics.Histogram2D_add(self, x, weight)
1298 def get_total_count(self):
1299 """get_total_count(Histogram2D self) -> double"""
1300 return _IMP_statistics.Histogram2D_get_total_count(self)
1303 def get_frequencies(self):
1304 """get_frequencies(Histogram2D self) -> Histogram2D"""
1305 return _IMP_statistics.Histogram2D_get_frequencies(self)
1308 def get_probability_distribution_function(self):
1309 """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1310 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1313 def get_counts(self):
1314 """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1315 return _IMP_statistics.Histogram2D_get_counts(self)
1319 """get_mean(Histogram2D self) -> Vector2D"""
1320 return _IMP_statistics.Histogram2D_get_mean(self)
1323 def get_dimension(self):
1324 """get_dimension(Histogram2D self) -> unsigned int"""
1325 return _IMP_statistics.Histogram2D_get_dimension(self)
1328 def get_standard_deviation(self, mean):
1329 """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1330 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1333 def get_bounding_box(self):
1334 """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1335 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1338 def get_minimum_and_maximum(self):
1339 """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1340 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1343 def show(self, *args):
1345 show(Histogram2D self, _ostream out)
1346 show(Histogram2D self)
1348 return _IMP_statistics.Histogram2D_show(self, *args)
1352 """__str__(Histogram2D self) -> std::string"""
1353 return _IMP_statistics.Histogram2D___str__(self)
1357 """__repr__(Histogram2D self) -> std::string"""
1358 return _IMP_statistics.Histogram2D___repr__(self)
1361 def __cmp__(self, arg2):
1362 """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1363 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1366 def __eq__(self, arg2):
1367 """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1368 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1370 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1371 __del__ =
lambda self:
None
1372 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1373 Histogram2D_swigregister(Histogram2D)
1375 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1376 """Proxy of C++ IMP::statistics::HistogramD<(3)> class"""
1377 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1379 def __init__(self, *args):
1381 __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1382 __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1384 this = _IMP_statistics.new_Histogram3D(*args)
1386 self.this.append(this)
1390 def add(self, x, weight=1):
1392 add(Histogram3D self, Vector3D x, double weight=1)
1393 add(Histogram3D self, Vector3D x)
1395 return _IMP_statistics.Histogram3D_add(self, x, weight)
1398 def get_total_count(self):
1399 """get_total_count(Histogram3D self) -> double"""
1400 return _IMP_statistics.Histogram3D_get_total_count(self)
1403 def get_frequencies(self):
1404 """get_frequencies(Histogram3D self) -> Histogram3D"""
1405 return _IMP_statistics.Histogram3D_get_frequencies(self)
1408 def get_probability_distribution_function(self):
1409 """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1410 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1413 def get_counts(self):
1414 """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1415 return _IMP_statistics.Histogram3D_get_counts(self)
1419 """get_mean(Histogram3D self) -> Vector3D"""
1420 return _IMP_statistics.Histogram3D_get_mean(self)
1423 def get_dimension(self):
1424 """get_dimension(Histogram3D self) -> unsigned int"""
1425 return _IMP_statistics.Histogram3D_get_dimension(self)
1428 def get_standard_deviation(self, mean):
1429 """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1430 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1433 def get_bounding_box(self):
1434 """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1435 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1438 def get_minimum_and_maximum(self):
1439 """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1440 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1443 def show(self, *args):
1445 show(Histogram3D self, _ostream out)
1446 show(Histogram3D self)
1448 return _IMP_statistics.Histogram3D_show(self, *args)
1452 """__str__(Histogram3D self) -> std::string"""
1453 return _IMP_statistics.Histogram3D___str__(self)
1457 """__repr__(Histogram3D self) -> std::string"""
1458 return _IMP_statistics.Histogram3D___repr__(self)
1461 def __cmp__(self, arg2):
1462 """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1463 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1466 def __eq__(self, arg2):
1467 """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1468 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1470 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1471 __del__ =
lambda self:
None
1472 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1473 Histogram3D_swigregister(Histogram3D)
1475 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1476 """Proxy of C++ IMP::statistics::HistogramD<(4)> class"""
1477 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1479 def __init__(self, *args):
1481 __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1482 __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1484 this = _IMP_statistics.new_Histogram4D(*args)
1486 self.this.append(this)
1490 def add(self, x, weight=1):
1492 add(Histogram4D self, Vector4D x, double weight=1)
1493 add(Histogram4D self, Vector4D x)
1495 return _IMP_statistics.Histogram4D_add(self, x, weight)
1498 def get_total_count(self):
1499 """get_total_count(Histogram4D self) -> double"""
1500 return _IMP_statistics.Histogram4D_get_total_count(self)
1503 def get_frequencies(self):
1504 """get_frequencies(Histogram4D self) -> Histogram4D"""
1505 return _IMP_statistics.Histogram4D_get_frequencies(self)
1508 def get_probability_distribution_function(self):
1509 """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1510 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1513 def get_counts(self):
1514 """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1515 return _IMP_statistics.Histogram4D_get_counts(self)
1519 """get_mean(Histogram4D self) -> Vector4D"""
1520 return _IMP_statistics.Histogram4D_get_mean(self)
1523 def get_dimension(self):
1524 """get_dimension(Histogram4D self) -> unsigned int"""
1525 return _IMP_statistics.Histogram4D_get_dimension(self)
1528 def get_standard_deviation(self, mean):
1529 """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1530 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1533 def get_bounding_box(self):
1534 """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1535 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1538 def get_minimum_and_maximum(self):
1539 """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1540 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1543 def show(self, *args):
1545 show(Histogram4D self, _ostream out)
1546 show(Histogram4D self)
1548 return _IMP_statistics.Histogram4D_show(self, *args)
1552 """__str__(Histogram4D self) -> std::string"""
1553 return _IMP_statistics.Histogram4D___str__(self)
1557 """__repr__(Histogram4D self) -> std::string"""
1558 return _IMP_statistics.Histogram4D___repr__(self)
1561 def __cmp__(self, arg2):
1562 """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1563 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1566 def __eq__(self, arg2):
1567 """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1568 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1570 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1571 __del__ =
lambda self:
None
1572 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1573 Histogram4D_swigregister(Histogram4D)
1575 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1576 """Proxy of C++ IMP::statistics::HistogramD<(5)> class"""
1577 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1579 def __init__(self, *args):
1581 __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1582 __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1584 this = _IMP_statistics.new_Histogram5D(*args)
1586 self.this.append(this)
1590 def add(self, x, weight=1):
1592 add(Histogram5D self, Vector5D x, double weight=1)
1593 add(Histogram5D self, Vector5D x)
1595 return _IMP_statistics.Histogram5D_add(self, x, weight)
1598 def get_total_count(self):
1599 """get_total_count(Histogram5D self) -> double"""
1600 return _IMP_statistics.Histogram5D_get_total_count(self)
1603 def get_frequencies(self):
1604 """get_frequencies(Histogram5D self) -> Histogram5D"""
1605 return _IMP_statistics.Histogram5D_get_frequencies(self)
1608 def get_probability_distribution_function(self):
1609 """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1610 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1613 def get_counts(self):
1614 """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1615 return _IMP_statistics.Histogram5D_get_counts(self)
1619 """get_mean(Histogram5D self) -> Vector5D"""
1620 return _IMP_statistics.Histogram5D_get_mean(self)
1623 def get_dimension(self):
1624 """get_dimension(Histogram5D self) -> unsigned int"""
1625 return _IMP_statistics.Histogram5D_get_dimension(self)
1628 def get_standard_deviation(self, mean):
1629 """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1630 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1633 def get_bounding_box(self):
1634 """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1635 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1638 def get_minimum_and_maximum(self):
1639 """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1640 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1643 def show(self, *args):
1645 show(Histogram5D self, _ostream out)
1646 show(Histogram5D self)
1648 return _IMP_statistics.Histogram5D_show(self, *args)
1652 """__str__(Histogram5D self) -> std::string"""
1653 return _IMP_statistics.Histogram5D___str__(self)
1657 """__repr__(Histogram5D self) -> std::string"""
1658 return _IMP_statistics.Histogram5D___repr__(self)
1661 def __cmp__(self, arg2):
1662 """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1663 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1666 def __eq__(self, arg2):
1667 """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1668 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1670 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1671 __del__ =
lambda self:
None
1672 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1673 Histogram5D_swigregister(Histogram5D)
1675 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1676 """Proxy of C++ IMP::statistics::HistogramD<(6)> class"""
1677 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1679 def __init__(self, *args):
1681 __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1682 __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1684 this = _IMP_statistics.new_Histogram6D(*args)
1686 self.this.append(this)
1690 def add(self, x, weight=1):
1692 add(Histogram6D self, Vector6D x, double weight=1)
1693 add(Histogram6D self, Vector6D x)
1695 return _IMP_statistics.Histogram6D_add(self, x, weight)
1698 def get_total_count(self):
1699 """get_total_count(Histogram6D self) -> double"""
1700 return _IMP_statistics.Histogram6D_get_total_count(self)
1703 def get_frequencies(self):
1704 """get_frequencies(Histogram6D self) -> Histogram6D"""
1705 return _IMP_statistics.Histogram6D_get_frequencies(self)
1708 def get_probability_distribution_function(self):
1709 """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1710 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1713 def get_counts(self):
1714 """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1715 return _IMP_statistics.Histogram6D_get_counts(self)
1719 """get_mean(Histogram6D self) -> Vector6D"""
1720 return _IMP_statistics.Histogram6D_get_mean(self)
1723 def get_dimension(self):
1724 """get_dimension(Histogram6D self) -> unsigned int"""
1725 return _IMP_statistics.Histogram6D_get_dimension(self)
1728 def get_standard_deviation(self, mean):
1729 """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1730 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1733 def get_bounding_box(self):
1734 """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1735 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1738 def get_minimum_and_maximum(self):
1739 """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1740 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1743 def show(self, *args):
1745 show(Histogram6D self, _ostream out)
1746 show(Histogram6D self)
1748 return _IMP_statistics.Histogram6D_show(self, *args)
1752 """__str__(Histogram6D self) -> std::string"""
1753 return _IMP_statistics.Histogram6D___str__(self)
1757 """__repr__(Histogram6D self) -> std::string"""
1758 return _IMP_statistics.Histogram6D___repr__(self)
1761 def __cmp__(self, arg2):
1762 """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1763 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1766 def __eq__(self, arg2):
1767 """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1768 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1770 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1771 __del__ =
lambda self:
None
1772 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1773 Histogram6D_swigregister(Histogram6D)
1775 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1776 """Proxy of C++ IMP::statistics::HistogramD<(-1)> class"""
1777 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1779 def __init__(self, *args):
1781 __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1782 __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1784 this = _IMP_statistics.new_HistogramKD(*args)
1786 self.this.append(this)
1790 def add(self, x, weight=1):
1792 add(HistogramKD self, VectorKD x, double weight=1)
1793 add(HistogramKD self, VectorKD x)
1795 return _IMP_statistics.HistogramKD_add(self, x, weight)
1798 def get_total_count(self):
1799 """get_total_count(HistogramKD self) -> double"""
1800 return _IMP_statistics.HistogramKD_get_total_count(self)
1803 def get_frequencies(self):
1804 """get_frequencies(HistogramKD self) -> HistogramKD"""
1805 return _IMP_statistics.HistogramKD_get_frequencies(self)
1808 def get_probability_distribution_function(self):
1809 """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1810 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1813 def get_counts(self):
1814 """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1815 return _IMP_statistics.HistogramKD_get_counts(self)
1819 """get_mean(HistogramKD self) -> VectorKD"""
1820 return _IMP_statistics.HistogramKD_get_mean(self)
1823 def get_dimension(self):
1824 """get_dimension(HistogramKD self) -> unsigned int"""
1825 return _IMP_statistics.HistogramKD_get_dimension(self)
1828 def get_standard_deviation(self, mean):
1829 """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1830 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1833 def get_bounding_box(self):
1834 """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1835 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1838 def get_minimum_and_maximum(self):
1839 """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1840 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1843 def show(self, *args):
1845 show(HistogramKD self, _ostream out)
1846 show(HistogramKD self)
1848 return _IMP_statistics.HistogramKD_show(self, *args)
1852 """__str__(HistogramKD self) -> std::string"""
1853 return _IMP_statistics.HistogramKD___str__(self)
1857 """__repr__(HistogramKD self) -> std::string"""
1858 return _IMP_statistics.HistogramKD___repr__(self)
1861 def __cmp__(self, arg2):
1862 """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1863 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1866 def __eq__(self, arg2):
1867 """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1868 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1870 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1871 __del__ =
lambda self:
None
1872 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1873 HistogramKD_swigregister(HistogramKD)
1875 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1876 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class"""
1877 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1878 __repr__ = _swig_repr
1880 def __setitem__(self, *args):
1882 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1883 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1885 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1888 def __getitem__(self, *args):
1890 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1891 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1893 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1896 def __init__(self, *args):
1898 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1899 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1900 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1901 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1902 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1904 this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1906 self.this.append(this)
1911 """get_is_dense() -> bool"""
1912 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1914 get_is_dense = staticmethod(get_is_dense)
1916 def show(self, *args):
1918 show(_IntDenseGridStorageKD self, _ostream out)
1919 show(_IntDenseGridStorageKD self)
1921 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1924 def add_voxel(self, arg2, arg3):
1925 """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1926 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1929 def get_all_voxels(self):
1930 """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1931 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1933 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1934 __del__ =
lambda self:
None
1935 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1936 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1938 def _IntDenseGridStorageKD_get_is_dense():
1939 """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1940 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1942 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1943 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class"""
1944 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1945 __repr__ = _swig_repr
1947 def __setitem__(self, *args):
1949 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1950 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1952 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1955 def __getitem__(self, *args):
1957 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1958 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1960 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1963 def __init__(self, *args):
1965 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1966 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1967 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1968 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1969 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1971 this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1973 self.this.append(this)
1978 """get_is_dense() -> bool"""
1979 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1981 get_is_dense = staticmethod(get_is_dense)
1983 def show(self, *args):
1985 show(_FloatDenseGridStorageKD self, _ostream out)
1986 show(_FloatDenseGridStorageKD self)
1988 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
1991 def add_voxel(self, arg2, arg3):
1992 """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
1993 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
1996 def get_all_voxels(self):
1997 """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
1998 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
2000 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
2001 __del__ =
lambda self:
None
2002 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
2003 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
2005 def _FloatDenseGridStorageKD_get_is_dense():
2006 """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
2007 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2009 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
2010 """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class"""
2011 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2012 __repr__ = _swig_repr
2014 def __init__(self, *args):
2016 __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
2017 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
2018 __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
2019 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
2020 __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
2021 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
2022 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
2023 __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
2024 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
2025 __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
2026 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
2027 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
2029 this = _IMP_statistics.new__HistogramCountsGridKD(*args)
2031 self.this.append(this)
2035 def show(self, *args):
2037 show(_HistogramCountsGridKD self, _ostream out)
2038 show(_HistogramCountsGridKD self)
2040 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
2043 def __getitem__(self, *args):
2045 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
2046 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
2048 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
2051 def __setitem__(self, *args):
2053 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
2054 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2056 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2059 def add_voxel(self, pt, vt):
2060 """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2061 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2064 def get_extended_index(self, index):
2065 """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2066 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2069 def get_bounding_box(self, *args):
2071 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2072 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2073 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2075 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2078 def set_bounding_box(self, bb3):
2079 """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2080 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2083 def get_nearest_index(self, pt):
2084 """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2085 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2088 def get_nearest_extended_index(self, pt):
2089 """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2090 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2092 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2093 __del__ =
lambda self:
None
2094 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2095 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2097 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2098 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class"""
2099 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2100 __repr__ = _swig_repr
2102 def __setitem__(self, *args):
2104 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2105 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2107 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2110 def __getitem__(self, *args):
2112 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2113 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2115 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2118 def __init__(self, *args):
2120 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2121 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2122 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2123 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2124 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2126 this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2128 self.this.append(this)
2133 """get_is_dense() -> bool"""
2134 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2136 get_is_dense = staticmethod(get_is_dense)
2138 def show(self, *args):
2140 show(_IntDenseGridStorage1D self, _ostream out)
2141 show(_IntDenseGridStorage1D self)
2143 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2146 def add_voxel(self, arg2, arg3):
2147 """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2148 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2151 def get_all_voxels(self):
2152 """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2153 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2155 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2156 __del__ =
lambda self:
None
2157 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2158 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2160 def _IntDenseGridStorage1D_get_is_dense():
2161 """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2162 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2164 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2165 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class"""
2166 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2167 __repr__ = _swig_repr
2169 def __setitem__(self, *args):
2171 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2172 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2174 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2177 def __getitem__(self, *args):
2179 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2180 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2182 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2185 def __init__(self, *args):
2187 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2188 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2189 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2190 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2191 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2193 this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2195 self.this.append(this)
2200 """get_is_dense() -> bool"""
2201 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2203 get_is_dense = staticmethod(get_is_dense)
2205 def show(self, *args):
2207 show(_FloatDenseGridStorage1D self, _ostream out)
2208 show(_FloatDenseGridStorage1D self)
2210 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2213 def add_voxel(self, arg2, arg3):
2214 """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2215 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2218 def get_all_voxels(self):
2219 """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2220 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2222 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2223 __del__ =
lambda self:
None
2224 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2225 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2227 def _FloatDenseGridStorage1D_get_is_dense():
2228 """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2229 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2231 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2232 """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class"""
2233 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2234 __repr__ = _swig_repr
2236 def __init__(self, *args):
2238 __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
2239 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2240 __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
2241 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2242 __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
2243 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2244 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2245 __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
2246 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2247 __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
2248 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2249 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2251 this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2253 self.this.append(this)
2257 def show(self, *args):
2259 show(_HistogramCountsGrid1D self, _ostream out)
2260 show(_HistogramCountsGrid1D self)
2262 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2265 def __getitem__(self, *args):
2267 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2268 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2270 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2273 def __setitem__(self, *args):
2275 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2276 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2278 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2281 def add_voxel(self, pt, vt):
2282 """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2283 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2286 def get_extended_index(self, index):
2287 """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2288 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2291 def get_bounding_box(self, *args):
2293 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2294 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2295 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2297 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2300 def set_bounding_box(self, bb3):
2301 """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2302 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2305 def get_nearest_index(self, pt):
2306 """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2307 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2310 def get_nearest_extended_index(self, pt):
2311 """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2312 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2314 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2315 __del__ =
lambda self:
None
2316 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2317 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2319 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2320 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class"""
2321 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2322 __repr__ = _swig_repr
2324 def __setitem__(self, *args):
2326 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2327 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2329 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2332 def __getitem__(self, *args):
2334 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2335 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2337 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2340 def __init__(self, *args):
2342 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2343 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2344 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2345 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2346 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2348 this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2350 self.this.append(this)
2355 """get_is_dense() -> bool"""
2356 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2358 get_is_dense = staticmethod(get_is_dense)
2360 def show(self, *args):
2362 show(_IntDenseGridStorage2D self, _ostream out)
2363 show(_IntDenseGridStorage2D self)
2365 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2368 def add_voxel(self, arg2, arg3):
2369 """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2370 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2373 def get_all_voxels(self):
2374 """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2375 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2377 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2378 __del__ =
lambda self:
None
2379 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2380 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2382 def _IntDenseGridStorage2D_get_is_dense():
2383 """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2384 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2386 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2387 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class"""
2388 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2389 __repr__ = _swig_repr
2391 def __setitem__(self, *args):
2393 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2394 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2396 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2399 def __getitem__(self, *args):
2401 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2402 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2404 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2407 def __init__(self, *args):
2409 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2410 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2411 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2412 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2413 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2415 this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2417 self.this.append(this)
2422 """get_is_dense() -> bool"""
2423 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2425 get_is_dense = staticmethod(get_is_dense)
2427 def show(self, *args):
2429 show(_FloatDenseGridStorage2D self, _ostream out)
2430 show(_FloatDenseGridStorage2D self)
2432 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2435 def add_voxel(self, arg2, arg3):
2436 """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2437 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2440 def get_all_voxels(self):
2441 """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2442 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2444 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2445 __del__ =
lambda self:
None
2446 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2447 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2449 def _FloatDenseGridStorage2D_get_is_dense():
2450 """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2451 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2453 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2454 """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class"""
2455 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2456 __repr__ = _swig_repr
2458 def __init__(self, *args):
2460 __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
2461 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2462 __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
2463 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2464 __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
2465 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2466 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2467 __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
2468 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2469 __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
2470 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2471 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2473 this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2475 self.this.append(this)
2479 def show(self, *args):
2481 show(_HistogramCountsGrid2D self, _ostream out)
2482 show(_HistogramCountsGrid2D self)
2484 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2487 def __getitem__(self, *args):
2489 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2490 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2492 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2495 def __setitem__(self, *args):
2497 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2498 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2500 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2503 def add_voxel(self, pt, vt):
2504 """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2505 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2508 def get_extended_index(self, index):
2509 """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2510 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2513 def get_bounding_box(self, *args):
2515 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2516 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2517 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2519 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2522 def set_bounding_box(self, bb3):
2523 """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2524 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2527 def get_nearest_index(self, pt):
2528 """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2529 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2532 def get_nearest_extended_index(self, pt):
2533 """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2534 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2536 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2537 __del__ =
lambda self:
None
2538 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2539 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2541 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2542 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class"""
2543 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2544 __repr__ = _swig_repr
2546 def __setitem__(self, *args):
2548 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2549 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2551 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2554 def __getitem__(self, *args):
2556 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2557 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2559 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2562 def __init__(self, *args):
2564 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2565 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2566 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2567 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2568 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2570 this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2572 self.this.append(this)
2577 """get_is_dense() -> bool"""
2578 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2580 get_is_dense = staticmethod(get_is_dense)
2582 def show(self, *args):
2584 show(_IntDenseGridStorage3D self, _ostream out)
2585 show(_IntDenseGridStorage3D self)
2587 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2590 def add_voxel(self, arg2, arg3):
2591 """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2592 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2595 def get_all_voxels(self):
2596 """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2597 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2599 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2600 __del__ =
lambda self:
None
2601 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2602 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2604 def _IntDenseGridStorage3D_get_is_dense():
2605 """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2606 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2608 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2609 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class"""
2610 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2611 __repr__ = _swig_repr
2613 def __setitem__(self, *args):
2615 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2616 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2618 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2621 def __getitem__(self, *args):
2623 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2624 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2626 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2629 def __init__(self, *args):
2631 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2632 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2633 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2634 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2635 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2637 this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2639 self.this.append(this)
2644 """get_is_dense() -> bool"""
2645 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2647 get_is_dense = staticmethod(get_is_dense)
2649 def show(self, *args):
2651 show(_FloatDenseGridStorage3D self, _ostream out)
2652 show(_FloatDenseGridStorage3D self)
2654 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2657 def add_voxel(self, arg2, arg3):
2658 """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2659 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2662 def get_all_voxels(self):
2663 """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2664 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2666 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2667 __del__ =
lambda self:
None
2668 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2669 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2671 def _FloatDenseGridStorage3D_get_is_dense():
2672 """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2673 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2675 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2676 """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class"""
2677 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2678 __repr__ = _swig_repr
2680 def __init__(self, *args):
2682 __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
2683 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2684 __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
2685 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2686 __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
2687 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2688 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2689 __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
2690 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2691 __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
2692 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2693 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2695 this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2697 self.this.append(this)
2701 def show(self, *args):
2703 show(_HistogramCountsGrid3D self, _ostream out)
2704 show(_HistogramCountsGrid3D self)
2706 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2709 def __getitem__(self, *args):
2711 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2712 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2714 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2717 def __setitem__(self, *args):
2719 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2720 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2722 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2725 def add_voxel(self, pt, vt):
2726 """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2727 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2730 def get_extended_index(self, index):
2731 """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2732 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2735 def get_bounding_box(self, *args):
2737 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2738 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2739 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2741 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2744 def set_bounding_box(self, bb3):
2745 """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2746 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2749 def get_nearest_index(self, pt):
2750 """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2751 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2754 def get_nearest_extended_index(self, pt):
2755 """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2756 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2758 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2759 __del__ =
lambda self:
None
2760 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2761 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2763 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2764 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class"""
2765 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2766 __repr__ = _swig_repr
2768 def __setitem__(self, *args):
2770 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2771 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2773 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2776 def __getitem__(self, *args):
2778 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2779 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2781 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2784 def __init__(self, *args):
2786 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2787 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2788 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2789 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2790 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2792 this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2794 self.this.append(this)
2799 """get_is_dense() -> bool"""
2800 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2802 get_is_dense = staticmethod(get_is_dense)
2804 def show(self, *args):
2806 show(_IntDenseGridStorage4D self, _ostream out)
2807 show(_IntDenseGridStorage4D self)
2809 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2812 def add_voxel(self, arg2, arg3):
2813 """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2814 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2817 def get_all_voxels(self):
2818 """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2819 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2821 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2822 __del__ =
lambda self:
None
2823 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2824 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2826 def _IntDenseGridStorage4D_get_is_dense():
2827 """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2828 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2830 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2831 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class"""
2832 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2833 __repr__ = _swig_repr
2835 def __setitem__(self, *args):
2837 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2838 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2840 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2843 def __getitem__(self, *args):
2845 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2846 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2848 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2851 def __init__(self, *args):
2853 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2854 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2855 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2856 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2857 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2859 this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2861 self.this.append(this)
2866 """get_is_dense() -> bool"""
2867 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2869 get_is_dense = staticmethod(get_is_dense)
2871 def show(self, *args):
2873 show(_FloatDenseGridStorage4D self, _ostream out)
2874 show(_FloatDenseGridStorage4D self)
2876 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2879 def add_voxel(self, arg2, arg3):
2880 """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2881 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2884 def get_all_voxels(self):
2885 """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2886 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2888 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2889 __del__ =
lambda self:
None
2890 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2891 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2893 def _FloatDenseGridStorage4D_get_is_dense():
2894 """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2895 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2897 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2898 """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class"""
2899 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2900 __repr__ = _swig_repr
2902 def __init__(self, *args):
2904 __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
2905 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2906 __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
2907 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2908 __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
2909 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2910 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2911 __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
2912 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2913 __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
2914 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2915 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2917 this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2919 self.this.append(this)
2923 def show(self, *args):
2925 show(_HistogramCountsGrid4D self, _ostream out)
2926 show(_HistogramCountsGrid4D self)
2928 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2931 def __getitem__(self, *args):
2933 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2934 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2936 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2939 def __setitem__(self, *args):
2941 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2942 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2944 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2947 def add_voxel(self, pt, vt):
2948 """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2949 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2952 def get_extended_index(self, index):
2953 """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2954 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2957 def get_bounding_box(self, *args):
2959 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2960 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2961 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2963 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2966 def set_bounding_box(self, bb3):
2967 """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2968 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2971 def get_nearest_index(self, pt):
2972 """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2973 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2976 def get_nearest_extended_index(self, pt):
2977 """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2978 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2980 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2981 __del__ =
lambda self:
None
2982 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
2983 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2985 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2986 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class"""
2987 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2988 __repr__ = _swig_repr
2990 def __setitem__(self, *args):
2992 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
2993 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
2995 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
2998 def __getitem__(self, *args):
3000 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
3001 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
3003 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
3006 def __init__(self, *args):
3008 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
3009 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
3010 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
3011 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
3012 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
3014 this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
3016 self.this.append(this)
3021 """get_is_dense() -> bool"""
3022 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3024 get_is_dense = staticmethod(get_is_dense)
3026 def show(self, *args):
3028 show(_IntDenseGridStorage5D self, _ostream out)
3029 show(_IntDenseGridStorage5D self)
3031 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
3034 def add_voxel(self, arg2, arg3):
3035 """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
3036 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
3039 def get_all_voxels(self):
3040 """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
3041 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3043 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3044 __del__ =
lambda self:
None
3045 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3046 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3048 def _IntDenseGridStorage5D_get_is_dense():
3049 """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3050 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3052 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3053 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class"""
3054 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3055 __repr__ = _swig_repr
3057 def __setitem__(self, *args):
3059 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3060 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3062 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3065 def __getitem__(self, *args):
3067 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3068 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3070 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3073 def __init__(self, *args):
3075 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3076 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3077 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3078 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3079 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3081 this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3083 self.this.append(this)
3088 """get_is_dense() -> bool"""
3089 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3091 get_is_dense = staticmethod(get_is_dense)
3093 def show(self, *args):
3095 show(_FloatDenseGridStorage5D self, _ostream out)
3096 show(_FloatDenseGridStorage5D self)
3098 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3101 def add_voxel(self, arg2, arg3):
3102 """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3103 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3106 def get_all_voxels(self):
3107 """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3108 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3110 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3111 __del__ =
lambda self:
None
3112 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3113 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3115 def _FloatDenseGridStorage5D_get_is_dense():
3116 """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3117 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3119 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3120 """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class"""
3121 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3122 __repr__ = _swig_repr
3124 def __init__(self, *args):
3126 __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
3127 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3128 __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
3129 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3130 __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
3131 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3132 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3133 __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
3134 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3135 __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
3136 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3137 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3139 this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3141 self.this.append(this)
3145 def show(self, *args):
3147 show(_HistogramCountsGrid5D self, _ostream out)
3148 show(_HistogramCountsGrid5D self)
3150 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3153 def __getitem__(self, *args):
3155 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3156 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3158 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3161 def __setitem__(self, *args):
3163 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3164 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3166 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3169 def add_voxel(self, pt, vt):
3170 """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3171 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3174 def get_extended_index(self, index):
3175 """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3176 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3179 def get_bounding_box(self, *args):
3181 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3182 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3183 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3185 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3188 def set_bounding_box(self, bb3):
3189 """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3190 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3193 def get_nearest_index(self, pt):
3194 """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3195 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3198 def get_nearest_extended_index(self, pt):
3199 """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3200 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3202 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3203 __del__ =
lambda self:
None
3204 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3205 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3207 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3208 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class"""
3209 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3210 __repr__ = _swig_repr
3212 def __setitem__(self, *args):
3214 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3215 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3217 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3220 def __getitem__(self, *args):
3222 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3223 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3225 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3228 def __init__(self, *args):
3230 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3231 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3232 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3233 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3234 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3236 this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3238 self.this.append(this)
3243 """get_is_dense() -> bool"""
3244 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3246 get_is_dense = staticmethod(get_is_dense)
3248 def show(self, *args):
3250 show(_IntDenseGridStorage6D self, _ostream out)
3251 show(_IntDenseGridStorage6D self)
3253 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3256 def add_voxel(self, arg2, arg3):
3257 """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3258 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3261 def get_all_voxels(self):
3262 """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3263 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3265 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3266 __del__ =
lambda self:
None
3267 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3268 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3270 def _IntDenseGridStorage6D_get_is_dense():
3271 """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3272 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3274 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3275 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class"""
3276 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3277 __repr__ = _swig_repr
3279 def __setitem__(self, *args):
3281 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3282 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3284 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3287 def __getitem__(self, *args):
3289 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3290 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3292 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3295 def __init__(self, *args):
3297 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3298 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3299 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3300 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3301 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3303 this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3305 self.this.append(this)
3310 """get_is_dense() -> bool"""
3311 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3313 get_is_dense = staticmethod(get_is_dense)
3315 def show(self, *args):
3317 show(_FloatDenseGridStorage6D self, _ostream out)
3318 show(_FloatDenseGridStorage6D self)
3320 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3323 def add_voxel(self, arg2, arg3):
3324 """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3325 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3328 def get_all_voxels(self):
3329 """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3330 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3332 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3333 __del__ =
lambda self:
None
3334 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3335 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3337 def _FloatDenseGridStorage6D_get_is_dense():
3338 """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3339 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3341 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3342 """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class"""
3343 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3344 __repr__ = _swig_repr
3346 def __init__(self, *args):
3348 __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
3349 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3350 __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
3351 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3352 __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
3353 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3354 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3355 __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
3356 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3357 __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
3358 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3359 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3361 this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3363 self.this.append(this)
3367 def show(self, *args):
3369 show(_HistogramCountsGrid6D self, _ostream out)
3370 show(_HistogramCountsGrid6D self)
3372 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3375 def __getitem__(self, *args):
3377 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3378 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3380 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3383 def __setitem__(self, *args):
3385 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3386 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3388 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3391 def add_voxel(self, pt, vt):
3392 """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3393 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3396 def get_extended_index(self, index):
3397 """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3398 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3401 def get_bounding_box(self, *args):
3403 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3404 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3405 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3407 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3410 def set_bounding_box(self, bb3):
3411 """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3412 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3415 def get_nearest_index(self, pt):
3416 """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3417 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3420 def get_nearest_extended_index(self, pt):
3421 """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3422 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3424 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3425 __del__ =
lambda self:
None
3426 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3427 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3430 from .
import _histogram
3431 show_histogram= _histogram.show_histogram
3434 def get_module_version():
3435 """get_module_version() -> std::string const"""
3436 return _IMP_statistics.get_module_version()
3439 """get_example_path(std::string fname) -> std::string"""
3440 return _IMP_statistics.get_example_path(fname)
3443 """get_data_path(std::string fname) -> std::string"""
3444 return _IMP_statistics.get_data_path(fname)
3446 from .
import _version_check
3447 _version_check.check_version(get_module_version())
3448 __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)