Skip to content

Commit

Permalink
Merge pull request #289 from CliMA/ah/fix-rescaledzscore
Browse files Browse the repository at this point in the history
Fix RescaledZScore
  • Loading branch information
adelinehillier committed Jul 18, 2022
2 parents fc6b8a0 + f32f4c2 commit 99b990f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Transformations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ struct RescaledZScore{T, Z} <: AbstractNormalization
zscore :: Z
end

RescaledZScore(scale) = RescaledZScore(scale, nothing)
RescaledZScore(scale) = RescaledZScore(scale, ZScore())

compute_normalization(r::RescaledZScore, transformation, fts) =
RescaledZScore(r.scale, compute_normalization(r.zscore, transformation, fts))
RescaledZScore(r.scale, compute_normalization(ZScore(), transformation, fts))

function normalize!(data, normalization::RescaledZScore)
normalize!(data, normalization.zscore)
Expand Down

0 comments on commit 99b990f

Please sign in to comment.