So I was given this problem by my professor:
Unfortunately he is unreachable during the holidays. Can someone explain what lambda is supposed to be?
This is the code I have written thus far:
function p=calcprob(k)
p=exp(-lambda)*(((lambda)^k)/(factorial(k)))
end

 채택된 답변

KSSV
KSSV 2017년 11월 24일

0 개 추천

It is a Poisson's Distribution......lambda is the average number of events (here cars) per interval. Read more here: https://en.wikipedia.org/wiki/Poisson_distribution

댓글 수: 2

Matthew Lozancich
Matthew Lozancich 2017년 11월 24일
So in this case Lambda = K(cars)/(1) min ??
Matthew Lozancich
Matthew Lozancich 2017년 11월 24일
NVM i'm so dumb. LOL I reread the problem. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

질문:

2017년 11월 24일

답변:

2020년 3월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by