johnmyleswhite / StreamStats.jl

Compute statistics over data streams in pure Julia
Other
48 stars 7 forks source link

std() and var() throw errors for StreamStats.Var #20

Closed tawheeler closed 9 years ago

tawheeler commented 9 years ago

Calling std() on a StreamStats.Var instance throws an error:

julia> std(a)
ERROR: `start` has no method matching start(::Var)
 in var at statistics.jl:42
julia> var(a)
ERROR: `start` has no method matching start(::Var)
 in var at statistics.jl:42

There is no issue with mean(a)

Not sure what the problem is, maybe it conflicts with a type in statistics.jl?

johnmyleswhite commented 9 years ago

Isn't this exactly the behavior you'd expect from reading through the code?

johnmyleswhite commented 9 years ago

Is this an issue with an older version of the code? There is no StreamStats.Var type anymore.

tawheeler commented 9 years ago

aha! Thanks - I should have checked for that. I just followed the tutorial on the main page.

Looks like the version I have from Metadata does not have those changes.

johnmyleswhite commented 9 years ago

Yes, this package is still very much in flux. Sorry for the confusion.