LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
map_exponential.m
1function MAP=map_exponential(MEAN)
2% MAP=map_exponential(MEAN) - Fit a Poisson process as a MAP
3%
4% Input:
5% MEAN: mean inter-arrival time of the process
6%
7% Output:
8% MAP: a MAP in the form of {D0,D1}
9%
10% Examples:
11% - MAP=map_exponential(2) return a Poisson process with rate lambda=0.5
12%
13
14if iscell(MEAN)
15 MAP=map_exponential(map_mean(MEAN));
16 return
17end
18mu=1/MEAN;
19MAP={[-mu],[mu]};
20end