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 at t=0.1 and ends at t=0.5, then ranges(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.