Is there a way to get this right?
Code: Select all
SCALAR Horizon /100/ ;
SCALAR StepSize /7/ ;
SCALAR NPeriods ;
NPeriods = Ceil(Horizon/StepSize) ;
SET periods /1*NPeriods/ ;
So, setting the value for Horizon and StepSize should set the number of elements of periods.