1function MAPOUT=map_scale(MAPIN,NEWMEAN)
2% MAPOUT=map_scale(MAPIN,NEWMEAN) - Rescale mean inter-arrival time
5% MAPIN: a MAP in the form of {D0,D1}
6% NEWMEAN:
new mean inter-arrival time
9% MAPOUT: MAP with same normalized moments and correlations of MAPIN except
10%
for the mean inter-arrival time that
is set to NEWMEAN
13% - map_mean(map_scale(map_exponential(1),2)) has mean 2
16ratio=map_mean(MAPIN)/NEWMEAN;
17MAPIN{1}=MAPIN{1}*ratio;
18MAPIN{2}=MAPIN{2}*ratio;
19MAPOUT=map_normalize(MAPIN);