Bases: object
This is the base class for uncertainty classes used with NDData. It is implemented as an abstract class and should never be directly instantiated.
Classes inheriting from NDData should overload the propagate_* methods, keeping the call signature the same. The propagate methods can assume that a parent_nddata attribute is present which links to the parent_nddata dataset, and take an NDData instance as the positional argument, not an NDUncertainty instance, because the NDData instance can be used to access both the data and the uncertainties (some propagations require the data values).
Attributes Summary
parent_nddata | |
supports_correlated | bool(x) -> bool |
Methods Summary
propagate_add(other_nddata, result_data) | Propagate uncertainties for addition. |
propagate_divide(other_nddata, result_data) | Propagate uncertainties for division. |
propagate_multiply(other_nddata, result_data) | Propagate uncertainties for multiplication. |
propagate_subtract(other_nddata, result_data) | Propagate uncertainties for subtraction. |
Attributes Documentation
Methods Documentation
Propagate uncertainties for addition.
Parameters: | other_nddata : NDData instance
result_data : ndarray instance
|
---|---|
Returns: | result_uncertainty : NDUncertainty instance
|
Raises: | IncompatibleUncertaintiesException
|
Propagate uncertainties for division.
Parameters: | other_nddata : NDData instance
result_data : ndarray instance
|
---|---|
Returns: | result_uncertainty : NDUncertainty instance
|
Propagate uncertainties for multiplication.
Parameters: | other_nddata : NDData instance
result_data : ndarray instance
|
---|---|
Returns: | result_uncertainty : NDUncertainty instance
|
Propagate uncertainties for subtraction.
Parameters: | other_nddata : NDData instance
result_data : ndarray instance
|
---|---|
Returns: | result_uncertainty : NDUncertainty instance
|
Raises: | IncompatibleUncertaintiesException
|