tomaszpolit94 0 Posted May 5, 2016 Report Share Posted May 5, 2016 Mam dany algorytm metody ROU dla rozkładu normalnego i jest problem z jego kompilacją. Nie bardzo też rozumiem o co chodzi ze słowem generuj jak je zapisać w C++. Proszę o pomoc. DZIĘKI Repeat Generuj U o rozkładzie równomiernym U(0,1) Generuj V o rozkładzie równomiernym U 2 / e, 2 / e X=V/U If X2 ≤ 2(3 - U(4 + U)) then akceptuj=true Else If X2 ≤ 2/U-2U then If X2 ≤ - 4 ln U then akceptuj=true until akceptuj Return X Lubię to Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.