11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_statistics', [dirname(__file__)])
26 import _IMP_statistics
27 return _IMP_statistics
30 _mod = imp.load_module(
'_IMP_statistics', fp, pathname, description)
34 _IMP_statistics = swig_import_helper()
35 del swig_import_helper
37 import _IMP_statistics
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_STATISTICS_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_STATISTICS_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_statistics.delete_IMP_STATISTICS_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
127 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_value(self)
132 incr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
133 incr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
135 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_incr(self, n)
140 decr(IMP_STATISTICS_SwigPyIterator self, size_t n=1) -> IMP_STATISTICS_SwigPyIterator
141 decr(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator
143 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_distance(self, x)
152 """equal(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
153 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_equal(self, x)
157 """copy(IMP_STATISTICS_SwigPyIterator self) -> IMP_STATISTICS_SwigPyIterator"""
158 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_copy(self)
162 """next(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
163 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_next(self)
167 """__next__(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
168 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___next__(self)
172 """previous(IMP_STATISTICS_SwigPyIterator self) -> PyObject *"""
173 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
178 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
183 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> bool"""
188 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
193 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
198 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator"""
203 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_STATISTICS_SwigPyIterator self, ptrdiff_t n) -> IMP_STATISTICS_SwigPyIterator
209 __sub__(IMP_STATISTICS_SwigPyIterator self, IMP_STATISTICS_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_statistics.IMP_STATISTICS_SwigPyIterator___sub__(self, *args)
215 IMP_STATISTICS_SwigPyIterator_swigregister = _IMP_statistics.IMP_STATISTICS_SwigPyIterator_swigregister
216 IMP_STATISTICS_SwigPyIterator_swigregister(IMP_STATISTICS_SwigPyIterator)
225 _IMP_statistics.IMP_DEBUG_swigconstant(_IMP_statistics)
226 IMP_DEBUG = _IMP_statistics.IMP_DEBUG
228 _IMP_statistics.IMP_RELEASE_swigconstant(_IMP_statistics)
229 IMP_RELEASE = _IMP_statistics.IMP_RELEASE
231 _IMP_statistics.IMP_SILENT_swigconstant(_IMP_statistics)
232 IMP_SILENT = _IMP_statistics.IMP_SILENT
234 _IMP_statistics.IMP_PROGRESS_swigconstant(_IMP_statistics)
235 IMP_PROGRESS = _IMP_statistics.IMP_PROGRESS
237 _IMP_statistics.IMP_TERSE_swigconstant(_IMP_statistics)
238 IMP_TERSE = _IMP_statistics.IMP_TERSE
240 _IMP_statistics.IMP_VERBOSE_swigconstant(_IMP_statistics)
241 IMP_VERBOSE = _IMP_statistics.IMP_VERBOSE
243 _IMP_statistics.IMP_MEMORY_swigconstant(_IMP_statistics)
244 IMP_MEMORY = _IMP_statistics.IMP_MEMORY
246 _IMP_statistics.IMP_NONE_swigconstant(_IMP_statistics)
247 IMP_NONE = _IMP_statistics.IMP_NONE
249 _IMP_statistics.IMP_USAGE_swigconstant(_IMP_statistics)
250 IMP_USAGE = _IMP_statistics.IMP_USAGE
252 _IMP_statistics.IMP_INTERNAL_swigconstant(_IMP_statistics)
253 IMP_INTERNAL = _IMP_statistics.IMP_INTERNAL
255 _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_statistics)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_statistics.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_statistics)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_statistics.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_statistics)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_statistics.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_statistics)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_statistics.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_statistics.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_statistics)
271 IMP_KERNEL_HAS_NUMPY = _IMP_statistics.IMP_KERNEL_HAS_NUMPY
273 _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_statistics)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_statistics.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_statistics)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_statistics)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_statistics.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_statistics.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_statistics.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
311 class _ostream(object):
312 """Proxy of C++ std::ostream class"""
313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
315 def __init__(self, *args, **kwargs):
316 raise AttributeError(
"No constructor defined")
317 __repr__ = _swig_repr
319 def write(self, osa_buf):
320 """write(_ostream self, char const * osa_buf)"""
321 return _IMP_statistics._ostream_write(self, osa_buf)
323 _ostream_swigregister = _IMP_statistics._ostream_swigregister
324 _ostream_swigregister(_ostream)
327 _IMP_statistics.IMP_HAS_NOEXCEPT_swigconstant(_IMP_statistics)
328 IMP_HAS_NOEXCEPT = _IMP_statistics.IMP_HAS_NOEXCEPT
330 _IMP_statistics.IMP_C_OPEN_BINARY_swigconstant(_IMP_statistics)
331 IMP_C_OPEN_BINARY = _IMP_statistics.IMP_C_OPEN_BINARY
334 _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_statistics.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_CGAL_HAS_BOOST_SYSTEM
346 _IMP_statistics.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_statistics)
347 IMP_CGAL_HAS_NUMPY = _IMP_statistics.IMP_CGAL_HAS_NUMPY
349 _IMP_statistics.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_statistics)
350 IMPCGAL_SHOW_WARNINGS = _IMP_statistics.IMPCGAL_SHOW_WARNINGS
353 _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
354 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_IMP_CGAL
356 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
357 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
359 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
360 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
362 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
363 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_RANDOM
365 _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
366 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_ALGEBRA_HAS_BOOST_SYSTEM
368 _IMP_statistics.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_statistics)
369 IMP_ALGEBRA_HAS_CGAL = _IMP_statistics.IMP_ALGEBRA_HAS_CGAL
371 _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_statistics)
372 IMP_ALGEBRA_HAS_NUMPY = _IMP_statistics.IMP_ALGEBRA_HAS_NUMPY
374 _IMP_statistics.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_statistics)
375 IMP_ALGEBRA_HAS_ANN = _IMP_statistics.IMP_ALGEBRA_HAS_ANN
377 _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_statistics)
378 IMPALGEBRA_SHOW_WARNINGS = _IMP_statistics.IMPALGEBRA_SHOW_WARNINGS
381 _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL_swigconstant(_IMP_statistics)
382 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_IMP_CGAL
384 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_statistics)
385 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
387 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_statistics)
388 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
390 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM_swigconstant(_IMP_statistics)
391 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_RANDOM
393 _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM_swigconstant(_IMP_statistics)
394 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_statistics.IMP_STATISTICS_HAS_BOOST_SYSTEM
396 _IMP_statistics.IMP_STATISTICS_HAS_CGAL_swigconstant(_IMP_statistics)
397 IMP_STATISTICS_HAS_CGAL = _IMP_statistics.IMP_STATISTICS_HAS_CGAL
399 _IMP_statistics.IMP_STATISTICS_HAS_NUMPY_swigconstant(_IMP_statistics)
400 IMP_STATISTICS_HAS_NUMPY = _IMP_statistics.IMP_STATISTICS_HAS_NUMPY
402 _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS_swigconstant(_IMP_statistics)
403 IMPSTATISTICS_SHOW_WARNINGS = _IMP_statistics.IMPSTATISTICS_SHOW_WARNINGS
406 _plural_types.append(
"Histogram1Ds")
407 _value_types.append(
"Histogram1D")
411 _plural_types.append(
"Histogram2Ds")
412 _value_types.append(
"Histogram2D")
416 _plural_types.append(
"Histogram3Ds")
417 _value_types.append(
"Histogram3D")
421 _plural_types.append(
"Histogram4Ds")
422 _value_types.append(
"Histogram4D")
426 _plural_types.append(
"Histogram5Ds")
427 _value_types.append(
"Histogram5D")
431 _plural_types.append(
"Histogram6Ds")
432 _value_types.append(
"Histogram6D")
436 _plural_types.append(
"Histogram1Ds")
437 _value_types.append(
"HistogramD<1>")
441 _plural_types.append(
"Histogram2Ds")
442 _value_types.append(
"HistogramD<2>")
446 _plural_types.append(
"Histogram3Ds")
447 _value_types.append(
"HistogramD<3>")
451 _plural_types.append(
"Histogram4Ds")
452 _value_types.append(
"HistogramD<4>")
456 _plural_types.append(
"Histogram5Ds")
457 _value_types.append(
"HistogramD<5>")
461 _plural_types.append(
"Histogram6Ds")
462 _value_types.append(
"HistogramD<6>")
466 _plural_types.append(
"HistogramKDs")
467 _value_types.append(
"HistogramKD")
471 _plural_types.append(
"HistogramKDs")
472 _value_types.append(
"HistogramD<-1>")
475 _object_types.append(
"PartitionalClustering")
478 def _object_cast_to_PartitionalClustering(o):
479 """_object_cast_to_PartitionalClustering(Object o) -> PartitionalClustering"""
480 return _IMP_statistics._object_cast_to_PartitionalClustering(o)
482 _object_types.append(
"PartitionalClusteringWithCenter")
485 def _object_cast_to_PartitionalClusteringWithCenter(o):
486 """_object_cast_to_PartitionalClusteringWithCenter(Object o) -> PartitionalClusteringWithCenter"""
487 return _IMP_statistics._object_cast_to_PartitionalClusteringWithCenter(o)
489 _object_types.append(
"Embedding")
492 def _object_cast_to_Embedding(o):
493 """_object_cast_to_Embedding(Object o) -> Embedding"""
494 return _IMP_statistics._object_cast_to_Embedding(o)
496 _object_types.append(
"ConfigurationSetXYZEmbedding")
499 def _object_cast_to_ConfigurationSetXYZEmbedding(o):
500 """_object_cast_to_ConfigurationSetXYZEmbedding(Object o) -> ConfigurationSetXYZEmbedding"""
501 return _IMP_statistics._object_cast_to_ConfigurationSetXYZEmbedding(o)
503 _object_types.append(
"VectorDEmbedding")
506 def _object_cast_to_VectorDEmbedding(o):
507 """_object_cast_to_VectorDEmbedding(Object o) -> VectorDEmbedding"""
508 return _IMP_statistics._object_cast_to_VectorDEmbedding(o)
510 _object_types.append(
"ParticleEmbedding")
513 def _object_cast_to_ParticleEmbedding(o):
514 """_object_cast_to_ParticleEmbedding(Object o) -> ParticleEmbedding"""
515 return _IMP_statistics._object_cast_to_ParticleEmbedding(o)
517 _object_types.append(
"Metric")
520 def _object_cast_to_Metric(o):
521 """_object_cast_to_Metric(Object o) -> Metric"""
522 return _IMP_statistics._object_cast_to_Metric(o)
524 _object_types.append(
"EuclideanMetric")
527 def _object_cast_to_EuclideanMetric(o):
528 """_object_cast_to_EuclideanMetric(Object o) -> EuclideanMetric"""
529 return _IMP_statistics._object_cast_to_EuclideanMetric(o)
531 _object_types.append(
"ConfigurationSetRMSDMetric")
534 def _object_cast_to_ConfigurationSetRMSDMetric(o):
535 """_object_cast_to_ConfigurationSetRMSDMetric(Object o) -> ConfigurationSetRMSDMetric"""
536 return _IMP_statistics._object_cast_to_ConfigurationSetRMSDMetric(o)
538 _object_types.append(
"RecursivePartitionalClusteringMetric")
541 def _object_cast_to_RecursivePartitionalClusteringMetric(o):
542 """_object_cast_to_RecursivePartitionalClusteringMetric(Object o) -> RecursivePartitionalClusteringMetric"""
543 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringMetric(o)
545 _object_types.append(
"RecursivePartitionalClusteringEmbedding")
548 def _object_cast_to_RecursivePartitionalClusteringEmbedding(o):
549 """_object_cast_to_RecursivePartitionalClusteringEmbedding(Object o) -> RecursivePartitionalClusteringEmbedding"""
550 return _IMP_statistics._object_cast_to_RecursivePartitionalClusteringEmbedding(o)
552 _object_types.append(
"ChiSquareMetric")
555 def _object_cast_to_ChiSquareMetric(o):
556 """_object_cast_to_ChiSquareMetric(Object o) -> ChiSquareMetric"""
557 return _IMP_statistics._object_cast_to_ChiSquareMetric(o)
559 """Proxy of C++ IMP::statistics::PartitionalClustering class"""
560 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
562 def __init__(self, *args, **kwargs):
563 raise AttributeError(
"No constructor defined - class is abstract")
565 def get_number_of_clusters(self):
566 """get_number_of_clusters(PartitionalClustering self) -> unsigned int"""
567 return _IMP_statistics.PartitionalClustering_get_number_of_clusters(self)
570 def get_cluster(self, cluster_index):
571 """get_cluster(PartitionalClustering self, unsigned int cluster_index) -> IMP::Ints const &"""
572 return _IMP_statistics.PartitionalClustering_get_cluster(self, cluster_index)
575 def get_cluster_representative(self, cluster_index):
576 """get_cluster_representative(PartitionalClustering self, unsigned int cluster_index) -> int"""
577 return _IMP_statistics.PartitionalClustering_get_cluster_representative(self, cluster_index)
579 __swig_destroy__ = _IMP_statistics.delete_PartitionalClustering
580 __del__ =
lambda self:
None
583 """__str__(PartitionalClustering self) -> std::string"""
584 return _IMP_statistics.PartitionalClustering___str__(self)
588 """__repr__(PartitionalClustering self) -> std::string"""
589 return _IMP_statistics.PartitionalClustering___repr__(self)
594 return _object_cast_to_PartitionalClustering(o)
596 PartitionalClustering_swigregister = _IMP_statistics.PartitionalClustering_swigregister
597 PartitionalClustering_swigregister(PartitionalClustering)
601 """validate_partitional_clustering(PartitionalClustering pc, unsigned int n)"""
602 return _IMP_statistics.validate_partitional_clustering(pc, n)
604 """Proxy of C++ IMP::statistics::Embedding class"""
605 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
607 def __init__(self, name):
608 """__init__(IMP::statistics::Embedding self, std::string name) -> Embedding"""
609 if self.__class__ == Embedding:
613 this = _IMP_statistics.new_Embedding(_self, name)
615 self.this.append(this)
619 if self.__class__ != Embedding:
620 _director_objects.register(self)
625 def do_get_weight(self, i):
626 """do_get_weight(Embedding self, unsigned int i) -> double"""
627 return _IMP_statistics.Embedding_do_get_weight(self, i)
630 def get_point(self, i):
631 """get_point(Embedding self, unsigned int i) -> VectorKD"""
632 return _IMP_statistics.Embedding_get_point(self, i)
635 def get_number_of_items(self):
636 """get_number_of_items(Embedding self) -> unsigned int"""
637 return _IMP_statistics.Embedding_get_number_of_items(self)
640 def get_weight(self, i):
641 """get_weight(Embedding self, unsigned int i) -> double"""
642 return _IMP_statistics.Embedding_get_weight(self, i)
645 def get_points(self):
646 """get_points(Embedding self) -> IMP::algebra::VectorKDs"""
647 return _IMP_statistics.Embedding_get_points(self)
651 """__str__(Embedding self) -> std::string"""
652 return _IMP_statistics.Embedding___str__(self)
656 """__repr__(Embedding self) -> std::string"""
657 return _IMP_statistics.Embedding___repr__(self)
662 return _object_cast_to_Embedding(o)
665 def get_type_name(self):
666 return self.__class__.__name__
667 def do_show(self, out):
669 def get_version_info(self):
670 if"IMP::statistics" ==
"IMP":
671 return VersionInfo(self.__module__,
678 return _object_cast_to_Embedding(o)
680 __swig_destroy__ = _IMP_statistics.delete_Embedding
681 __del__ =
lambda self:
None
682 def __disown__(self):
684 _IMP_statistics.disown_Embedding(self)
685 return weakref_proxy(self)
687 def do_destroy(self):
688 """do_destroy(Embedding self)"""
689 return _IMP_statistics.Embedding_do_destroy(self)
691 Embedding_swigregister = _IMP_statistics.Embedding_swigregister
692 Embedding_swigregister(Embedding)
695 """Proxy of C++ IMP::statistics::Metric class"""
696 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
698 def __init__(self, name):
699 """__init__(IMP::statistics::Metric self, std::string name) -> Metric"""
700 if self.__class__ == Metric:
704 this = _IMP_statistics.new_Metric(_self, name)
706 self.this.append(this)
710 if self.__class__ != Metric:
711 _director_objects.register(self)
716 def do_get_weight(self, i):
717 """do_get_weight(Metric self, unsigned int i) -> double"""
718 return _IMP_statistics.Metric_do_get_weight(self, i)
722 """get_distance(Metric self, unsigned int i, unsigned int j) -> double"""
723 return _IMP_statistics.Metric_get_distance(self, i, j)
726 def get_weight(self, i):
727 """get_weight(Metric self, unsigned int i) -> double"""
728 return _IMP_statistics.Metric_get_weight(self, i)
731 def get_number_of_items(self):
732 """get_number_of_items(Metric self) -> unsigned int"""
733 return _IMP_statistics.Metric_get_number_of_items(self)
735 __swig_destroy__ = _IMP_statistics.delete_Metric
736 __del__ =
lambda self:
None
739 """__str__(Metric self) -> std::string"""
740 return _IMP_statistics.Metric___str__(self)
744 """__repr__(Metric self) -> std::string"""
745 return _IMP_statistics.Metric___repr__(self)
750 return _object_cast_to_Metric(o)
753 def get_type_name(self):
754 return self.__class__.__name__
755 def do_show(self, out):
757 def get_version_info(self):
758 if"IMP::statistics" ==
"IMP":
759 return VersionInfo(self.__module__,
766 return _object_cast_to_Metric(o)
768 def __disown__(self):
770 _IMP_statistics.disown_Metric(self)
771 return weakref_proxy(self)
773 def do_destroy(self):
774 """do_destroy(Metric self)"""
775 return _IMP_statistics.Metric_do_destroy(self)
777 Metric_swigregister = _IMP_statistics.Metric_swigregister
778 Metric_swigregister(Metric)
780 class ChiSquareMetric(Metric):
781 """Proxy of C++ IMP::statistics::ChiSquareMetric class"""
782 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
784 def __init__(self, data_exp, constr_type=0):
786 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp, int constr_type=0) -> ChiSquareMetric
787 __init__(IMP::statistics::ChiSquareMetric self, IMP::Floats data_exp) -> ChiSquareMetric
789 this = _IMP_statistics.new_ChiSquareMetric(data_exp, constr_type)
791 self.this.append(this)
795 def add_configuration(self, data, stddev, weight=1.0):
797 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev, double weight=1.0)
798 add_configuration(ChiSquareMetric self, IMP::Floats data, IMP::Floats stddev)
800 return _IMP_statistics.ChiSquareMetric_add_configuration(self, data, stddev, weight)
803 def get_data(self, i):
804 """get_data(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
805 return _IMP_statistics.ChiSquareMetric_get_data(self, i)
808 def get_standard_deviation(self, i):
809 """get_standard_deviation(ChiSquareMetric self, unsigned int i) -> IMP::Floats"""
810 return _IMP_statistics.ChiSquareMetric_get_standard_deviation(self, i)
813 def do_get_weight(self, i):
814 """do_get_weight(ChiSquareMetric self, unsigned int i) -> double"""
815 return _IMP_statistics.ChiSquareMetric_do_get_weight(self, i)
818 def get_chi_square_experimental(self, i):
819 """get_chi_square_experimental(ChiSquareMetric self, unsigned int i) -> double"""
820 return _IMP_statistics.ChiSquareMetric_get_chi_square_experimental(self, i)
823 def get_version_info(self):
824 """get_version_info(ChiSquareMetric self) -> VersionInfo"""
825 return _IMP_statistics.ChiSquareMetric_get_version_info(self)
829 """__str__(ChiSquareMetric self) -> std::string"""
830 return _IMP_statistics.ChiSquareMetric___str__(self)
834 """__repr__(ChiSquareMetric self) -> std::string"""
835 return _IMP_statistics.ChiSquareMetric___repr__(self)
840 return _object_cast_to_ChiSquareMetric(o)
842 ChiSquareMetric_swigregister = _IMP_statistics.ChiSquareMetric_swigregister
843 ChiSquareMetric_swigregister(ChiSquareMetric)
845 class PartitionalClusteringWithCenter(PartitionalClustering):
846 """Proxy of C++ IMP::statistics::PartitionalClusteringWithCenter class"""
847 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
849 def __init__(self, *args, **kwargs):
850 raise AttributeError(
"No constructor defined")
852 def get_cluster_center(self, i):
853 """get_cluster_center(PartitionalClusteringWithCenter self, unsigned int i) -> VectorKD"""
854 return _IMP_statistics.PartitionalClusteringWithCenter_get_cluster_center(self, i)
857 def get_version_info(self):
858 """get_version_info(PartitionalClusteringWithCenter self) -> VersionInfo"""
859 return _IMP_statistics.PartitionalClusteringWithCenter_get_version_info(self)
863 """__str__(PartitionalClusteringWithCenter self) -> std::string"""
864 return _IMP_statistics.PartitionalClusteringWithCenter___str__(self)
868 """__repr__(PartitionalClusteringWithCenter self) -> std::string"""
869 return _IMP_statistics.PartitionalClusteringWithCenter___repr__(self)
874 return _object_cast_to_PartitionalClusteringWithCenter(o)
876 PartitionalClusteringWithCenter_swigregister = _IMP_statistics.PartitionalClusteringWithCenter_swigregister
877 PartitionalClusteringWithCenter_swigregister(PartitionalClusteringWithCenter)
879 class ConfigurationSetXYZEmbedding(Embedding):
880 """Proxy of C++ IMP::statistics::ConfigurationSetXYZEmbedding class"""
881 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
883 def __init__(self, cs, pi, align=False):
885 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi, bool align=False) -> ConfigurationSetXYZEmbedding
886 __init__(IMP::statistics::ConfigurationSetXYZEmbedding self, ConfigurationSet cs, _SingletonContainerAdaptor pi) -> ConfigurationSetXYZEmbedding
888 this = _IMP_statistics.new_ConfigurationSetXYZEmbedding(cs, pi, align)
890 self.this.append(this)
894 def get_version_info(self):
895 """get_version_info(ConfigurationSetXYZEmbedding self) -> VersionInfo"""
896 return _IMP_statistics.ConfigurationSetXYZEmbedding_get_version_info(self)
900 """__str__(ConfigurationSetXYZEmbedding self) -> std::string"""
901 return _IMP_statistics.ConfigurationSetXYZEmbedding___str__(self)
905 """__repr__(ConfigurationSetXYZEmbedding self) -> std::string"""
906 return _IMP_statistics.ConfigurationSetXYZEmbedding___repr__(self)
911 return _object_cast_to_ConfigurationSetXYZEmbedding(o)
913 ConfigurationSetXYZEmbedding_swigregister = _IMP_statistics.ConfigurationSetXYZEmbedding_swigregister
914 ConfigurationSetXYZEmbedding_swigregister(ConfigurationSetXYZEmbedding)
916 class ParticleEmbedding(Embedding):
917 """Proxy of C++ IMP::statistics::ParticleEmbedding class"""
918 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
920 def __init__(self, *args):
922 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks, bool rescale=False) -> ParticleEmbedding
923 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps, IMP::FloatKeys const & ks) -> ParticleEmbedding
924 __init__(IMP::statistics::ParticleEmbedding self, IMP::ParticlesTemp const & ps) -> ParticleEmbedding
926 this = _IMP_statistics.new_ParticleEmbedding(*args)
928 self.this.append(this)
932 def get_version_info(self):
933 """get_version_info(ParticleEmbedding self) -> VersionInfo"""
934 return _IMP_statistics.ParticleEmbedding_get_version_info(self)
938 """__str__(ParticleEmbedding self) -> std::string"""
939 return _IMP_statistics.ParticleEmbedding___str__(self)
943 """__repr__(ParticleEmbedding self) -> std::string"""
944 return _IMP_statistics.ParticleEmbedding___repr__(self)
949 return _object_cast_to_ParticleEmbedding(o)
951 ParticleEmbedding_swigregister = _IMP_statistics.ParticleEmbedding_swigregister
952 ParticleEmbedding_swigregister(ParticleEmbedding)
954 class VectorDEmbedding(Embedding):
955 """Proxy of C++ IMP::statistics::VectorDEmbedding class"""
956 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
958 def __init__(self, *args):
960 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::VectorKDs const & vs) -> VectorDEmbedding
961 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector2Ds const & vs) -> VectorDEmbedding
962 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector3Ds const & vs) -> VectorDEmbedding
963 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector4Ds const & vs) -> VectorDEmbedding
964 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector5Ds const & vs) -> VectorDEmbedding
965 __init__(IMP::statistics::VectorDEmbedding self, IMP::algebra::Vector6Ds const & vs) -> VectorDEmbedding
967 this = _IMP_statistics.new_VectorDEmbedding(*args)
969 self.this.append(this)
973 def get_version_info(self):
974 """get_version_info(VectorDEmbedding self) -> VersionInfo"""
975 return _IMP_statistics.VectorDEmbedding_get_version_info(self)
979 """__str__(VectorDEmbedding self) -> std::string"""
980 return _IMP_statistics.VectorDEmbedding___str__(self)
984 """__repr__(VectorDEmbedding self) -> std::string"""
985 return _IMP_statistics.VectorDEmbedding___repr__(self)
990 return _object_cast_to_VectorDEmbedding(o)
992 VectorDEmbedding_swigregister = _IMP_statistics.VectorDEmbedding_swigregister
993 VectorDEmbedding_swigregister(VectorDEmbedding)
995 class EuclideanMetric(Metric):
996 """Proxy of C++ IMP::statistics::EuclideanMetric class"""
997 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
999 def __init__(self, em):
1000 """__init__(IMP::statistics::EuclideanMetric self, Embedding em) -> EuclideanMetric"""
1001 this = _IMP_statistics.new_EuclideanMetric(em)
1003 self.this.append(this)
1007 def get_version_info(self):
1008 """get_version_info(EuclideanMetric self) -> VersionInfo"""
1009 return _IMP_statistics.EuclideanMetric_get_version_info(self)
1013 """__str__(EuclideanMetric self) -> std::string"""
1014 return _IMP_statistics.EuclideanMetric___str__(self)
1018 """__repr__(EuclideanMetric self) -> std::string"""
1019 return _IMP_statistics.EuclideanMetric___repr__(self)
1024 return _object_cast_to_EuclideanMetric(o)
1026 EuclideanMetric_swigregister = _IMP_statistics.EuclideanMetric_swigregister
1027 EuclideanMetric_swigregister(EuclideanMetric)
1029 class ConfigurationSetRMSDMetric(Metric):
1030 """Proxy of C++ IMP::statistics::ConfigurationSetRMSDMetric class"""
1031 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1033 def __init__(self, cs, sc, align=False):
1035 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc, bool align=False) -> ConfigurationSetRMSDMetric
1036 __init__(IMP::statistics::ConfigurationSetRMSDMetric self, ConfigurationSet cs, SingletonContainer sc) -> ConfigurationSetRMSDMetric
1038 this = _IMP_statistics.new_ConfigurationSetRMSDMetric(cs, sc, align)
1040 self.this.append(this)
1044 def get_version_info(self):
1045 """get_version_info(ConfigurationSetRMSDMetric self) -> VersionInfo"""
1046 return _IMP_statistics.ConfigurationSetRMSDMetric_get_version_info(self)
1050 """__str__(ConfigurationSetRMSDMetric self) -> std::string"""
1051 return _IMP_statistics.ConfigurationSetRMSDMetric___str__(self)
1055 """__repr__(ConfigurationSetRMSDMetric self) -> std::string"""
1056 return _IMP_statistics.ConfigurationSetRMSDMetric___repr__(self)
1061 return _object_cast_to_ConfigurationSetRMSDMetric(o)
1063 ConfigurationSetRMSDMetric_swigregister = _IMP_statistics.ConfigurationSetRMSDMetric_swigregister
1064 ConfigurationSetRMSDMetric_swigregister(ConfigurationSetRMSDMetric)
1068 """create_lloyds_kmeans(Embedding embedding, unsigned int k, unsigned int iterations) -> PartitionalClusteringWithCenter"""
1069 return _IMP_statistics.create_lloyds_kmeans(embedding, k, iterations)
1072 """create_bin_based_clustering(Embedding embed, double side) -> PartitionalClusteringWithCenter"""
1073 return _IMP_statistics.create_bin_based_clustering(embed, side)
1077 create_centrality_clustering(Embedding d, double far, int k) -> PartitionalClustering
1078 create_centrality_clustering(Metric d, double far, int k) -> PartitionalClustering
1080 return _IMP_statistics.create_centrality_clustering(*args)
1083 """create_diameter_clustering(Metric d, double maximum_diameter) -> PartitionalClustering"""
1084 return _IMP_statistics.create_diameter_clustering(d, maximum_diameter)
1088 create_connectivity_clustering(Embedding embed, double dist) -> PartitionalClusteringWithCenter
1089 create_connectivity_clustering(Metric metric, double dist) -> PartitionalClustering
1091 return _IMP_statistics.create_connectivity_clustering(*args)
1093 def create_gromos_clustering(d, cutoff):
1094 """create_gromos_clustering(Metric d, double cutoff) -> PartitionalClustering"""
1095 return _IMP_statistics.create_gromos_clustering(d, cutoff)
1098 """get_quantile(Histogram1D h, double fraction) -> double"""
1099 return _IMP_statistics.get_quantile(h, fraction)
1102 """get_centroids(Embedding d, PartitionalClustering pc) -> IMP::algebra::VectorKDs"""
1103 return _IMP_statistics.get_centroids(d, pc)
1106 """get_representatives(Embedding d, PartitionalClustering pc) -> IMP::Ints"""
1107 return _IMP_statistics.get_representatives(d, pc)
1108 class RecursivePartitionalClusteringEmbedding(Embedding):
1109 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringEmbedding class"""
1110 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1112 def __init__(self, metric, clustering):
1113 """__init__(IMP::statistics::RecursivePartitionalClusteringEmbedding self, Embedding metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringEmbedding"""
1114 this = _IMP_statistics.new_RecursivePartitionalClusteringEmbedding(metric, clustering)
1116 self.this.append(this)
1120 def create_full_clustering(self, center_cluster):
1121 """create_full_clustering(RecursivePartitionalClusteringEmbedding self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1122 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_create_full_clustering(self, center_cluster)
1125 def get_version_info(self):
1126 """get_version_info(RecursivePartitionalClusteringEmbedding self) -> VersionInfo"""
1127 return _IMP_statistics.RecursivePartitionalClusteringEmbedding_get_version_info(self)
1131 """__str__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1132 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___str__(self)
1136 """__repr__(RecursivePartitionalClusteringEmbedding self) -> std::string"""
1137 return _IMP_statistics.RecursivePartitionalClusteringEmbedding___repr__(self)
1142 return _object_cast_to_RecursivePartitionalClusteringEmbedding(o)
1144 RecursivePartitionalClusteringEmbedding_swigregister = _IMP_statistics.RecursivePartitionalClusteringEmbedding_swigregister
1145 RecursivePartitionalClusteringEmbedding_swigregister(RecursivePartitionalClusteringEmbedding)
1147 class RecursivePartitionalClusteringMetric(Metric):
1148 """Proxy of C++ IMP::statistics::RecursivePartitionalClusteringMetric class"""
1149 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1151 def __init__(self, metric, clustering):
1152 """__init__(IMP::statistics::RecursivePartitionalClusteringMetric self, Metric metric, PartitionalClustering clustering) -> RecursivePartitionalClusteringMetric"""
1153 this = _IMP_statistics.new_RecursivePartitionalClusteringMetric(metric, clustering)
1155 self.this.append(this)
1159 def create_full_clustering(self, center_cluster):
1160 """create_full_clustering(RecursivePartitionalClusteringMetric self, PartitionalClustering center_cluster) -> PartitionalClustering"""
1161 return _IMP_statistics.RecursivePartitionalClusteringMetric_create_full_clustering(self, center_cluster)
1164 def get_version_info(self):
1165 """get_version_info(RecursivePartitionalClusteringMetric self) -> VersionInfo"""
1166 return _IMP_statistics.RecursivePartitionalClusteringMetric_get_version_info(self)
1170 """__str__(RecursivePartitionalClusteringMetric self) -> std::string"""
1171 return _IMP_statistics.RecursivePartitionalClusteringMetric___str__(self)
1175 """__repr__(RecursivePartitionalClusteringMetric self) -> std::string"""
1176 return _IMP_statistics.RecursivePartitionalClusteringMetric___repr__(self)
1181 return _object_cast_to_RecursivePartitionalClusteringMetric(o)
1183 RecursivePartitionalClusteringMetric_swigregister = _IMP_statistics.RecursivePartitionalClusteringMetric_swigregister
1184 RecursivePartitionalClusteringMetric_swigregister(RecursivePartitionalClusteringMetric)
1186 class Histogram1D(IMP.algebra._GeometricPrimitive1D):
1187 """Proxy of C++ IMP::statistics::HistogramD<(1)> class"""
1188 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1190 def __init__(self, *args):
1192 __init__(IMP::statistics::HistogramD<(1)> self) -> Histogram1D
1193 __init__(IMP::statistics::HistogramD<(1)> self, double voxel_size, BoundingBox1D bb) -> Histogram1D
1195 this = _IMP_statistics.new_Histogram1D(*args)
1197 self.this.append(this)
1201 def add(self, x, weight=1):
1203 add(Histogram1D self, Vector1D x, double weight=1)
1204 add(Histogram1D self, Vector1D x)
1206 return _IMP_statistics.Histogram1D_add(self, x, weight)
1209 def get_total_count(self):
1210 """get_total_count(Histogram1D self) -> double"""
1211 return _IMP_statistics.Histogram1D_get_total_count(self)
1214 def get_frequencies(self):
1215 """get_frequencies(Histogram1D self) -> Histogram1D"""
1216 return _IMP_statistics.Histogram1D_get_frequencies(self)
1219 def get_probability_distribution_function(self):
1220 """get_probability_distribution_function(Histogram1D self) -> Histogram1D"""
1221 return _IMP_statistics.Histogram1D_get_probability_distribution_function(self)
1224 def get_counts(self):
1225 """get_counts(Histogram1D self) -> _HistogramCountsGrid1D"""
1226 return _IMP_statistics.Histogram1D_get_counts(self)
1230 """get_mean(Histogram1D self) -> Vector1D"""
1231 return _IMP_statistics.Histogram1D_get_mean(self)
1234 def get_dimension(self):
1235 """get_dimension(Histogram1D self) -> unsigned int"""
1236 return _IMP_statistics.Histogram1D_get_dimension(self)
1239 def get_standard_deviation(self, mean):
1240 """get_standard_deviation(Histogram1D self, Vector1D mean) -> Vector1D"""
1241 return _IMP_statistics.Histogram1D_get_standard_deviation(self, mean)
1244 def get_bounding_box(self):
1245 """get_bounding_box(Histogram1D self) -> BoundingBox1D"""
1246 return _IMP_statistics.Histogram1D_get_bounding_box(self)
1249 def get_minimum_and_maximum(self):
1250 """get_minimum_and_maximum(Histogram1D self) -> IMP::FloatPair"""
1251 return _IMP_statistics.Histogram1D_get_minimum_and_maximum(self)
1254 def show(self, *args):
1256 show(Histogram1D self, _ostream out)
1257 show(Histogram1D self)
1259 return _IMP_statistics.Histogram1D_show(self, *args)
1263 """__str__(Histogram1D self) -> std::string"""
1264 return _IMP_statistics.Histogram1D___str__(self)
1268 """__repr__(Histogram1D self) -> std::string"""
1269 return _IMP_statistics.Histogram1D___repr__(self)
1272 def __cmp__(self, arg2):
1273 """__cmp__(Histogram1D self, Histogram1D arg2) -> int"""
1274 return _IMP_statistics.Histogram1D___cmp__(self, arg2)
1277 def __eq__(self, arg2):
1278 """__eq__(Histogram1D self, Histogram1D arg2) -> bool"""
1279 return _IMP_statistics.Histogram1D___eq__(self, arg2)
1281 __swig_destroy__ = _IMP_statistics.delete_Histogram1D
1282 __del__ =
lambda self:
None
1283 Histogram1D_swigregister = _IMP_statistics.Histogram1D_swigregister
1284 Histogram1D_swigregister(Histogram1D)
1286 class Histogram2D(IMP.algebra._GeometricPrimitive2D):
1287 """Proxy of C++ IMP::statistics::HistogramD<(2)> class"""
1288 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1290 def __init__(self, *args):
1292 __init__(IMP::statistics::HistogramD<(2)> self) -> Histogram2D
1293 __init__(IMP::statistics::HistogramD<(2)> self, double voxel_size, BoundingBox2D bb) -> Histogram2D
1295 this = _IMP_statistics.new_Histogram2D(*args)
1297 self.this.append(this)
1301 def add(self, x, weight=1):
1303 add(Histogram2D self, Vector2D x, double weight=1)
1304 add(Histogram2D self, Vector2D x)
1306 return _IMP_statistics.Histogram2D_add(self, x, weight)
1309 def get_total_count(self):
1310 """get_total_count(Histogram2D self) -> double"""
1311 return _IMP_statistics.Histogram2D_get_total_count(self)
1314 def get_frequencies(self):
1315 """get_frequencies(Histogram2D self) -> Histogram2D"""
1316 return _IMP_statistics.Histogram2D_get_frequencies(self)
1319 def get_probability_distribution_function(self):
1320 """get_probability_distribution_function(Histogram2D self) -> Histogram2D"""
1321 return _IMP_statistics.Histogram2D_get_probability_distribution_function(self)
1324 def get_counts(self):
1325 """get_counts(Histogram2D self) -> _HistogramCountsGrid2D"""
1326 return _IMP_statistics.Histogram2D_get_counts(self)
1330 """get_mean(Histogram2D self) -> Vector2D"""
1331 return _IMP_statistics.Histogram2D_get_mean(self)
1334 def get_dimension(self):
1335 """get_dimension(Histogram2D self) -> unsigned int"""
1336 return _IMP_statistics.Histogram2D_get_dimension(self)
1339 def get_standard_deviation(self, mean):
1340 """get_standard_deviation(Histogram2D self, Vector2D mean) -> Vector2D"""
1341 return _IMP_statistics.Histogram2D_get_standard_deviation(self, mean)
1344 def get_bounding_box(self):
1345 """get_bounding_box(Histogram2D self) -> BoundingBox2D"""
1346 return _IMP_statistics.Histogram2D_get_bounding_box(self)
1349 def get_minimum_and_maximum(self):
1350 """get_minimum_and_maximum(Histogram2D self) -> IMP::FloatPair"""
1351 return _IMP_statistics.Histogram2D_get_minimum_and_maximum(self)
1354 def show(self, *args):
1356 show(Histogram2D self, _ostream out)
1357 show(Histogram2D self)
1359 return _IMP_statistics.Histogram2D_show(self, *args)
1363 """__str__(Histogram2D self) -> std::string"""
1364 return _IMP_statistics.Histogram2D___str__(self)
1368 """__repr__(Histogram2D self) -> std::string"""
1369 return _IMP_statistics.Histogram2D___repr__(self)
1372 def __cmp__(self, arg2):
1373 """__cmp__(Histogram2D self, Histogram2D arg2) -> int"""
1374 return _IMP_statistics.Histogram2D___cmp__(self, arg2)
1377 def __eq__(self, arg2):
1378 """__eq__(Histogram2D self, Histogram2D arg2) -> bool"""
1379 return _IMP_statistics.Histogram2D___eq__(self, arg2)
1381 __swig_destroy__ = _IMP_statistics.delete_Histogram2D
1382 __del__ =
lambda self:
None
1383 Histogram2D_swigregister = _IMP_statistics.Histogram2D_swigregister
1384 Histogram2D_swigregister(Histogram2D)
1386 class Histogram3D(IMP.algebra._GeometricPrimitive3D):
1387 """Proxy of C++ IMP::statistics::HistogramD<(3)> class"""
1388 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1390 def __init__(self, *args):
1392 __init__(IMP::statistics::HistogramD<(3)> self) -> Histogram3D
1393 __init__(IMP::statistics::HistogramD<(3)> self, double voxel_size, BoundingBox3D bb) -> Histogram3D
1395 this = _IMP_statistics.new_Histogram3D(*args)
1397 self.this.append(this)
1401 def add(self, x, weight=1):
1403 add(Histogram3D self, Vector3D x, double weight=1)
1404 add(Histogram3D self, Vector3D x)
1406 return _IMP_statistics.Histogram3D_add(self, x, weight)
1409 def get_total_count(self):
1410 """get_total_count(Histogram3D self) -> double"""
1411 return _IMP_statistics.Histogram3D_get_total_count(self)
1414 def get_frequencies(self):
1415 """get_frequencies(Histogram3D self) -> Histogram3D"""
1416 return _IMP_statistics.Histogram3D_get_frequencies(self)
1419 def get_probability_distribution_function(self):
1420 """get_probability_distribution_function(Histogram3D self) -> Histogram3D"""
1421 return _IMP_statistics.Histogram3D_get_probability_distribution_function(self)
1424 def get_counts(self):
1425 """get_counts(Histogram3D self) -> _HistogramCountsGrid3D"""
1426 return _IMP_statistics.Histogram3D_get_counts(self)
1430 """get_mean(Histogram3D self) -> Vector3D"""
1431 return _IMP_statistics.Histogram3D_get_mean(self)
1434 def get_dimension(self):
1435 """get_dimension(Histogram3D self) -> unsigned int"""
1436 return _IMP_statistics.Histogram3D_get_dimension(self)
1439 def get_standard_deviation(self, mean):
1440 """get_standard_deviation(Histogram3D self, Vector3D mean) -> Vector3D"""
1441 return _IMP_statistics.Histogram3D_get_standard_deviation(self, mean)
1444 def get_bounding_box(self):
1445 """get_bounding_box(Histogram3D self) -> BoundingBox3D"""
1446 return _IMP_statistics.Histogram3D_get_bounding_box(self)
1449 def get_minimum_and_maximum(self):
1450 """get_minimum_and_maximum(Histogram3D self) -> IMP::FloatPair"""
1451 return _IMP_statistics.Histogram3D_get_minimum_and_maximum(self)
1454 def show(self, *args):
1456 show(Histogram3D self, _ostream out)
1457 show(Histogram3D self)
1459 return _IMP_statistics.Histogram3D_show(self, *args)
1463 """__str__(Histogram3D self) -> std::string"""
1464 return _IMP_statistics.Histogram3D___str__(self)
1468 """__repr__(Histogram3D self) -> std::string"""
1469 return _IMP_statistics.Histogram3D___repr__(self)
1472 def __cmp__(self, arg2):
1473 """__cmp__(Histogram3D self, Histogram3D arg2) -> int"""
1474 return _IMP_statistics.Histogram3D___cmp__(self, arg2)
1477 def __eq__(self, arg2):
1478 """__eq__(Histogram3D self, Histogram3D arg2) -> bool"""
1479 return _IMP_statistics.Histogram3D___eq__(self, arg2)
1481 __swig_destroy__ = _IMP_statistics.delete_Histogram3D
1482 __del__ =
lambda self:
None
1483 Histogram3D_swigregister = _IMP_statistics.Histogram3D_swigregister
1484 Histogram3D_swigregister(Histogram3D)
1486 class Histogram4D(IMP.algebra._GeometricPrimitive4D):
1487 """Proxy of C++ IMP::statistics::HistogramD<(4)> class"""
1488 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1490 def __init__(self, *args):
1492 __init__(IMP::statistics::HistogramD<(4)> self) -> Histogram4D
1493 __init__(IMP::statistics::HistogramD<(4)> self, double voxel_size, BoundingBox4D bb) -> Histogram4D
1495 this = _IMP_statistics.new_Histogram4D(*args)
1497 self.this.append(this)
1501 def add(self, x, weight=1):
1503 add(Histogram4D self, Vector4D x, double weight=1)
1504 add(Histogram4D self, Vector4D x)
1506 return _IMP_statistics.Histogram4D_add(self, x, weight)
1509 def get_total_count(self):
1510 """get_total_count(Histogram4D self) -> double"""
1511 return _IMP_statistics.Histogram4D_get_total_count(self)
1514 def get_frequencies(self):
1515 """get_frequencies(Histogram4D self) -> Histogram4D"""
1516 return _IMP_statistics.Histogram4D_get_frequencies(self)
1519 def get_probability_distribution_function(self):
1520 """get_probability_distribution_function(Histogram4D self) -> Histogram4D"""
1521 return _IMP_statistics.Histogram4D_get_probability_distribution_function(self)
1524 def get_counts(self):
1525 """get_counts(Histogram4D self) -> _HistogramCountsGrid4D"""
1526 return _IMP_statistics.Histogram4D_get_counts(self)
1530 """get_mean(Histogram4D self) -> Vector4D"""
1531 return _IMP_statistics.Histogram4D_get_mean(self)
1534 def get_dimension(self):
1535 """get_dimension(Histogram4D self) -> unsigned int"""
1536 return _IMP_statistics.Histogram4D_get_dimension(self)
1539 def get_standard_deviation(self, mean):
1540 """get_standard_deviation(Histogram4D self, Vector4D mean) -> Vector4D"""
1541 return _IMP_statistics.Histogram4D_get_standard_deviation(self, mean)
1544 def get_bounding_box(self):
1545 """get_bounding_box(Histogram4D self) -> BoundingBox4D"""
1546 return _IMP_statistics.Histogram4D_get_bounding_box(self)
1549 def get_minimum_and_maximum(self):
1550 """get_minimum_and_maximum(Histogram4D self) -> IMP::FloatPair"""
1551 return _IMP_statistics.Histogram4D_get_minimum_and_maximum(self)
1554 def show(self, *args):
1556 show(Histogram4D self, _ostream out)
1557 show(Histogram4D self)
1559 return _IMP_statistics.Histogram4D_show(self, *args)
1563 """__str__(Histogram4D self) -> std::string"""
1564 return _IMP_statistics.Histogram4D___str__(self)
1568 """__repr__(Histogram4D self) -> std::string"""
1569 return _IMP_statistics.Histogram4D___repr__(self)
1572 def __cmp__(self, arg2):
1573 """__cmp__(Histogram4D self, Histogram4D arg2) -> int"""
1574 return _IMP_statistics.Histogram4D___cmp__(self, arg2)
1577 def __eq__(self, arg2):
1578 """__eq__(Histogram4D self, Histogram4D arg2) -> bool"""
1579 return _IMP_statistics.Histogram4D___eq__(self, arg2)
1581 __swig_destroy__ = _IMP_statistics.delete_Histogram4D
1582 __del__ =
lambda self:
None
1583 Histogram4D_swigregister = _IMP_statistics.Histogram4D_swigregister
1584 Histogram4D_swigregister(Histogram4D)
1586 class Histogram5D(IMP.algebra._GeometricPrimitive5D):
1587 """Proxy of C++ IMP::statistics::HistogramD<(5)> class"""
1588 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1590 def __init__(self, *args):
1592 __init__(IMP::statistics::HistogramD<(5)> self) -> Histogram5D
1593 __init__(IMP::statistics::HistogramD<(5)> self, double voxel_size, BoundingBox5D bb) -> Histogram5D
1595 this = _IMP_statistics.new_Histogram5D(*args)
1597 self.this.append(this)
1601 def add(self, x, weight=1):
1603 add(Histogram5D self, Vector5D x, double weight=1)
1604 add(Histogram5D self, Vector5D x)
1606 return _IMP_statistics.Histogram5D_add(self, x, weight)
1609 def get_total_count(self):
1610 """get_total_count(Histogram5D self) -> double"""
1611 return _IMP_statistics.Histogram5D_get_total_count(self)
1614 def get_frequencies(self):
1615 """get_frequencies(Histogram5D self) -> Histogram5D"""
1616 return _IMP_statistics.Histogram5D_get_frequencies(self)
1619 def get_probability_distribution_function(self):
1620 """get_probability_distribution_function(Histogram5D self) -> Histogram5D"""
1621 return _IMP_statistics.Histogram5D_get_probability_distribution_function(self)
1624 def get_counts(self):
1625 """get_counts(Histogram5D self) -> _HistogramCountsGrid5D"""
1626 return _IMP_statistics.Histogram5D_get_counts(self)
1630 """get_mean(Histogram5D self) -> Vector5D"""
1631 return _IMP_statistics.Histogram5D_get_mean(self)
1634 def get_dimension(self):
1635 """get_dimension(Histogram5D self) -> unsigned int"""
1636 return _IMP_statistics.Histogram5D_get_dimension(self)
1639 def get_standard_deviation(self, mean):
1640 """get_standard_deviation(Histogram5D self, Vector5D mean) -> Vector5D"""
1641 return _IMP_statistics.Histogram5D_get_standard_deviation(self, mean)
1644 def get_bounding_box(self):
1645 """get_bounding_box(Histogram5D self) -> BoundingBox5D"""
1646 return _IMP_statistics.Histogram5D_get_bounding_box(self)
1649 def get_minimum_and_maximum(self):
1650 """get_minimum_and_maximum(Histogram5D self) -> IMP::FloatPair"""
1651 return _IMP_statistics.Histogram5D_get_minimum_and_maximum(self)
1654 def show(self, *args):
1656 show(Histogram5D self, _ostream out)
1657 show(Histogram5D self)
1659 return _IMP_statistics.Histogram5D_show(self, *args)
1663 """__str__(Histogram5D self) -> std::string"""
1664 return _IMP_statistics.Histogram5D___str__(self)
1668 """__repr__(Histogram5D self) -> std::string"""
1669 return _IMP_statistics.Histogram5D___repr__(self)
1672 def __cmp__(self, arg2):
1673 """__cmp__(Histogram5D self, Histogram5D arg2) -> int"""
1674 return _IMP_statistics.Histogram5D___cmp__(self, arg2)
1677 def __eq__(self, arg2):
1678 """__eq__(Histogram5D self, Histogram5D arg2) -> bool"""
1679 return _IMP_statistics.Histogram5D___eq__(self, arg2)
1681 __swig_destroy__ = _IMP_statistics.delete_Histogram5D
1682 __del__ =
lambda self:
None
1683 Histogram5D_swigregister = _IMP_statistics.Histogram5D_swigregister
1684 Histogram5D_swigregister(Histogram5D)
1686 class Histogram6D(IMP.algebra._GeometricPrimitive6D):
1687 """Proxy of C++ IMP::statistics::HistogramD<(6)> class"""
1688 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1690 def __init__(self, *args):
1692 __init__(IMP::statistics::HistogramD<(6)> self) -> Histogram6D
1693 __init__(IMP::statistics::HistogramD<(6)> self, double voxel_size, BoundingBox6D bb) -> Histogram6D
1695 this = _IMP_statistics.new_Histogram6D(*args)
1697 self.this.append(this)
1701 def add(self, x, weight=1):
1703 add(Histogram6D self, Vector6D x, double weight=1)
1704 add(Histogram6D self, Vector6D x)
1706 return _IMP_statistics.Histogram6D_add(self, x, weight)
1709 def get_total_count(self):
1710 """get_total_count(Histogram6D self) -> double"""
1711 return _IMP_statistics.Histogram6D_get_total_count(self)
1714 def get_frequencies(self):
1715 """get_frequencies(Histogram6D self) -> Histogram6D"""
1716 return _IMP_statistics.Histogram6D_get_frequencies(self)
1719 def get_probability_distribution_function(self):
1720 """get_probability_distribution_function(Histogram6D self) -> Histogram6D"""
1721 return _IMP_statistics.Histogram6D_get_probability_distribution_function(self)
1724 def get_counts(self):
1725 """get_counts(Histogram6D self) -> _HistogramCountsGrid6D"""
1726 return _IMP_statistics.Histogram6D_get_counts(self)
1730 """get_mean(Histogram6D self) -> Vector6D"""
1731 return _IMP_statistics.Histogram6D_get_mean(self)
1734 def get_dimension(self):
1735 """get_dimension(Histogram6D self) -> unsigned int"""
1736 return _IMP_statistics.Histogram6D_get_dimension(self)
1739 def get_standard_deviation(self, mean):
1740 """get_standard_deviation(Histogram6D self, Vector6D mean) -> Vector6D"""
1741 return _IMP_statistics.Histogram6D_get_standard_deviation(self, mean)
1744 def get_bounding_box(self):
1745 """get_bounding_box(Histogram6D self) -> BoundingBox6D"""
1746 return _IMP_statistics.Histogram6D_get_bounding_box(self)
1749 def get_minimum_and_maximum(self):
1750 """get_minimum_and_maximum(Histogram6D self) -> IMP::FloatPair"""
1751 return _IMP_statistics.Histogram6D_get_minimum_and_maximum(self)
1754 def show(self, *args):
1756 show(Histogram6D self, _ostream out)
1757 show(Histogram6D self)
1759 return _IMP_statistics.Histogram6D_show(self, *args)
1763 """__str__(Histogram6D self) -> std::string"""
1764 return _IMP_statistics.Histogram6D___str__(self)
1768 """__repr__(Histogram6D self) -> std::string"""
1769 return _IMP_statistics.Histogram6D___repr__(self)
1772 def __cmp__(self, arg2):
1773 """__cmp__(Histogram6D self, Histogram6D arg2) -> int"""
1774 return _IMP_statistics.Histogram6D___cmp__(self, arg2)
1777 def __eq__(self, arg2):
1778 """__eq__(Histogram6D self, Histogram6D arg2) -> bool"""
1779 return _IMP_statistics.Histogram6D___eq__(self, arg2)
1781 __swig_destroy__ = _IMP_statistics.delete_Histogram6D
1782 __del__ =
lambda self:
None
1783 Histogram6D_swigregister = _IMP_statistics.Histogram6D_swigregister
1784 Histogram6D_swigregister(Histogram6D)
1786 class HistogramKD(IMP.algebra._GeometricPrimitiveKD):
1787 """Proxy of C++ IMP::statistics::HistogramD<(-1)> class"""
1788 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1790 def __init__(self, *args):
1792 __init__(IMP::statistics::HistogramD<(-1)> self) -> HistogramKD
1793 __init__(IMP::statistics::HistogramD<(-1)> self, double voxel_size, BoundingBoxKD bb) -> HistogramKD
1795 this = _IMP_statistics.new_HistogramKD(*args)
1797 self.this.append(this)
1801 def add(self, x, weight=1):
1803 add(HistogramKD self, VectorKD x, double weight=1)
1804 add(HistogramKD self, VectorKD x)
1806 return _IMP_statistics.HistogramKD_add(self, x, weight)
1809 def get_total_count(self):
1810 """get_total_count(HistogramKD self) -> double"""
1811 return _IMP_statistics.HistogramKD_get_total_count(self)
1814 def get_frequencies(self):
1815 """get_frequencies(HistogramKD self) -> HistogramKD"""
1816 return _IMP_statistics.HistogramKD_get_frequencies(self)
1819 def get_probability_distribution_function(self):
1820 """get_probability_distribution_function(HistogramKD self) -> HistogramKD"""
1821 return _IMP_statistics.HistogramKD_get_probability_distribution_function(self)
1824 def get_counts(self):
1825 """get_counts(HistogramKD self) -> _HistogramCountsGridKD"""
1826 return _IMP_statistics.HistogramKD_get_counts(self)
1830 """get_mean(HistogramKD self) -> VectorKD"""
1831 return _IMP_statistics.HistogramKD_get_mean(self)
1834 def get_dimension(self):
1835 """get_dimension(HistogramKD self) -> unsigned int"""
1836 return _IMP_statistics.HistogramKD_get_dimension(self)
1839 def get_standard_deviation(self, mean):
1840 """get_standard_deviation(HistogramKD self, VectorKD mean) -> VectorKD"""
1841 return _IMP_statistics.HistogramKD_get_standard_deviation(self, mean)
1844 def get_bounding_box(self):
1845 """get_bounding_box(HistogramKD self) -> BoundingBoxKD"""
1846 return _IMP_statistics.HistogramKD_get_bounding_box(self)
1849 def get_minimum_and_maximum(self):
1850 """get_minimum_and_maximum(HistogramKD self) -> IMP::FloatPair"""
1851 return _IMP_statistics.HistogramKD_get_minimum_and_maximum(self)
1854 def show(self, *args):
1856 show(HistogramKD self, _ostream out)
1857 show(HistogramKD self)
1859 return _IMP_statistics.HistogramKD_show(self, *args)
1863 """__str__(HistogramKD self) -> std::string"""
1864 return _IMP_statistics.HistogramKD___str__(self)
1868 """__repr__(HistogramKD self) -> std::string"""
1869 return _IMP_statistics.HistogramKD___repr__(self)
1872 def __cmp__(self, arg2):
1873 """__cmp__(HistogramKD self, HistogramKD arg2) -> int"""
1874 return _IMP_statistics.HistogramKD___cmp__(self, arg2)
1877 def __eq__(self, arg2):
1878 """__eq__(HistogramKD self, HistogramKD arg2) -> bool"""
1879 return _IMP_statistics.HistogramKD___eq__(self, arg2)
1881 __swig_destroy__ = _IMP_statistics.delete_HistogramKD
1882 __del__ =
lambda self:
None
1883 HistogramKD_swigregister = _IMP_statistics.HistogramKD_swigregister
1884 HistogramKD_swigregister(HistogramKD)
1886 class _IntDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1887 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,int)> class"""
1888 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1889 __repr__ = _swig_repr
1891 def __setitem__(self, *args):
1893 __setitem__(_IntDenseGridStorageKD self, GridIndexKD i, int const & v)
1894 __setitem__(_IntDenseGridStorageKD self, unsigned int i, int const & v)
1896 return _IMP_statistics._IntDenseGridStorageKD___setitem__(self, *args)
1899 def __getitem__(self, *args):
1901 __getitem__(_IntDenseGridStorageKD self, GridIndexKD i) -> int const
1902 __getitem__(_IntDenseGridStorageKD self, unsigned int i) -> int const &
1904 return _IMP_statistics._IntDenseGridStorageKD___getitem__(self, *args)
1907 def __init__(self, *args):
1909 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, _IntDenseGridStorageKD o) -> _IntDenseGridStorageKD
1910 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorageKD
1911 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorageKD
1912 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self, int const & default_value) -> _IntDenseGridStorageKD
1913 __init__(IMP::algebra::DenseGridStorageD<(-1,int)> self) -> _IntDenseGridStorageKD
1915 this = _IMP_statistics.new__IntDenseGridStorageKD(*args)
1917 self.this.append(this)
1922 """get_is_dense() -> bool"""
1923 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1925 get_is_dense = staticmethod(get_is_dense)
1927 def show(self, *args):
1929 show(_IntDenseGridStorageKD self, _ostream out)
1930 show(_IntDenseGridStorageKD self)
1932 return _IMP_statistics._IntDenseGridStorageKD_show(self, *args)
1935 def add_voxel(self, arg2, arg3):
1936 """add_voxel(_IntDenseGridStorageKD self, ExtendedGridIndexKD arg2, int const & arg3) -> GridIndexKD"""
1937 return _IMP_statistics._IntDenseGridStorageKD_add_voxel(self, arg2, arg3)
1940 def get_all_voxels(self):
1941 """get_all_voxels(_IntDenseGridStorageKD self) -> IMP::Vector< int >"""
1942 return _IMP_statistics._IntDenseGridStorageKD_get_all_voxels(self)
1944 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorageKD
1945 __del__ =
lambda self:
None
1946 _IntDenseGridStorageKD_swigregister = _IMP_statistics._IntDenseGridStorageKD_swigregister
1947 _IntDenseGridStorageKD_swigregister(_IntDenseGridStorageKD)
1949 def _IntDenseGridStorageKD_get_is_dense():
1950 """_IntDenseGridStorageKD_get_is_dense() -> bool"""
1951 return _IMP_statistics._IntDenseGridStorageKD_get_is_dense()
1953 class _FloatDenseGridStorageKD(IMP.algebra.BoundedGridRangeKD):
1954 """Proxy of C++ IMP::algebra::DenseGridStorageD<(-1,double)> class"""
1955 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1956 __repr__ = _swig_repr
1958 def __setitem__(self, *args):
1960 __setitem__(_FloatDenseGridStorageKD self, GridIndexKD i, double const & v)
1961 __setitem__(_FloatDenseGridStorageKD self, unsigned int i, double const & v)
1963 return _IMP_statistics._FloatDenseGridStorageKD___setitem__(self, *args)
1966 def __getitem__(self, *args):
1968 __getitem__(_FloatDenseGridStorageKD self, GridIndexKD i) -> double const
1969 __getitem__(_FloatDenseGridStorageKD self, unsigned int i) -> double const &
1971 return _IMP_statistics._FloatDenseGridStorageKD___getitem__(self, *args)
1974 def __init__(self, *args):
1976 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, _FloatDenseGridStorageKD o) -> _FloatDenseGridStorageKD
1977 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorageKD
1978 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorageKD
1979 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self, double const & default_value) -> _FloatDenseGridStorageKD
1980 __init__(IMP::algebra::DenseGridStorageD<(-1,double)> self) -> _FloatDenseGridStorageKD
1982 this = _IMP_statistics.new__FloatDenseGridStorageKD(*args)
1984 self.this.append(this)
1989 """get_is_dense() -> bool"""
1990 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
1992 get_is_dense = staticmethod(get_is_dense)
1994 def show(self, *args):
1996 show(_FloatDenseGridStorageKD self, _ostream out)
1997 show(_FloatDenseGridStorageKD self)
1999 return _IMP_statistics._FloatDenseGridStorageKD_show(self, *args)
2002 def add_voxel(self, arg2, arg3):
2003 """add_voxel(_FloatDenseGridStorageKD self, ExtendedGridIndexKD arg2, double const & arg3) -> GridIndexKD"""
2004 return _IMP_statistics._FloatDenseGridStorageKD_add_voxel(self, arg2, arg3)
2007 def get_all_voxels(self):
2008 """get_all_voxels(_FloatDenseGridStorageKD self) -> IMP::Vector< double >"""
2009 return _IMP_statistics._FloatDenseGridStorageKD_get_all_voxels(self)
2011 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorageKD
2012 __del__ =
lambda self:
None
2013 _FloatDenseGridStorageKD_swigregister = _IMP_statistics._FloatDenseGridStorageKD_swigregister
2014 _FloatDenseGridStorageKD_swigregister(_FloatDenseGridStorageKD)
2016 def _FloatDenseGridStorageKD_get_is_dense():
2017 """_FloatDenseGridStorageKD_get_is_dense() -> bool"""
2018 return _IMP_statistics._FloatDenseGridStorageKD_get_is_dense()
2020 class _HistogramCountsGridKD(_FloatDenseGridStorageKD, IMP.algebra.DefaultEmbeddingKD, IMP.algebra._GeometricPrimitiveKD):
2021 """Proxy of C++ IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> class"""
2022 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2023 __repr__ = _swig_repr
2025 def __init__(self, *args):
2027 __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
2028 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, IMP::Ints const counts, BoundingBoxKD bb) -> _HistogramCountsGridKD
2029 __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
2030 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, BoundingBoxKD bb) -> _HistogramCountsGridKD
2031 __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
2032 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, BoundingBoxKD bb) -> _HistogramCountsGridKD
2033 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, _FloatDenseGridStorageKD storage, DefaultEmbeddingKD embed) -> _HistogramCountsGridKD
2034 __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
2035 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, double side, VectorKD origin) -> _HistogramCountsGridKD
2036 __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
2037 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self, VectorKD sides, VectorKD origin) -> _HistogramCountsGridKD
2038 __init__(IMP::algebra::GridD<(-1,IMP::algebra::DenseGridStorageD<(-1,double)>,double,IMP::algebra::DefaultEmbeddingD<(-1)>)> self) -> _HistogramCountsGridKD
2040 this = _IMP_statistics.new__HistogramCountsGridKD(*args)
2042 self.this.append(this)
2046 def show(self, *args):
2048 show(_HistogramCountsGridKD self, _ostream out)
2049 show(_HistogramCountsGridKD self)
2051 return _IMP_statistics._HistogramCountsGridKD_show(self, *args)
2054 def __getitem__(self, *args):
2056 __getitem__(_HistogramCountsGridKD self, VectorKD i) -> double const
2057 __getitem__(_HistogramCountsGridKD self, GridIndexKD i) -> double const &
2059 return _IMP_statistics._HistogramCountsGridKD___getitem__(self, *args)
2062 def __setitem__(self, *args):
2064 __setitem__(_HistogramCountsGridKD self, VectorKD i, double const & v)
2065 __setitem__(_HistogramCountsGridKD self, GridIndexKD i, double const & vt)
2067 return _IMP_statistics._HistogramCountsGridKD___setitem__(self, *args)
2070 def add_voxel(self, pt, vt):
2071 """add_voxel(_HistogramCountsGridKD self, VectorKD pt, double const & vt) -> GridIndexKD"""
2072 return _IMP_statistics._HistogramCountsGridKD_add_voxel(self, pt, vt)
2075 def get_extended_index(self, index):
2076 """get_extended_index(_HistogramCountsGridKD self, GridIndexKD index) -> ExtendedGridIndexKD"""
2077 return _IMP_statistics._HistogramCountsGridKD_get_extended_index(self, index)
2080 def get_bounding_box(self, *args):
2082 get_bounding_box(_HistogramCountsGridKD self) -> BoundingBoxKD
2083 get_bounding_box(_HistogramCountsGridKD self, ExtendedGridIndexKD i) -> BoundingBoxKD
2084 get_bounding_box(_HistogramCountsGridKD self, GridIndexKD i) -> BoundingBoxKD
2086 return _IMP_statistics._HistogramCountsGridKD_get_bounding_box(self, *args)
2089 def set_bounding_box(self, bb3):
2090 """set_bounding_box(_HistogramCountsGridKD self, BoundingBoxKD bb3)"""
2091 return _IMP_statistics._HistogramCountsGridKD_set_bounding_box(self, bb3)
2094 def get_nearest_index(self, pt):
2095 """get_nearest_index(_HistogramCountsGridKD self, VectorKD pt) -> GridIndexKD"""
2096 return _IMP_statistics._HistogramCountsGridKD_get_nearest_index(self, pt)
2099 def get_nearest_extended_index(self, pt):
2100 """get_nearest_extended_index(_HistogramCountsGridKD self, VectorKD pt) -> ExtendedGridIndexKD"""
2101 return _IMP_statistics._HistogramCountsGridKD_get_nearest_extended_index(self, pt)
2103 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGridKD
2104 __del__ =
lambda self:
None
2105 _HistogramCountsGridKD_swigregister = _IMP_statistics._HistogramCountsGridKD_swigregister
2106 _HistogramCountsGridKD_swigregister(_HistogramCountsGridKD)
2108 class _IntDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2109 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,int)> class"""
2110 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2111 __repr__ = _swig_repr
2113 def __setitem__(self, *args):
2115 __setitem__(_IntDenseGridStorage1D self, GridIndex1D i, int const & v)
2116 __setitem__(_IntDenseGridStorage1D self, unsigned int i, int const & v)
2118 return _IMP_statistics._IntDenseGridStorage1D___setitem__(self, *args)
2121 def __getitem__(self, *args):
2123 __getitem__(_IntDenseGridStorage1D self, GridIndex1D i) -> int const
2124 __getitem__(_IntDenseGridStorage1D self, unsigned int i) -> int const &
2126 return _IMP_statistics._IntDenseGridStorage1D___getitem__(self, *args)
2129 def __init__(self, *args):
2131 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, _IntDenseGridStorage1D o) -> _IntDenseGridStorage1D
2132 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage1D
2133 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage1D
2134 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self, int const & default_value) -> _IntDenseGridStorage1D
2135 __init__(IMP::algebra::DenseGridStorageD<(1,int)> self) -> _IntDenseGridStorage1D
2137 this = _IMP_statistics.new__IntDenseGridStorage1D(*args)
2139 self.this.append(this)
2144 """get_is_dense() -> bool"""
2145 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2147 get_is_dense = staticmethod(get_is_dense)
2149 def show(self, *args):
2151 show(_IntDenseGridStorage1D self, _ostream out)
2152 show(_IntDenseGridStorage1D self)
2154 return _IMP_statistics._IntDenseGridStorage1D_show(self, *args)
2157 def add_voxel(self, arg2, arg3):
2158 """add_voxel(_IntDenseGridStorage1D self, ExtendedGridIndex1D arg2, int const & arg3) -> GridIndex1D"""
2159 return _IMP_statistics._IntDenseGridStorage1D_add_voxel(self, arg2, arg3)
2162 def get_all_voxels(self):
2163 """get_all_voxels(_IntDenseGridStorage1D self) -> IMP::Vector< int >"""
2164 return _IMP_statistics._IntDenseGridStorage1D_get_all_voxels(self)
2166 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage1D
2167 __del__ =
lambda self:
None
2168 _IntDenseGridStorage1D_swigregister = _IMP_statistics._IntDenseGridStorage1D_swigregister
2169 _IntDenseGridStorage1D_swigregister(_IntDenseGridStorage1D)
2171 def _IntDenseGridStorage1D_get_is_dense():
2172 """_IntDenseGridStorage1D_get_is_dense() -> bool"""
2173 return _IMP_statistics._IntDenseGridStorage1D_get_is_dense()
2175 class _FloatDenseGridStorage1D(IMP.algebra.BoundedGridRange1D):
2176 """Proxy of C++ IMP::algebra::DenseGridStorageD<(1,double)> class"""
2177 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2178 __repr__ = _swig_repr
2180 def __setitem__(self, *args):
2182 __setitem__(_FloatDenseGridStorage1D self, GridIndex1D i, double const & v)
2183 __setitem__(_FloatDenseGridStorage1D self, unsigned int i, double const & v)
2185 return _IMP_statistics._FloatDenseGridStorage1D___setitem__(self, *args)
2188 def __getitem__(self, *args):
2190 __getitem__(_FloatDenseGridStorage1D self, GridIndex1D i) -> double const
2191 __getitem__(_FloatDenseGridStorage1D self, unsigned int i) -> double const &
2193 return _IMP_statistics._FloatDenseGridStorage1D___getitem__(self, *args)
2196 def __init__(self, *args):
2198 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, _FloatDenseGridStorage1D o) -> _FloatDenseGridStorage1D
2199 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage1D
2200 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage1D
2201 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self, double const & default_value) -> _FloatDenseGridStorage1D
2202 __init__(IMP::algebra::DenseGridStorageD<(1,double)> self) -> _FloatDenseGridStorage1D
2204 this = _IMP_statistics.new__FloatDenseGridStorage1D(*args)
2206 self.this.append(this)
2211 """get_is_dense() -> bool"""
2212 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2214 get_is_dense = staticmethod(get_is_dense)
2216 def show(self, *args):
2218 show(_FloatDenseGridStorage1D self, _ostream out)
2219 show(_FloatDenseGridStorage1D self)
2221 return _IMP_statistics._FloatDenseGridStorage1D_show(self, *args)
2224 def add_voxel(self, arg2, arg3):
2225 """add_voxel(_FloatDenseGridStorage1D self, ExtendedGridIndex1D arg2, double const & arg3) -> GridIndex1D"""
2226 return _IMP_statistics._FloatDenseGridStorage1D_add_voxel(self, arg2, arg3)
2229 def get_all_voxels(self):
2230 """get_all_voxels(_FloatDenseGridStorage1D self) -> IMP::Vector< double >"""
2231 return _IMP_statistics._FloatDenseGridStorage1D_get_all_voxels(self)
2233 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage1D
2234 __del__ =
lambda self:
None
2235 _FloatDenseGridStorage1D_swigregister = _IMP_statistics._FloatDenseGridStorage1D_swigregister
2236 _FloatDenseGridStorage1D_swigregister(_FloatDenseGridStorage1D)
2238 def _FloatDenseGridStorage1D_get_is_dense():
2239 """_FloatDenseGridStorage1D_get_is_dense() -> bool"""
2240 return _IMP_statistics._FloatDenseGridStorage1D_get_is_dense()
2242 class _HistogramCountsGrid1D(_FloatDenseGridStorage1D, IMP.algebra.DefaultEmbedding1D, IMP.algebra._GeometricPrimitive1D):
2243 """Proxy of C++ IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> class"""
2244 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2245 __repr__ = _swig_repr
2247 def __init__(self, *args):
2249 __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
2250 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, IMP::Ints const counts, BoundingBox1D bb) -> _HistogramCountsGrid1D
2251 __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
2252 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, BoundingBox1D bb) -> _HistogramCountsGrid1D
2253 __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
2254 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, BoundingBox1D bb) -> _HistogramCountsGrid1D
2255 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, _FloatDenseGridStorage1D storage, DefaultEmbedding1D embed) -> _HistogramCountsGrid1D
2256 __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
2257 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, double side, Vector1D origin) -> _HistogramCountsGrid1D
2258 __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
2259 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self, Vector1D sides, Vector1D origin) -> _HistogramCountsGrid1D
2260 __init__(IMP::algebra::GridD<(1,IMP::algebra::DenseGridStorageD<(1,double)>,double,IMP::algebra::DefaultEmbeddingD<(1)>)> self) -> _HistogramCountsGrid1D
2262 this = _IMP_statistics.new__HistogramCountsGrid1D(*args)
2264 self.this.append(this)
2268 def show(self, *args):
2270 show(_HistogramCountsGrid1D self, _ostream out)
2271 show(_HistogramCountsGrid1D self)
2273 return _IMP_statistics._HistogramCountsGrid1D_show(self, *args)
2276 def __getitem__(self, *args):
2278 __getitem__(_HistogramCountsGrid1D self, Vector1D i) -> double const
2279 __getitem__(_HistogramCountsGrid1D self, GridIndex1D i) -> double const &
2281 return _IMP_statistics._HistogramCountsGrid1D___getitem__(self, *args)
2284 def __setitem__(self, *args):
2286 __setitem__(_HistogramCountsGrid1D self, Vector1D i, double const & v)
2287 __setitem__(_HistogramCountsGrid1D self, GridIndex1D i, double const & vt)
2289 return _IMP_statistics._HistogramCountsGrid1D___setitem__(self, *args)
2292 def add_voxel(self, pt, vt):
2293 """add_voxel(_HistogramCountsGrid1D self, Vector1D pt, double const & vt) -> GridIndex1D"""
2294 return _IMP_statistics._HistogramCountsGrid1D_add_voxel(self, pt, vt)
2297 def get_extended_index(self, index):
2298 """get_extended_index(_HistogramCountsGrid1D self, GridIndex1D index) -> ExtendedGridIndex1D"""
2299 return _IMP_statistics._HistogramCountsGrid1D_get_extended_index(self, index)
2302 def get_bounding_box(self, *args):
2304 get_bounding_box(_HistogramCountsGrid1D self) -> BoundingBox1D
2305 get_bounding_box(_HistogramCountsGrid1D self, ExtendedGridIndex1D i) -> BoundingBox1D
2306 get_bounding_box(_HistogramCountsGrid1D self, GridIndex1D i) -> BoundingBox1D
2308 return _IMP_statistics._HistogramCountsGrid1D_get_bounding_box(self, *args)
2311 def set_bounding_box(self, bb3):
2312 """set_bounding_box(_HistogramCountsGrid1D self, BoundingBox1D bb3)"""
2313 return _IMP_statistics._HistogramCountsGrid1D_set_bounding_box(self, bb3)
2316 def get_nearest_index(self, pt):
2317 """get_nearest_index(_HistogramCountsGrid1D self, Vector1D pt) -> GridIndex1D"""
2318 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_index(self, pt)
2321 def get_nearest_extended_index(self, pt):
2322 """get_nearest_extended_index(_HistogramCountsGrid1D self, Vector1D pt) -> ExtendedGridIndex1D"""
2323 return _IMP_statistics._HistogramCountsGrid1D_get_nearest_extended_index(self, pt)
2325 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid1D
2326 __del__ =
lambda self:
None
2327 _HistogramCountsGrid1D_swigregister = _IMP_statistics._HistogramCountsGrid1D_swigregister
2328 _HistogramCountsGrid1D_swigregister(_HistogramCountsGrid1D)
2330 class _IntDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2331 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,int)> class"""
2332 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2333 __repr__ = _swig_repr
2335 def __setitem__(self, *args):
2337 __setitem__(_IntDenseGridStorage2D self, GridIndex2D i, int const & v)
2338 __setitem__(_IntDenseGridStorage2D self, unsigned int i, int const & v)
2340 return _IMP_statistics._IntDenseGridStorage2D___setitem__(self, *args)
2343 def __getitem__(self, *args):
2345 __getitem__(_IntDenseGridStorage2D self, GridIndex2D i) -> int const
2346 __getitem__(_IntDenseGridStorage2D self, unsigned int i) -> int const &
2348 return _IMP_statistics._IntDenseGridStorage2D___getitem__(self, *args)
2351 def __init__(self, *args):
2353 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, _IntDenseGridStorage2D o) -> _IntDenseGridStorage2D
2354 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage2D
2355 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage2D
2356 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self, int const & default_value) -> _IntDenseGridStorage2D
2357 __init__(IMP::algebra::DenseGridStorageD<(2,int)> self) -> _IntDenseGridStorage2D
2359 this = _IMP_statistics.new__IntDenseGridStorage2D(*args)
2361 self.this.append(this)
2366 """get_is_dense() -> bool"""
2367 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2369 get_is_dense = staticmethod(get_is_dense)
2371 def show(self, *args):
2373 show(_IntDenseGridStorage2D self, _ostream out)
2374 show(_IntDenseGridStorage2D self)
2376 return _IMP_statistics._IntDenseGridStorage2D_show(self, *args)
2379 def add_voxel(self, arg2, arg3):
2380 """add_voxel(_IntDenseGridStorage2D self, ExtendedGridIndex2D arg2, int const & arg3) -> GridIndex2D"""
2381 return _IMP_statistics._IntDenseGridStorage2D_add_voxel(self, arg2, arg3)
2384 def get_all_voxels(self):
2385 """get_all_voxels(_IntDenseGridStorage2D self) -> IMP::Vector< int >"""
2386 return _IMP_statistics._IntDenseGridStorage2D_get_all_voxels(self)
2388 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage2D
2389 __del__ =
lambda self:
None
2390 _IntDenseGridStorage2D_swigregister = _IMP_statistics._IntDenseGridStorage2D_swigregister
2391 _IntDenseGridStorage2D_swigregister(_IntDenseGridStorage2D)
2393 def _IntDenseGridStorage2D_get_is_dense():
2394 """_IntDenseGridStorage2D_get_is_dense() -> bool"""
2395 return _IMP_statistics._IntDenseGridStorage2D_get_is_dense()
2397 class _FloatDenseGridStorage2D(IMP.algebra.BoundedGridRange2D):
2398 """Proxy of C++ IMP::algebra::DenseGridStorageD<(2,double)> class"""
2399 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2400 __repr__ = _swig_repr
2402 def __setitem__(self, *args):
2404 __setitem__(_FloatDenseGridStorage2D self, GridIndex2D i, double const & v)
2405 __setitem__(_FloatDenseGridStorage2D self, unsigned int i, double const & v)
2407 return _IMP_statistics._FloatDenseGridStorage2D___setitem__(self, *args)
2410 def __getitem__(self, *args):
2412 __getitem__(_FloatDenseGridStorage2D self, GridIndex2D i) -> double const
2413 __getitem__(_FloatDenseGridStorage2D self, unsigned int i) -> double const &
2415 return _IMP_statistics._FloatDenseGridStorage2D___getitem__(self, *args)
2418 def __init__(self, *args):
2420 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, _FloatDenseGridStorage2D o) -> _FloatDenseGridStorage2D
2421 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage2D
2422 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage2D
2423 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self, double const & default_value) -> _FloatDenseGridStorage2D
2424 __init__(IMP::algebra::DenseGridStorageD<(2,double)> self) -> _FloatDenseGridStorage2D
2426 this = _IMP_statistics.new__FloatDenseGridStorage2D(*args)
2428 self.this.append(this)
2433 """get_is_dense() -> bool"""
2434 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2436 get_is_dense = staticmethod(get_is_dense)
2438 def show(self, *args):
2440 show(_FloatDenseGridStorage2D self, _ostream out)
2441 show(_FloatDenseGridStorage2D self)
2443 return _IMP_statistics._FloatDenseGridStorage2D_show(self, *args)
2446 def add_voxel(self, arg2, arg3):
2447 """add_voxel(_FloatDenseGridStorage2D self, ExtendedGridIndex2D arg2, double const & arg3) -> GridIndex2D"""
2448 return _IMP_statistics._FloatDenseGridStorage2D_add_voxel(self, arg2, arg3)
2451 def get_all_voxels(self):
2452 """get_all_voxels(_FloatDenseGridStorage2D self) -> IMP::Vector< double >"""
2453 return _IMP_statistics._FloatDenseGridStorage2D_get_all_voxels(self)
2455 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage2D
2456 __del__ =
lambda self:
None
2457 _FloatDenseGridStorage2D_swigregister = _IMP_statistics._FloatDenseGridStorage2D_swigregister
2458 _FloatDenseGridStorage2D_swigregister(_FloatDenseGridStorage2D)
2460 def _FloatDenseGridStorage2D_get_is_dense():
2461 """_FloatDenseGridStorage2D_get_is_dense() -> bool"""
2462 return _IMP_statistics._FloatDenseGridStorage2D_get_is_dense()
2464 class _HistogramCountsGrid2D(_FloatDenseGridStorage2D, IMP.algebra.DefaultEmbedding2D, IMP.algebra._GeometricPrimitive2D):
2465 """Proxy of C++ IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> class"""
2466 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2467 __repr__ = _swig_repr
2469 def __init__(self, *args):
2471 __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
2472 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, IMP::Ints const counts, BoundingBox2D bb) -> _HistogramCountsGrid2D
2473 __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
2474 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, BoundingBox2D bb) -> _HistogramCountsGrid2D
2475 __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
2476 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, BoundingBox2D bb) -> _HistogramCountsGrid2D
2477 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, _FloatDenseGridStorage2D storage, DefaultEmbedding2D embed) -> _HistogramCountsGrid2D
2478 __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
2479 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, double side, Vector2D origin) -> _HistogramCountsGrid2D
2480 __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
2481 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self, Vector2D sides, Vector2D origin) -> _HistogramCountsGrid2D
2482 __init__(IMP::algebra::GridD<(2,IMP::algebra::DenseGridStorageD<(2,double)>,double,IMP::algebra::DefaultEmbeddingD<(2)>)> self) -> _HistogramCountsGrid2D
2484 this = _IMP_statistics.new__HistogramCountsGrid2D(*args)
2486 self.this.append(this)
2490 def show(self, *args):
2492 show(_HistogramCountsGrid2D self, _ostream out)
2493 show(_HistogramCountsGrid2D self)
2495 return _IMP_statistics._HistogramCountsGrid2D_show(self, *args)
2498 def __getitem__(self, *args):
2500 __getitem__(_HistogramCountsGrid2D self, Vector2D i) -> double const
2501 __getitem__(_HistogramCountsGrid2D self, GridIndex2D i) -> double const &
2503 return _IMP_statistics._HistogramCountsGrid2D___getitem__(self, *args)
2506 def __setitem__(self, *args):
2508 __setitem__(_HistogramCountsGrid2D self, Vector2D i, double const & v)
2509 __setitem__(_HistogramCountsGrid2D self, GridIndex2D i, double const & vt)
2511 return _IMP_statistics._HistogramCountsGrid2D___setitem__(self, *args)
2514 def add_voxel(self, pt, vt):
2515 """add_voxel(_HistogramCountsGrid2D self, Vector2D pt, double const & vt) -> GridIndex2D"""
2516 return _IMP_statistics._HistogramCountsGrid2D_add_voxel(self, pt, vt)
2519 def get_extended_index(self, index):
2520 """get_extended_index(_HistogramCountsGrid2D self, GridIndex2D index) -> ExtendedGridIndex2D"""
2521 return _IMP_statistics._HistogramCountsGrid2D_get_extended_index(self, index)
2524 def get_bounding_box(self, *args):
2526 get_bounding_box(_HistogramCountsGrid2D self) -> BoundingBox2D
2527 get_bounding_box(_HistogramCountsGrid2D self, ExtendedGridIndex2D i) -> BoundingBox2D
2528 get_bounding_box(_HistogramCountsGrid2D self, GridIndex2D i) -> BoundingBox2D
2530 return _IMP_statistics._HistogramCountsGrid2D_get_bounding_box(self, *args)
2533 def set_bounding_box(self, bb3):
2534 """set_bounding_box(_HistogramCountsGrid2D self, BoundingBox2D bb3)"""
2535 return _IMP_statistics._HistogramCountsGrid2D_set_bounding_box(self, bb3)
2538 def get_nearest_index(self, pt):
2539 """get_nearest_index(_HistogramCountsGrid2D self, Vector2D pt) -> GridIndex2D"""
2540 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_index(self, pt)
2543 def get_nearest_extended_index(self, pt):
2544 """get_nearest_extended_index(_HistogramCountsGrid2D self, Vector2D pt) -> ExtendedGridIndex2D"""
2545 return _IMP_statistics._HistogramCountsGrid2D_get_nearest_extended_index(self, pt)
2547 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid2D
2548 __del__ =
lambda self:
None
2549 _HistogramCountsGrid2D_swigregister = _IMP_statistics._HistogramCountsGrid2D_swigregister
2550 _HistogramCountsGrid2D_swigregister(_HistogramCountsGrid2D)
2552 class _IntDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2553 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,int)> class"""
2554 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2555 __repr__ = _swig_repr
2557 def __setitem__(self, *args):
2559 __setitem__(_IntDenseGridStorage3D self, GridIndex3D i, int const & v)
2560 __setitem__(_IntDenseGridStorage3D self, unsigned int i, int const & v)
2562 return _IMP_statistics._IntDenseGridStorage3D___setitem__(self, *args)
2565 def __getitem__(self, *args):
2567 __getitem__(_IntDenseGridStorage3D self, GridIndex3D i) -> int const
2568 __getitem__(_IntDenseGridStorage3D self, unsigned int i) -> int const &
2570 return _IMP_statistics._IntDenseGridStorage3D___getitem__(self, *args)
2573 def __init__(self, *args):
2575 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, _IntDenseGridStorage3D o) -> _IntDenseGridStorage3D
2576 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage3D
2577 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage3D
2578 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self, int const & default_value) -> _IntDenseGridStorage3D
2579 __init__(IMP::algebra::DenseGridStorageD<(3,int)> self) -> _IntDenseGridStorage3D
2581 this = _IMP_statistics.new__IntDenseGridStorage3D(*args)
2583 self.this.append(this)
2588 """get_is_dense() -> bool"""
2589 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2591 get_is_dense = staticmethod(get_is_dense)
2593 def show(self, *args):
2595 show(_IntDenseGridStorage3D self, _ostream out)
2596 show(_IntDenseGridStorage3D self)
2598 return _IMP_statistics._IntDenseGridStorage3D_show(self, *args)
2601 def add_voxel(self, arg2, arg3):
2602 """add_voxel(_IntDenseGridStorage3D self, ExtendedGridIndex3D arg2, int const & arg3) -> GridIndex3D"""
2603 return _IMP_statistics._IntDenseGridStorage3D_add_voxel(self, arg2, arg3)
2606 def get_all_voxels(self):
2607 """get_all_voxels(_IntDenseGridStorage3D self) -> IMP::Vector< int >"""
2608 return _IMP_statistics._IntDenseGridStorage3D_get_all_voxels(self)
2610 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage3D
2611 __del__ =
lambda self:
None
2612 _IntDenseGridStorage3D_swigregister = _IMP_statistics._IntDenseGridStorage3D_swigregister
2613 _IntDenseGridStorage3D_swigregister(_IntDenseGridStorage3D)
2615 def _IntDenseGridStorage3D_get_is_dense():
2616 """_IntDenseGridStorage3D_get_is_dense() -> bool"""
2617 return _IMP_statistics._IntDenseGridStorage3D_get_is_dense()
2619 class _FloatDenseGridStorage3D(IMP.algebra.BoundedGridRange3D):
2620 """Proxy of C++ IMP::algebra::DenseGridStorageD<(3,double)> class"""
2621 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2622 __repr__ = _swig_repr
2624 def __setitem__(self, *args):
2626 __setitem__(_FloatDenseGridStorage3D self, GridIndex3D i, double const & v)
2627 __setitem__(_FloatDenseGridStorage3D self, unsigned int i, double const & v)
2629 return _IMP_statistics._FloatDenseGridStorage3D___setitem__(self, *args)
2632 def __getitem__(self, *args):
2634 __getitem__(_FloatDenseGridStorage3D self, GridIndex3D i) -> double const
2635 __getitem__(_FloatDenseGridStorage3D self, unsigned int i) -> double const &
2637 return _IMP_statistics._FloatDenseGridStorage3D___getitem__(self, *args)
2640 def __init__(self, *args):
2642 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, _FloatDenseGridStorage3D o) -> _FloatDenseGridStorage3D
2643 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage3D
2644 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage3D
2645 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self, double const & default_value) -> _FloatDenseGridStorage3D
2646 __init__(IMP::algebra::DenseGridStorageD<(3,double)> self) -> _FloatDenseGridStorage3D
2648 this = _IMP_statistics.new__FloatDenseGridStorage3D(*args)
2650 self.this.append(this)
2655 """get_is_dense() -> bool"""
2656 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2658 get_is_dense = staticmethod(get_is_dense)
2660 def show(self, *args):
2662 show(_FloatDenseGridStorage3D self, _ostream out)
2663 show(_FloatDenseGridStorage3D self)
2665 return _IMP_statistics._FloatDenseGridStorage3D_show(self, *args)
2668 def add_voxel(self, arg2, arg3):
2669 """add_voxel(_FloatDenseGridStorage3D self, ExtendedGridIndex3D arg2, double const & arg3) -> GridIndex3D"""
2670 return _IMP_statistics._FloatDenseGridStorage3D_add_voxel(self, arg2, arg3)
2673 def get_all_voxels(self):
2674 """get_all_voxels(_FloatDenseGridStorage3D self) -> IMP::Vector< double >"""
2675 return _IMP_statistics._FloatDenseGridStorage3D_get_all_voxels(self)
2677 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage3D
2678 __del__ =
lambda self:
None
2679 _FloatDenseGridStorage3D_swigregister = _IMP_statistics._FloatDenseGridStorage3D_swigregister
2680 _FloatDenseGridStorage3D_swigregister(_FloatDenseGridStorage3D)
2682 def _FloatDenseGridStorage3D_get_is_dense():
2683 """_FloatDenseGridStorage3D_get_is_dense() -> bool"""
2684 return _IMP_statistics._FloatDenseGridStorage3D_get_is_dense()
2686 class _HistogramCountsGrid3D(_FloatDenseGridStorage3D, IMP.algebra.DefaultEmbedding3D, IMP.algebra._GeometricPrimitive3D):
2687 """Proxy of C++ IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> class"""
2688 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2689 __repr__ = _swig_repr
2691 def __init__(self, *args):
2693 __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
2694 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, IMP::Ints const counts, BoundingBox3D bb) -> _HistogramCountsGrid3D
2695 __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
2696 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, BoundingBox3D bb) -> _HistogramCountsGrid3D
2697 __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
2698 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, BoundingBox3D bb) -> _HistogramCountsGrid3D
2699 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, _FloatDenseGridStorage3D storage, DefaultEmbedding3D embed) -> _HistogramCountsGrid3D
2700 __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
2701 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, double side, Vector3D origin) -> _HistogramCountsGrid3D
2702 __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
2703 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self, Vector3D sides, Vector3D origin) -> _HistogramCountsGrid3D
2704 __init__(IMP::algebra::GridD<(3,IMP::algebra::DenseGridStorageD<(3,double)>,double,IMP::algebra::DefaultEmbeddingD<(3)>)> self) -> _HistogramCountsGrid3D
2706 this = _IMP_statistics.new__HistogramCountsGrid3D(*args)
2708 self.this.append(this)
2712 def show(self, *args):
2714 show(_HistogramCountsGrid3D self, _ostream out)
2715 show(_HistogramCountsGrid3D self)
2717 return _IMP_statistics._HistogramCountsGrid3D_show(self, *args)
2720 def __getitem__(self, *args):
2722 __getitem__(_HistogramCountsGrid3D self, Vector3D i) -> double const
2723 __getitem__(_HistogramCountsGrid3D self, GridIndex3D i) -> double const &
2725 return _IMP_statistics._HistogramCountsGrid3D___getitem__(self, *args)
2728 def __setitem__(self, *args):
2730 __setitem__(_HistogramCountsGrid3D self, Vector3D i, double const & v)
2731 __setitem__(_HistogramCountsGrid3D self, GridIndex3D i, double const & vt)
2733 return _IMP_statistics._HistogramCountsGrid3D___setitem__(self, *args)
2736 def add_voxel(self, pt, vt):
2737 """add_voxel(_HistogramCountsGrid3D self, Vector3D pt, double const & vt) -> GridIndex3D"""
2738 return _IMP_statistics._HistogramCountsGrid3D_add_voxel(self, pt, vt)
2741 def get_extended_index(self, index):
2742 """get_extended_index(_HistogramCountsGrid3D self, GridIndex3D index) -> ExtendedGridIndex3D"""
2743 return _IMP_statistics._HistogramCountsGrid3D_get_extended_index(self, index)
2746 def get_bounding_box(self, *args):
2748 get_bounding_box(_HistogramCountsGrid3D self) -> BoundingBox3D
2749 get_bounding_box(_HistogramCountsGrid3D self, ExtendedGridIndex3D i) -> BoundingBox3D
2750 get_bounding_box(_HistogramCountsGrid3D self, GridIndex3D i) -> BoundingBox3D
2752 return _IMP_statistics._HistogramCountsGrid3D_get_bounding_box(self, *args)
2755 def set_bounding_box(self, bb3):
2756 """set_bounding_box(_HistogramCountsGrid3D self, BoundingBox3D bb3)"""
2757 return _IMP_statistics._HistogramCountsGrid3D_set_bounding_box(self, bb3)
2760 def get_nearest_index(self, pt):
2761 """get_nearest_index(_HistogramCountsGrid3D self, Vector3D pt) -> GridIndex3D"""
2762 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_index(self, pt)
2765 def get_nearest_extended_index(self, pt):
2766 """get_nearest_extended_index(_HistogramCountsGrid3D self, Vector3D pt) -> ExtendedGridIndex3D"""
2767 return _IMP_statistics._HistogramCountsGrid3D_get_nearest_extended_index(self, pt)
2769 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid3D
2770 __del__ =
lambda self:
None
2771 _HistogramCountsGrid3D_swigregister = _IMP_statistics._HistogramCountsGrid3D_swigregister
2772 _HistogramCountsGrid3D_swigregister(_HistogramCountsGrid3D)
2774 class _IntDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2775 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,int)> class"""
2776 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2777 __repr__ = _swig_repr
2779 def __setitem__(self, *args):
2781 __setitem__(_IntDenseGridStorage4D self, GridIndex4D i, int const & v)
2782 __setitem__(_IntDenseGridStorage4D self, unsigned int i, int const & v)
2784 return _IMP_statistics._IntDenseGridStorage4D___setitem__(self, *args)
2787 def __getitem__(self, *args):
2789 __getitem__(_IntDenseGridStorage4D self, GridIndex4D i) -> int const
2790 __getitem__(_IntDenseGridStorage4D self, unsigned int i) -> int const &
2792 return _IMP_statistics._IntDenseGridStorage4D___getitem__(self, *args)
2795 def __init__(self, *args):
2797 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, _IntDenseGridStorage4D o) -> _IntDenseGridStorage4D
2798 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage4D
2799 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage4D
2800 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self, int const & default_value) -> _IntDenseGridStorage4D
2801 __init__(IMP::algebra::DenseGridStorageD<(4,int)> self) -> _IntDenseGridStorage4D
2803 this = _IMP_statistics.new__IntDenseGridStorage4D(*args)
2805 self.this.append(this)
2810 """get_is_dense() -> bool"""
2811 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2813 get_is_dense = staticmethod(get_is_dense)
2815 def show(self, *args):
2817 show(_IntDenseGridStorage4D self, _ostream out)
2818 show(_IntDenseGridStorage4D self)
2820 return _IMP_statistics._IntDenseGridStorage4D_show(self, *args)
2823 def add_voxel(self, arg2, arg3):
2824 """add_voxel(_IntDenseGridStorage4D self, ExtendedGridIndex4D arg2, int const & arg3) -> GridIndex4D"""
2825 return _IMP_statistics._IntDenseGridStorage4D_add_voxel(self, arg2, arg3)
2828 def get_all_voxels(self):
2829 """get_all_voxels(_IntDenseGridStorage4D self) -> IMP::Vector< int >"""
2830 return _IMP_statistics._IntDenseGridStorage4D_get_all_voxels(self)
2832 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage4D
2833 __del__ =
lambda self:
None
2834 _IntDenseGridStorage4D_swigregister = _IMP_statistics._IntDenseGridStorage4D_swigregister
2835 _IntDenseGridStorage4D_swigregister(_IntDenseGridStorage4D)
2837 def _IntDenseGridStorage4D_get_is_dense():
2838 """_IntDenseGridStorage4D_get_is_dense() -> bool"""
2839 return _IMP_statistics._IntDenseGridStorage4D_get_is_dense()
2841 class _FloatDenseGridStorage4D(IMP.algebra.BoundedGridRange4D):
2842 """Proxy of C++ IMP::algebra::DenseGridStorageD<(4,double)> class"""
2843 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2844 __repr__ = _swig_repr
2846 def __setitem__(self, *args):
2848 __setitem__(_FloatDenseGridStorage4D self, GridIndex4D i, double const & v)
2849 __setitem__(_FloatDenseGridStorage4D self, unsigned int i, double const & v)
2851 return _IMP_statistics._FloatDenseGridStorage4D___setitem__(self, *args)
2854 def __getitem__(self, *args):
2856 __getitem__(_FloatDenseGridStorage4D self, GridIndex4D i) -> double const
2857 __getitem__(_FloatDenseGridStorage4D self, unsigned int i) -> double const &
2859 return _IMP_statistics._FloatDenseGridStorage4D___getitem__(self, *args)
2862 def __init__(self, *args):
2864 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, _FloatDenseGridStorage4D o) -> _FloatDenseGridStorage4D
2865 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage4D
2866 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage4D
2867 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self, double const & default_value) -> _FloatDenseGridStorage4D
2868 __init__(IMP::algebra::DenseGridStorageD<(4,double)> self) -> _FloatDenseGridStorage4D
2870 this = _IMP_statistics.new__FloatDenseGridStorage4D(*args)
2872 self.this.append(this)
2877 """get_is_dense() -> bool"""
2878 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2880 get_is_dense = staticmethod(get_is_dense)
2882 def show(self, *args):
2884 show(_FloatDenseGridStorage4D self, _ostream out)
2885 show(_FloatDenseGridStorage4D self)
2887 return _IMP_statistics._FloatDenseGridStorage4D_show(self, *args)
2890 def add_voxel(self, arg2, arg3):
2891 """add_voxel(_FloatDenseGridStorage4D self, ExtendedGridIndex4D arg2, double const & arg3) -> GridIndex4D"""
2892 return _IMP_statistics._FloatDenseGridStorage4D_add_voxel(self, arg2, arg3)
2895 def get_all_voxels(self):
2896 """get_all_voxels(_FloatDenseGridStorage4D self) -> IMP::Vector< double >"""
2897 return _IMP_statistics._FloatDenseGridStorage4D_get_all_voxels(self)
2899 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage4D
2900 __del__ =
lambda self:
None
2901 _FloatDenseGridStorage4D_swigregister = _IMP_statistics._FloatDenseGridStorage4D_swigregister
2902 _FloatDenseGridStorage4D_swigregister(_FloatDenseGridStorage4D)
2904 def _FloatDenseGridStorage4D_get_is_dense():
2905 """_FloatDenseGridStorage4D_get_is_dense() -> bool"""
2906 return _IMP_statistics._FloatDenseGridStorage4D_get_is_dense()
2908 class _HistogramCountsGrid4D(_FloatDenseGridStorage4D, IMP.algebra.DefaultEmbedding4D, IMP.algebra._GeometricPrimitive4D):
2909 """Proxy of C++ IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> class"""
2910 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2911 __repr__ = _swig_repr
2913 def __init__(self, *args):
2915 __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
2916 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, IMP::Ints const counts, BoundingBox4D bb) -> _HistogramCountsGrid4D
2917 __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
2918 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, BoundingBox4D bb) -> _HistogramCountsGrid4D
2919 __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
2920 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, BoundingBox4D bb) -> _HistogramCountsGrid4D
2921 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, _FloatDenseGridStorage4D storage, DefaultEmbedding4D embed) -> _HistogramCountsGrid4D
2922 __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
2923 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, double side, Vector4D origin) -> _HistogramCountsGrid4D
2924 __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
2925 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self, Vector4D sides, Vector4D origin) -> _HistogramCountsGrid4D
2926 __init__(IMP::algebra::GridD<(4,IMP::algebra::DenseGridStorageD<(4,double)>,double,IMP::algebra::DefaultEmbeddingD<(4)>)> self) -> _HistogramCountsGrid4D
2928 this = _IMP_statistics.new__HistogramCountsGrid4D(*args)
2930 self.this.append(this)
2934 def show(self, *args):
2936 show(_HistogramCountsGrid4D self, _ostream out)
2937 show(_HistogramCountsGrid4D self)
2939 return _IMP_statistics._HistogramCountsGrid4D_show(self, *args)
2942 def __getitem__(self, *args):
2944 __getitem__(_HistogramCountsGrid4D self, Vector4D i) -> double const
2945 __getitem__(_HistogramCountsGrid4D self, GridIndex4D i) -> double const &
2947 return _IMP_statistics._HistogramCountsGrid4D___getitem__(self, *args)
2950 def __setitem__(self, *args):
2952 __setitem__(_HistogramCountsGrid4D self, Vector4D i, double const & v)
2953 __setitem__(_HistogramCountsGrid4D self, GridIndex4D i, double const & vt)
2955 return _IMP_statistics._HistogramCountsGrid4D___setitem__(self, *args)
2958 def add_voxel(self, pt, vt):
2959 """add_voxel(_HistogramCountsGrid4D self, Vector4D pt, double const & vt) -> GridIndex4D"""
2960 return _IMP_statistics._HistogramCountsGrid4D_add_voxel(self, pt, vt)
2963 def get_extended_index(self, index):
2964 """get_extended_index(_HistogramCountsGrid4D self, GridIndex4D index) -> ExtendedGridIndex4D"""
2965 return _IMP_statistics._HistogramCountsGrid4D_get_extended_index(self, index)
2968 def get_bounding_box(self, *args):
2970 get_bounding_box(_HistogramCountsGrid4D self) -> BoundingBox4D
2971 get_bounding_box(_HistogramCountsGrid4D self, ExtendedGridIndex4D i) -> BoundingBox4D
2972 get_bounding_box(_HistogramCountsGrid4D self, GridIndex4D i) -> BoundingBox4D
2974 return _IMP_statistics._HistogramCountsGrid4D_get_bounding_box(self, *args)
2977 def set_bounding_box(self, bb3):
2978 """set_bounding_box(_HistogramCountsGrid4D self, BoundingBox4D bb3)"""
2979 return _IMP_statistics._HistogramCountsGrid4D_set_bounding_box(self, bb3)
2982 def get_nearest_index(self, pt):
2983 """get_nearest_index(_HistogramCountsGrid4D self, Vector4D pt) -> GridIndex4D"""
2984 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_index(self, pt)
2987 def get_nearest_extended_index(self, pt):
2988 """get_nearest_extended_index(_HistogramCountsGrid4D self, Vector4D pt) -> ExtendedGridIndex4D"""
2989 return _IMP_statistics._HistogramCountsGrid4D_get_nearest_extended_index(self, pt)
2991 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid4D
2992 __del__ =
lambda self:
None
2993 _HistogramCountsGrid4D_swigregister = _IMP_statistics._HistogramCountsGrid4D_swigregister
2994 _HistogramCountsGrid4D_swigregister(_HistogramCountsGrid4D)
2996 class _IntDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
2997 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,int)> class"""
2998 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2999 __repr__ = _swig_repr
3001 def __setitem__(self, *args):
3003 __setitem__(_IntDenseGridStorage5D self, GridIndex5D i, int const & v)
3004 __setitem__(_IntDenseGridStorage5D self, unsigned int i, int const & v)
3006 return _IMP_statistics._IntDenseGridStorage5D___setitem__(self, *args)
3009 def __getitem__(self, *args):
3011 __getitem__(_IntDenseGridStorage5D self, GridIndex5D i) -> int const
3012 __getitem__(_IntDenseGridStorage5D self, unsigned int i) -> int const &
3014 return _IMP_statistics._IntDenseGridStorage5D___getitem__(self, *args)
3017 def __init__(self, *args):
3019 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, _IntDenseGridStorage5D o) -> _IntDenseGridStorage5D
3020 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage5D
3021 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage5D
3022 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self, int const & default_value) -> _IntDenseGridStorage5D
3023 __init__(IMP::algebra::DenseGridStorageD<(5,int)> self) -> _IntDenseGridStorage5D
3025 this = _IMP_statistics.new__IntDenseGridStorage5D(*args)
3027 self.this.append(this)
3032 """get_is_dense() -> bool"""
3033 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3035 get_is_dense = staticmethod(get_is_dense)
3037 def show(self, *args):
3039 show(_IntDenseGridStorage5D self, _ostream out)
3040 show(_IntDenseGridStorage5D self)
3042 return _IMP_statistics._IntDenseGridStorage5D_show(self, *args)
3045 def add_voxel(self, arg2, arg3):
3046 """add_voxel(_IntDenseGridStorage5D self, ExtendedGridIndex5D arg2, int const & arg3) -> GridIndex5D"""
3047 return _IMP_statistics._IntDenseGridStorage5D_add_voxel(self, arg2, arg3)
3050 def get_all_voxels(self):
3051 """get_all_voxels(_IntDenseGridStorage5D self) -> IMP::Vector< int >"""
3052 return _IMP_statistics._IntDenseGridStorage5D_get_all_voxels(self)
3054 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage5D
3055 __del__ =
lambda self:
None
3056 _IntDenseGridStorage5D_swigregister = _IMP_statistics._IntDenseGridStorage5D_swigregister
3057 _IntDenseGridStorage5D_swigregister(_IntDenseGridStorage5D)
3059 def _IntDenseGridStorage5D_get_is_dense():
3060 """_IntDenseGridStorage5D_get_is_dense() -> bool"""
3061 return _IMP_statistics._IntDenseGridStorage5D_get_is_dense()
3063 class _FloatDenseGridStorage5D(IMP.algebra.BoundedGridRange5D):
3064 """Proxy of C++ IMP::algebra::DenseGridStorageD<(5,double)> class"""
3065 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3066 __repr__ = _swig_repr
3068 def __setitem__(self, *args):
3070 __setitem__(_FloatDenseGridStorage5D self, GridIndex5D i, double const & v)
3071 __setitem__(_FloatDenseGridStorage5D self, unsigned int i, double const & v)
3073 return _IMP_statistics._FloatDenseGridStorage5D___setitem__(self, *args)
3076 def __getitem__(self, *args):
3078 __getitem__(_FloatDenseGridStorage5D self, GridIndex5D i) -> double const
3079 __getitem__(_FloatDenseGridStorage5D self, unsigned int i) -> double const &
3081 return _IMP_statistics._FloatDenseGridStorage5D___getitem__(self, *args)
3084 def __init__(self, *args):
3086 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, _FloatDenseGridStorage5D o) -> _FloatDenseGridStorage5D
3087 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage5D
3088 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage5D
3089 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self, double const & default_value) -> _FloatDenseGridStorage5D
3090 __init__(IMP::algebra::DenseGridStorageD<(5,double)> self) -> _FloatDenseGridStorage5D
3092 this = _IMP_statistics.new__FloatDenseGridStorage5D(*args)
3094 self.this.append(this)
3099 """get_is_dense() -> bool"""
3100 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3102 get_is_dense = staticmethod(get_is_dense)
3104 def show(self, *args):
3106 show(_FloatDenseGridStorage5D self, _ostream out)
3107 show(_FloatDenseGridStorage5D self)
3109 return _IMP_statistics._FloatDenseGridStorage5D_show(self, *args)
3112 def add_voxel(self, arg2, arg3):
3113 """add_voxel(_FloatDenseGridStorage5D self, ExtendedGridIndex5D arg2, double const & arg3) -> GridIndex5D"""
3114 return _IMP_statistics._FloatDenseGridStorage5D_add_voxel(self, arg2, arg3)
3117 def get_all_voxels(self):
3118 """get_all_voxels(_FloatDenseGridStorage5D self) -> IMP::Vector< double >"""
3119 return _IMP_statistics._FloatDenseGridStorage5D_get_all_voxels(self)
3121 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage5D
3122 __del__ =
lambda self:
None
3123 _FloatDenseGridStorage5D_swigregister = _IMP_statistics._FloatDenseGridStorage5D_swigregister
3124 _FloatDenseGridStorage5D_swigregister(_FloatDenseGridStorage5D)
3126 def _FloatDenseGridStorage5D_get_is_dense():
3127 """_FloatDenseGridStorage5D_get_is_dense() -> bool"""
3128 return _IMP_statistics._FloatDenseGridStorage5D_get_is_dense()
3130 class _HistogramCountsGrid5D(_FloatDenseGridStorage5D, IMP.algebra.DefaultEmbedding5D, IMP.algebra._GeometricPrimitive5D):
3131 """Proxy of C++ IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> class"""
3132 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3133 __repr__ = _swig_repr
3135 def __init__(self, *args):
3137 __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
3138 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, IMP::Ints const counts, BoundingBox5D bb) -> _HistogramCountsGrid5D
3139 __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
3140 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, BoundingBox5D bb) -> _HistogramCountsGrid5D
3141 __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
3142 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, BoundingBox5D bb) -> _HistogramCountsGrid5D
3143 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, _FloatDenseGridStorage5D storage, DefaultEmbedding5D embed) -> _HistogramCountsGrid5D
3144 __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
3145 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, double side, Vector5D origin) -> _HistogramCountsGrid5D
3146 __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
3147 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self, Vector5D sides, Vector5D origin) -> _HistogramCountsGrid5D
3148 __init__(IMP::algebra::GridD<(5,IMP::algebra::DenseGridStorageD<(5,double)>,double,IMP::algebra::DefaultEmbeddingD<(5)>)> self) -> _HistogramCountsGrid5D
3150 this = _IMP_statistics.new__HistogramCountsGrid5D(*args)
3152 self.this.append(this)
3156 def show(self, *args):
3158 show(_HistogramCountsGrid5D self, _ostream out)
3159 show(_HistogramCountsGrid5D self)
3161 return _IMP_statistics._HistogramCountsGrid5D_show(self, *args)
3164 def __getitem__(self, *args):
3166 __getitem__(_HistogramCountsGrid5D self, Vector5D i) -> double const
3167 __getitem__(_HistogramCountsGrid5D self, GridIndex5D i) -> double const &
3169 return _IMP_statistics._HistogramCountsGrid5D___getitem__(self, *args)
3172 def __setitem__(self, *args):
3174 __setitem__(_HistogramCountsGrid5D self, Vector5D i, double const & v)
3175 __setitem__(_HistogramCountsGrid5D self, GridIndex5D i, double const & vt)
3177 return _IMP_statistics._HistogramCountsGrid5D___setitem__(self, *args)
3180 def add_voxel(self, pt, vt):
3181 """add_voxel(_HistogramCountsGrid5D self, Vector5D pt, double const & vt) -> GridIndex5D"""
3182 return _IMP_statistics._HistogramCountsGrid5D_add_voxel(self, pt, vt)
3185 def get_extended_index(self, index):
3186 """get_extended_index(_HistogramCountsGrid5D self, GridIndex5D index) -> ExtendedGridIndex5D"""
3187 return _IMP_statistics._HistogramCountsGrid5D_get_extended_index(self, index)
3190 def get_bounding_box(self, *args):
3192 get_bounding_box(_HistogramCountsGrid5D self) -> BoundingBox5D
3193 get_bounding_box(_HistogramCountsGrid5D self, ExtendedGridIndex5D i) -> BoundingBox5D
3194 get_bounding_box(_HistogramCountsGrid5D self, GridIndex5D i) -> BoundingBox5D
3196 return _IMP_statistics._HistogramCountsGrid5D_get_bounding_box(self, *args)
3199 def set_bounding_box(self, bb3):
3200 """set_bounding_box(_HistogramCountsGrid5D self, BoundingBox5D bb3)"""
3201 return _IMP_statistics._HistogramCountsGrid5D_set_bounding_box(self, bb3)
3204 def get_nearest_index(self, pt):
3205 """get_nearest_index(_HistogramCountsGrid5D self, Vector5D pt) -> GridIndex5D"""
3206 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_index(self, pt)
3209 def get_nearest_extended_index(self, pt):
3210 """get_nearest_extended_index(_HistogramCountsGrid5D self, Vector5D pt) -> ExtendedGridIndex5D"""
3211 return _IMP_statistics._HistogramCountsGrid5D_get_nearest_extended_index(self, pt)
3213 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid5D
3214 __del__ =
lambda self:
None
3215 _HistogramCountsGrid5D_swigregister = _IMP_statistics._HistogramCountsGrid5D_swigregister
3216 _HistogramCountsGrid5D_swigregister(_HistogramCountsGrid5D)
3218 class _IntDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3219 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,int)> class"""
3220 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3221 __repr__ = _swig_repr
3223 def __setitem__(self, *args):
3225 __setitem__(_IntDenseGridStorage6D self, GridIndex6D i, int const & v)
3226 __setitem__(_IntDenseGridStorage6D self, unsigned int i, int const & v)
3228 return _IMP_statistics._IntDenseGridStorage6D___setitem__(self, *args)
3231 def __getitem__(self, *args):
3233 __getitem__(_IntDenseGridStorage6D self, GridIndex6D i) -> int const
3234 __getitem__(_IntDenseGridStorage6D self, unsigned int i) -> int const &
3236 return _IMP_statistics._IntDenseGridStorage6D___getitem__(self, *args)
3239 def __init__(self, *args):
3241 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, _IntDenseGridStorage6D o) -> _IntDenseGridStorage6D
3242 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts, int const & default_value) -> _IntDenseGridStorage6D
3243 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, IMP::Ints const & counts) -> _IntDenseGridStorage6D
3244 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self, int const & default_value) -> _IntDenseGridStorage6D
3245 __init__(IMP::algebra::DenseGridStorageD<(6,int)> self) -> _IntDenseGridStorage6D
3247 this = _IMP_statistics.new__IntDenseGridStorage6D(*args)
3249 self.this.append(this)
3254 """get_is_dense() -> bool"""
3255 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3257 get_is_dense = staticmethod(get_is_dense)
3259 def show(self, *args):
3261 show(_IntDenseGridStorage6D self, _ostream out)
3262 show(_IntDenseGridStorage6D self)
3264 return _IMP_statistics._IntDenseGridStorage6D_show(self, *args)
3267 def add_voxel(self, arg2, arg3):
3268 """add_voxel(_IntDenseGridStorage6D self, ExtendedGridIndex6D arg2, int const & arg3) -> GridIndex6D"""
3269 return _IMP_statistics._IntDenseGridStorage6D_add_voxel(self, arg2, arg3)
3272 def get_all_voxels(self):
3273 """get_all_voxels(_IntDenseGridStorage6D self) -> IMP::Vector< int >"""
3274 return _IMP_statistics._IntDenseGridStorage6D_get_all_voxels(self)
3276 __swig_destroy__ = _IMP_statistics.delete__IntDenseGridStorage6D
3277 __del__ =
lambda self:
None
3278 _IntDenseGridStorage6D_swigregister = _IMP_statistics._IntDenseGridStorage6D_swigregister
3279 _IntDenseGridStorage6D_swigregister(_IntDenseGridStorage6D)
3281 def _IntDenseGridStorage6D_get_is_dense():
3282 """_IntDenseGridStorage6D_get_is_dense() -> bool"""
3283 return _IMP_statistics._IntDenseGridStorage6D_get_is_dense()
3285 class _FloatDenseGridStorage6D(IMP.algebra.BoundedGridRange6D):
3286 """Proxy of C++ IMP::algebra::DenseGridStorageD<(6,double)> class"""
3287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3288 __repr__ = _swig_repr
3290 def __setitem__(self, *args):
3292 __setitem__(_FloatDenseGridStorage6D self, GridIndex6D i, double const & v)
3293 __setitem__(_FloatDenseGridStorage6D self, unsigned int i, double const & v)
3295 return _IMP_statistics._FloatDenseGridStorage6D___setitem__(self, *args)
3298 def __getitem__(self, *args):
3300 __getitem__(_FloatDenseGridStorage6D self, GridIndex6D i) -> double const
3301 __getitem__(_FloatDenseGridStorage6D self, unsigned int i) -> double const &
3303 return _IMP_statistics._FloatDenseGridStorage6D___getitem__(self, *args)
3306 def __init__(self, *args):
3308 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, _FloatDenseGridStorage6D o) -> _FloatDenseGridStorage6D
3309 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts, double const & default_value) -> _FloatDenseGridStorage6D
3310 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, IMP::Ints const & counts) -> _FloatDenseGridStorage6D
3311 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self, double const & default_value) -> _FloatDenseGridStorage6D
3312 __init__(IMP::algebra::DenseGridStorageD<(6,double)> self) -> _FloatDenseGridStorage6D
3314 this = _IMP_statistics.new__FloatDenseGridStorage6D(*args)
3316 self.this.append(this)
3321 """get_is_dense() -> bool"""
3322 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3324 get_is_dense = staticmethod(get_is_dense)
3326 def show(self, *args):
3328 show(_FloatDenseGridStorage6D self, _ostream out)
3329 show(_FloatDenseGridStorage6D self)
3331 return _IMP_statistics._FloatDenseGridStorage6D_show(self, *args)
3334 def add_voxel(self, arg2, arg3):
3335 """add_voxel(_FloatDenseGridStorage6D self, ExtendedGridIndex6D arg2, double const & arg3) -> GridIndex6D"""
3336 return _IMP_statistics._FloatDenseGridStorage6D_add_voxel(self, arg2, arg3)
3339 def get_all_voxels(self):
3340 """get_all_voxels(_FloatDenseGridStorage6D self) -> IMP::Vector< double >"""
3341 return _IMP_statistics._FloatDenseGridStorage6D_get_all_voxels(self)
3343 __swig_destroy__ = _IMP_statistics.delete__FloatDenseGridStorage6D
3344 __del__ =
lambda self:
None
3345 _FloatDenseGridStorage6D_swigregister = _IMP_statistics._FloatDenseGridStorage6D_swigregister
3346 _FloatDenseGridStorage6D_swigregister(_FloatDenseGridStorage6D)
3348 def _FloatDenseGridStorage6D_get_is_dense():
3349 """_FloatDenseGridStorage6D_get_is_dense() -> bool"""
3350 return _IMP_statistics._FloatDenseGridStorage6D_get_is_dense()
3352 class _HistogramCountsGrid6D(_FloatDenseGridStorage6D, IMP.algebra.DefaultEmbedding6D, IMP.algebra._GeometricPrimitive6D):
3353 """Proxy of C++ IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> class"""
3354 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3355 __repr__ = _swig_repr
3357 def __init__(self, *args):
3359 __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
3360 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, IMP::Ints const counts, BoundingBox6D bb) -> _HistogramCountsGrid6D
3361 __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
3362 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, BoundingBox6D bb) -> _HistogramCountsGrid6D
3363 __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
3364 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, BoundingBox6D bb) -> _HistogramCountsGrid6D
3365 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, _FloatDenseGridStorage6D storage, DefaultEmbedding6D embed) -> _HistogramCountsGrid6D
3366 __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
3367 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, double side, Vector6D origin) -> _HistogramCountsGrid6D
3368 __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
3369 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self, Vector6D sides, Vector6D origin) -> _HistogramCountsGrid6D
3370 __init__(IMP::algebra::GridD<(6,IMP::algebra::DenseGridStorageD<(6,double)>,double,IMP::algebra::DefaultEmbeddingD<(6)>)> self) -> _HistogramCountsGrid6D
3372 this = _IMP_statistics.new__HistogramCountsGrid6D(*args)
3374 self.this.append(this)
3378 def show(self, *args):
3380 show(_HistogramCountsGrid6D self, _ostream out)
3381 show(_HistogramCountsGrid6D self)
3383 return _IMP_statistics._HistogramCountsGrid6D_show(self, *args)
3386 def __getitem__(self, *args):
3388 __getitem__(_HistogramCountsGrid6D self, Vector6D i) -> double const
3389 __getitem__(_HistogramCountsGrid6D self, GridIndex6D i) -> double const &
3391 return _IMP_statistics._HistogramCountsGrid6D___getitem__(self, *args)
3394 def __setitem__(self, *args):
3396 __setitem__(_HistogramCountsGrid6D self, Vector6D i, double const & v)
3397 __setitem__(_HistogramCountsGrid6D self, GridIndex6D i, double const & vt)
3399 return _IMP_statistics._HistogramCountsGrid6D___setitem__(self, *args)
3402 def add_voxel(self, pt, vt):
3403 """add_voxel(_HistogramCountsGrid6D self, Vector6D pt, double const & vt) -> GridIndex6D"""
3404 return _IMP_statistics._HistogramCountsGrid6D_add_voxel(self, pt, vt)
3407 def get_extended_index(self, index):
3408 """get_extended_index(_HistogramCountsGrid6D self, GridIndex6D index) -> ExtendedGridIndex6D"""
3409 return _IMP_statistics._HistogramCountsGrid6D_get_extended_index(self, index)
3412 def get_bounding_box(self, *args):
3414 get_bounding_box(_HistogramCountsGrid6D self) -> BoundingBox6D
3415 get_bounding_box(_HistogramCountsGrid6D self, ExtendedGridIndex6D i) -> BoundingBox6D
3416 get_bounding_box(_HistogramCountsGrid6D self, GridIndex6D i) -> BoundingBox6D
3418 return _IMP_statistics._HistogramCountsGrid6D_get_bounding_box(self, *args)
3421 def set_bounding_box(self, bb3):
3422 """set_bounding_box(_HistogramCountsGrid6D self, BoundingBox6D bb3)"""
3423 return _IMP_statistics._HistogramCountsGrid6D_set_bounding_box(self, bb3)
3426 def get_nearest_index(self, pt):
3427 """get_nearest_index(_HistogramCountsGrid6D self, Vector6D pt) -> GridIndex6D"""
3428 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_index(self, pt)
3431 def get_nearest_extended_index(self, pt):
3432 """get_nearest_extended_index(_HistogramCountsGrid6D self, Vector6D pt) -> ExtendedGridIndex6D"""
3433 return _IMP_statistics._HistogramCountsGrid6D_get_nearest_extended_index(self, pt)
3435 __swig_destroy__ = _IMP_statistics.delete__HistogramCountsGrid6D
3436 __del__ =
lambda self:
None
3437 _HistogramCountsGrid6D_swigregister = _IMP_statistics._HistogramCountsGrid6D_swigregister
3438 _HistogramCountsGrid6D_swigregister(_HistogramCountsGrid6D)
3441 from .
import _histogram
3442 show_histogram= _histogram.show_histogram
3446 """get_module_version() -> std::string const"""
3447 return _IMP_statistics.get_module_version()
3450 """get_example_path(std::string fname) -> std::string"""
3451 return _IMP_statistics.get_example_path(fname)
3454 """get_data_path(std::string fname) -> std::string"""
3455 return _IMP_statistics.get_data_path(fname)
3457 from .
import _version_check
PartitionalClusteringWithCenter * create_lloyds_kmeans(Embedding *embedding, unsigned int k, unsigned int iterations)
def get_data_path
Return the full path to one of this module's data files.
def get_module_version
Return the version of this module, as a string.
def get_example_path
Return the full path to one of this module's example files.
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
Make CGAL functionality available to IMP.
double get_quantile(const Histogram1D &h, double fraction)
void validate_partitional_clustering(PartitionalClustering *pc, unsigned int n)
Check that the clustering is a valid clustering of n elements.
PartitionalClustering * create_diameter_clustering(Metric *d, double maximum_diameter)
Common base class for heavy weight IMP objects.
PartitionalClustering * create_connectivity_clustering(Metric *metric, double dist)
PartitionalClusteringWithCenter * create_bin_based_clustering(Embedding *embed, double side)
Version and module information for Objects.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
PartitionalClustering * create_centrality_clustering(Metric *d, double far, int k)
algebra::VectorKDs get_centroids(Embedding *d, PartitionalClustering *pc)
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
Ints get_representatives(Embedding *d, PartitionalClustering *pc)