mercredi 26 avril 2017

If formulation for repetitive time series

Hi I have a formula to implement. It initially increase with 4 units/hour the first 5 hours and then increase steadily until it hits 19 units/hour after 5 hours. This rate is repeated and want to model it for the first 100 hours. Simple math tells me the increase is y=3t+4 and decrease is y=-3t+26 I've used mod to find the point of breaks but struggle to find a formula which model the intermediate mod(t,5)==0. Is there a smart way of doing this?

Aucun commentaire:

Enregistrer un commentaire