obspy.core.inventory.response.CoefficientWithUncertainties
- class CoefficientWithUncertainties(value, **kwargs)[source]
Bases:
FloatWithUncertainties
A coefficient with optional uncertainties.
Attributes
the imaginary part of a complex number |
|
the real part of a complex number |
Public Methods
Return integer ratio. |
|
Return self, the complex conjugate of any float. |
|
Create a floating-point number from a hexadecimal string. |
|
Return a hexadecimal representation of a floating-point number. |
|
Return True if the float is an integer. |
Special Methods
- CoefficientWithUncertainties.__abs__()
abs(self)
- CoefficientWithUncertainties.__add__(value, /)
Return self+value.
- CoefficientWithUncertainties.__bool__()
True if self else False
- CoefficientWithUncertainties.__ceil__()
Return the ceiling as an Integral.
- CoefficientWithUncertainties.__delattr__(name, /)
Implement delattr(self, name).
- CoefficientWithUncertainties.__dir__()
Default dir() implementation.
- CoefficientWithUncertainties.__divmod__(value, /)
Return divmod(self, value).
- CoefficientWithUncertainties.__eq__(value, /)
Return self==value.
- CoefficientWithUncertainties.__float__()
float(self)
- CoefficientWithUncertainties.__floor__()
Return the floor as an Integral.
- CoefficientWithUncertainties.__floordiv__(value, /)
Return self//value.
- CoefficientWithUncertainties.__format__(format_spec, /)
Formats the float according to format_spec.
- CoefficientWithUncertainties.__ge__(value, /)
Return self>=value.
- CoefficientWithUncertainties.__getattribute__(name, /)
Return getattr(self, name).
- CoefficientWithUncertainties.__getformat__()
You probably don’t want to use this function.
- typestr
Must be ‘double’ or ‘float’.
It exists mainly to be used in Python’s test suite.
This function returns whichever of ‘unknown’, ‘IEEE, big-endian’ or ‘IEEE, little-endian’ best describes the format of floating point numbers used by the C type named by typestr.
- CoefficientWithUncertainties.__getnewargs__()
- CoefficientWithUncertainties.__gt__(value, /)
Return self>value.
- CoefficientWithUncertainties.__hash__()
Return hash(self).
- CoefficientWithUncertainties.__iadd__(other)
- CoefficientWithUncertainties.__imul__(other)
- CoefficientWithUncertainties.__init__(value, number=None, lower_uncertainty=None, upper_uncertainty=None)[source]
- CoefficientWithUncertainties.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- CoefficientWithUncertainties.__int__()
int(self)
- CoefficientWithUncertainties.__le__(value, /)
Return self<=value.
- CoefficientWithUncertainties.__lt__(value, /)
Return self<value.
- CoefficientWithUncertainties.__mod__(value, /)
Return self%value.
- CoefficientWithUncertainties.__mul__(value, /)
Return self*value.
- CoefficientWithUncertainties.__ne__(value, /)
Return self!=value.
- CoefficientWithUncertainties.__neg__()
-self
- static CoefficientWithUncertainties.__new__(cls, value, **kwargs)
- CoefficientWithUncertainties.__pos__()
+self
- CoefficientWithUncertainties.__pow__(value, mod=None, /)
Return pow(self, value, mod).
- CoefficientWithUncertainties.__radd__(value, /)
Return value+self.
- CoefficientWithUncertainties.__rdivmod__(value, /)
Return divmod(value, self).
- CoefficientWithUncertainties.__reduce__()
Helper for pickle.
- CoefficientWithUncertainties.__reduce_ex__(protocol, /)
Helper for pickle.
- CoefficientWithUncertainties.__repr__()
Return repr(self).
- CoefficientWithUncertainties.__rfloordiv__(value, /)
Return value//self.
- CoefficientWithUncertainties.__rmod__(value, /)
Return value%self.
- CoefficientWithUncertainties.__rmul__(value, /)
Return value*self.
- CoefficientWithUncertainties.__round__(ndigits=None, /)
Return the Integral closest to x, rounding half toward even.
When an argument is passed, work like built-in round(x, ndigits).
- CoefficientWithUncertainties.__rpow__(value, mod=None, /)
Return pow(value, self, mod).
- CoefficientWithUncertainties.__rsub__(value, /)
Return value-self.
- CoefficientWithUncertainties.__rtruediv__(value, /)
Return value/self.
- CoefficientWithUncertainties.__setattr__(name, value, /)
Implement setattr(self, name, value).
- CoefficientWithUncertainties.__setformat__(fmt, /)
You probably don’t want to use this function.
- typestr
Must be ‘double’ or ‘float’.
- fmt
Must be one of ‘unknown’, ‘IEEE, big-endian’ or ‘IEEE, little-endian’, and in addition can only be one of the latter two if it appears to match the underlying C reality.
It exists mainly to be used in Python’s test suite.
Override the automatic determination of C-level floating point type. This affects how floats are converted to and from binary strings.
- CoefficientWithUncertainties.__sizeof__()
Size of object in memory, in bytes.
- CoefficientWithUncertainties.__str__()
Return str(self).
- CoefficientWithUncertainties.__sub__(value, /)
Return self-value.
- CoefficientWithUncertainties.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- CoefficientWithUncertainties.__truediv__(value, /)
Return self/value.
- CoefficientWithUncertainties.__trunc__()
Return the Integral closest to x between 0 and x.