Skip to content

Commit

Permalink
Update src/transformations.jl
Browse files Browse the repository at this point in the history
Co-Authored-By: Milan Bouchet-Valat <nalimilan@club.fr>
  • Loading branch information
kleinschmidt and nalimilan committed Mar 2, 2020
1 parent c0c49e4 commit 092a20e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transformations.jl
Expand Up @@ -63,9 +63,9 @@ struct ZScoreTransform{T<:Real} <: AbstractDataTransform
new{T}(l, dims, m, s)
end

function ZScoreTransform(dims::Int, m::Vector{T}, s::Vector{T}) where T
Base.depwarn("ZScoreTransform(dims, m, s) is deprecated: use ZScoreTransform(len, dims, m, s) instead", :ZScoreTransform)
ZScoreTransform(max(length(m), length(s)), dims, m, s)
function ZScoreTransform(l::Int, m::Vector{T}, s::Vector{T}) where T
Base.depwarn("ZScoreTransform(len, m, s) is deprecated: use ZScoreTransform(len, 2, m, s) instead", :ZScoreTransform)
ZScoreTransform(l, 2, m, s)
end
end

Expand Down

0 comments on commit 092a20e

Please sign in to comment.