Skip to content

Commit

Permalink
Os drifts são virtuais e reais. Tirando do nome
Browse files Browse the repository at this point in the history
  • Loading branch information
filipebraida committed Aug 19, 2020
1 parent f438dd1 commit 5f7d59e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modifiers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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

0 comments on commit 5f7d59e

Please sign in to comment.