Skip to content

Commit

Permalink
gain.epsilon -> gain.size
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Mar 8, 2019
1 parent 9a888ad commit 596f12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fictplay.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ abstract type AbstractGain end
struct DecreasingGain <: AbstractGain end

mutable struct ConstantGain{T<:Real} <: AbstractGain
epsilon::T
size::T
end

step_size(T::Type, gain::DecreasingGain, t::Integer) = one(T)/(t+1)
step_size(T::Type, gain::ConstantGain, t::Integer) = T(gain.epsilon)
step_size(T::Type, gain::ConstantGain, t::Integer) = T(gain.size)


abstract type AbstractFictitiousPlay{N,T<:Real} end
Expand Down

0 comments on commit 596f12f

Please sign in to comment.