47 this.rampperc= percent;
56 fhandle = @(
t)(
t < rampstart) + ...
57 (
t >= rampstart &
t < st).*(1-(
t-st*(1-p))/(st*p));
64 str = sprintf(
" Endtime: %g, Ramp percent: %g ",this.stoptime,this.rampperc);
69 plot@general.functions.AFunGen(
this,
" R ", [0 this.stoptime*1.5], varargin[:]);
76 f = general.functions.ConstantUntil;
78 f = general.functions.ConstantUntil(5,.1);
80 res = fh(4.5) == 1 && fh(4.75) == .5 && fh(5) == 0;
function [ fhandle , df ] = getFunction()
function str = getConfigStr()
static function res = test_ConstantUntil()
A variable number of input arguments.
AFUNGEN Summary of this class goes here Detailed explanation goes here.
ConstantUntil(time, percent)
A constant function of value 1 util the given time. Uses a ramp to go down from 1 to 0 for continuity...