In #206, we have a very nice diff which allows us to use Unitful datatypes in series. However, using:
pkg> status
Status `~/foo.jl/Project.toml`
[a15396b6] OnlineStats v1.5.13
[1986cc42] Unitful v1.9.1
I attempt to compute the mean of a series of values:
julia> t0 = 1.0u"s"
julia> m = Mean(typeof(t0))
Mean: n=0 | value=0.0 s
julia> t1 = 2.0u"s"
2.0 s
julia> fit!(m, t1)
ERROR: DimensionError: 0.0 s and 2.0 s² are not dimensionally compatible.
Note that the variance appears to work as expected:
In #206, we have a very nice diff which allows us to use
Unitful
datatypes in series. However, using:I attempt to compute the mean of a series of values:
Note that the variance appears to work as expected:
As does
Extrema
: