Signal Toolkit - sigmoid_train
- Function File:
[y s] =
sigmoid_train(t, ranges, rc)
-
Evaluate a train of sigmoid functions at t.
The number and duration of each sigmoid is determined from ranges. Each row of ranges represents a real interval, e.g. if sigmoid
i
starts att=0.1
and ends att=0.5
, thenranges(i,:) = [0.1 0.5]
. The input rc is an array that defines the rising and falling time constants of each sigmoid. Its size must equal the size of ranges.The individual sigmoids are returned in s. The combined sigmoid train is returned in the vector y of length equal to t, and such that
Y = max (S)
.Run
demo sigmoid_train
to some examples of the use of this function.