•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 423,648 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,143 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 1801 | Replies: 4
![]() |
•
•
Join Date: Jan 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hello:
I am writting a simulation code on Random Early Detection (RED) and when i run the simulation , the average delay is too high. Does anybody have some idea on it.I really can't get along with it now withouth any help . :cry: Please help me!!!!!!!!!!!!!
I have upload the coding of mine. The file name called sim12.cpp.
Hope will get reply soon... through my email - email removed by moderator
I am writting a simulation code on Random Early Detection (RED) and when i run the simulation , the average delay is too high. Does anybody have some idea on it.I really can't get along with it now withouth any help . :cry: Please help me!!!!!!!!!!!!!
I have upload the coding of mine. The file name called sim12.cpp.
Hope will get reply soon... through my email - email removed by moderator
Last edited by alc6379 : Jan 8th, 2005 at 11:19 am.
•
•
Join Date: Aug 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Re: Having problem in writting simulation on Random Early Detection (RED) using C++
#2
Aug 27th, 2008
Re: Having problem in writting simulation on Random Early Detection (RED) using C++
#3
Aug 27th, 2008
You have a rather strange code to generate exponential distribution. Use RAND_MAX macros from <stdlib.h> (it's not equal to the funny pow expression).
With 32-bit compilers you have huge intervals because of (usually) RAND_MAX is equal 32767 only (rand() is a very bad pseudorandom numbers generator
)...
Alas, I have no time to inspect your code more carefully now.
cplusplus Syntax (Toggle Plain Text)
const double max_rand = RAND_MAX; ... ... log (x/max_rand) ...
)...Alas, I have no time to inspect your code more carefully now.
Re: Having problem in writting simulation on Random Early Detection (RED) using C++
#4
Aug 28th, 2008
> Alas, I have no time to inspect your code more carefully now.
Take your time, it was posted (and abandoned) on 8th Jan 2005
Take your time, it was posted (and abandoned) on 8th Jan 2005
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Re: Having problem in writting simulation on Random Early Detection (RED) using C++
#5
Aug 28th, 2008
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- problem generating random numbers (C#)
- Random Crashes (Troubleshooting Dead Machines)
- problem in generating non repeated random numbers (C)
- spyware has taken control of my pc (Viruses, Spyware and other Nasties)
- Graphics displayed as red x's when surfing (Windows 9x / Me)
- C variables run time problem (C)
Other Threads in the C++ Forum
- Previous Thread: cirular arrys queue has me running in circles
- Next Thread: link ereror using static const int



Linear Mode