LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
map_scale.m
1function MAPOUT=map_scale(MAPIN,NEWMEAN)
2% MAPOUT=map_scale(MAPIN,NEWMEAN) - Rescale mean inter-arrival time
3%
4% Input:
5% MAPIN: a MAP in the form of {D0,D1}
6% NEWMEAN: new mean inter-arrival time
7%
8% Output:
9% MAPOUT: MAP with same normalized moments and correlations of MAPIN except
10% for the mean inter-arrival time that is set to NEWMEAN
11%
12% Examples:
13% - map_mean(map_scale(map_exponential(1),2)) has mean 2
14%
15
16ratio=map_mean(MAPIN)/NEWMEAN;
17MAPIN{1}=MAPIN{1}*ratio;
18MAPIN{2}=MAPIN{2}*ratio;
19MAPOUT=map_normalize(MAPIN);
20end