diff --git a/Project.toml b/Project.toml index f32b2669..4b589541 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "OnlineStats" uuid = "a15396b6-48d5-5d58-9928-6d29437db91e" -version = "1.7.0" +version = "1.7.1" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/stats/pca.jl b/src/stats/pca.jl index 5f343b3a..bc2f5084 100644 --- a/src/stats/pca.jl +++ b/src/stats/pca.jl @@ -78,7 +78,7 @@ Base.lastindex(o::CCIPCA) = outdim(o) Base.size(o::CCIPCA) = (indim(o), outdim(o)) @inline outdim(o::CCIPCA) = length(o.lambda) @inline indim(o::CCIPCA) = length(o.center) -function _fit!(o::CCIPCA, x::Vector{Float64}) +function _fit!(o::CCIPCA, x::AbstractVector{<:Real}) if o.indimdet == false # Now indim is known so we set up accordingly idim = length(x)