Skip to content

Commit 7aad59c

Browse files
committed
Created sub module
1 parent 62ff417 commit 7aad59c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/ComputationalModels/EvolutionFunctions.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11

2+
"The evolution functions have been designed to apply variable boundary conditions."
3+
module EvolutionFunctions
4+
5+
export ramp
6+
export triangular
7+
export step
8+
export sigmoid
9+
export constant
10+
11+
"Return an unbounded ramp function. By default, it is the identity. Otherwise, the scaling factor is 1/T."
12+
function ramp(T::Float64=1.0)
13+
t::Float64 -> t/T
14+
end
215

316
"Return a triangular evolution function ranging from 0 to 1, centered at T, having edges at 0 and 2T."
417
function triangular(T::Float64)
@@ -40,3 +53,5 @@ end
4053
function constant()
4154
t::Float64 -> 1.0
4255
end
56+
57+
end

0 commit comments

Comments
 (0)