From b8ec21bf3744a5d6f38fae73f643efc957a86698 Mon Sep 17 00:00:00 2001 From: msl Date: Fri, 23 Aug 2024 19:51:42 +0200 Subject: [PATCH] bug fix --- src/dataset/modify.jl | 2 +- src/stat/non_hp_stat.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dataset/modify.jl b/src/dataset/modify.jl index 61ccec2..adcc20d 100644 --- a/src/dataset/modify.jl +++ b/src/dataset/modify.jl @@ -255,7 +255,7 @@ function normalize_modify!(outidx::Index, idx, @nospecialize(sel::Pair{<:ColumnIndex, <:Vector{<:Base.Callable}})) colsidx = outidx[sel.first] - normalize_modify!(outidx, idx, colsidx .=> sel.second[i]) + normalize_modify!(outidx, idx, colsidx .=> sel.second) return res end diff --git a/src/stat/non_hp_stat.jl b/src/stat/non_hp_stat.jl index e0feee1..d44e3d7 100644 --- a/src/stat/non_hp_stat.jl +++ b/src/stat/non_hp_stat.jl @@ -119,7 +119,7 @@ function rescale(x, minx, maxx, minval, maxval) -(-maxx * minval + minx * maxval) / (maxx - minx) + (-minval + maxval) * x / (maxx - minx) end rescale(::Missing, minx, maxx, minval, maxval) = missing -rescale(x::Vector, minx, maxx, minval, maxval) = rescale.(x, minx, maxx, minval, maxval) +rescale(x::AbstractVector, minx, maxx, minval, maxval) = rescale.(x, minx, maxx, minval, maxval) rescale(x, minx, maxx) = rescale(x, minx, maxx, 0.0, 1.0) """