From 5f7d59e9138af4531fa89d319718baef6cfea7ca Mon Sep 17 00:00:00 2001 From: Filipe Braida Date: Wed, 19 Aug 2020 10:53:40 -0300 Subject: [PATCH] =?UTF-8?q?Os=20drifts=20s=C3=A3o=20virtuais=20e=20reais.?= =?UTF-8?q?=20Tirando=20do=20nome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modifiers.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modifiers.jl b/src/modifiers.jl index c6e38bc..0c4e8a9 100644 --- a/src/modifiers.jl +++ b/src/modifiers.jl @@ -65,7 +65,7 @@ end sigmoid(x; c1 = 1.0, c2 = 0.0) = 1 / (1 + ℯ ^ (-c1 * (x - c2))) -function IncrementalVirtualDriftModifier(vetor::Dict{Symbol, T}, filter::Function; c1 = 1.0, c2 = 0.0)::Modifiers where T <: Number +function IncrementalDriftModifier(vetor::Dict{Symbol, T}, filter::Function; c1 = 1.0, c2 = 0.0)::Modifiers where T <: Number modifiers = EasyStream.Modifier[] for (column, value) in vetor drift = DriftModifier(column, filter, x -> value .* sigmoid(x; c1 = c1, c2 = c2)) @@ -75,6 +75,6 @@ function IncrementalVirtualDriftModifier(vetor::Dict{Symbol, T}, filter::Functio return Modifiers(modifiers) end -function SuddenVirtualDriftModifier(vetor::Dict{Symbol, T}, filter::Function; c2 = 0.0)::Modifiers where T <: Number - return IncrementalVirtualDriftModifier(vetor, filter; c1 = 1.0, c2 = c2) +function SuddenDriftModifier(vetor::Dict{Symbol, T}, filter::Function; c2 = 0.0)::Modifiers where T <: Number + return IncrementalDriftModifier(vetor, filter; c1 = 1.0, c2 = c2) end \ No newline at end of file