I have an assignment and now got confused about exponential distribution. The instruction say "service time is exponential distributed with intensity lambda=3
." First I thought generating this is just exp(3)
, but using Matlab I am wondering if this is right interpretation of the text. Maybe I should use exprnd(3)
instead?
相关问题
- Extract matrix elements using a vector of column i
- How do you get R's null and residual deviance
- How to display an image represented by three matri
- OpenCV - Is there an implementation of marker base
- Avoid copying an array when using mexCallMATLAB
相关文章
- How do I append metadata to an image in Matlab?
- How can I write-protect the Matlab language?
- `std::sin` is wrong in the last bit
- Escape sequence to display apostrophe in MATLAB
- Vertical line fit using polyfit
- Reading .mat file using C: how to read cell-struct
- Is it possible to compare 3D images?
- How can I find row to all rows distance matrix bet
If the service time distribution, S, is exponentially distributed with rate lambda = 3, then the average service time is 1/3.
You'll see the Exponential distribution often parameterized by the rate lambda, but MATLAB uses the mean. You can see MATLAB's parameterization here in the documentation.
To generate service times, one can use
exprnd
directly or use the inverse transform for the Exponential distribution.Note: You can replace
1-U
withU
since they are equal in distribution.