Values without uncertainty
The CertainValue
allows representation of values with no uncertainty. It behaves just as a scalar, but can be mixed with uncertain values when performing mathematical operations and resampling.
Generic constructor¶
#
UncertainData.UncertainValues.UncertainValue
— Method.
1 | UncertainValue(x::T) where T <: Real |
Create a CertainValue
instance from a scalar with no uncertainty.
Type documentation¶
#
UncertainData.UncertainValues.CertainValue
— Type.
1 | CertainValue
|
A simple wrapper type for values with no uncertainty (i.e. represented by a scalar).
Examples
The two following ways of constructing values without uncertainty are equivalent.
1 2 | u1, u2 = CertainValue(2.2), CertainValue(6) w1, w2 = UncertainValue(2.2), UncertainValue(6) |