Hi,
I am writing a discrete event simulator and want to simplify the
analysis of multipath by trigging an arrival of multipath based on a
the receiver distance from sender- say 'd'- and a simulation
parameter, say mpParam which gives the fraction of maximum range
within which the reflecting surface is located (I know gross
simplifications !). Note that for fraction beyond 1, there is no need
for any event to be triggered as it will not be strong enough to be
received (for sure). Based on the direct distance to the receiver and
the multipath distance I want to make the probability of a multipath
being triggered to be inversely proportional to the sq. of the
distance.
Since the trigerring of the event is a binary decision I am little
confused how to code this. Currently I am doing the following (but it
doesnt feel/seem right!, thats why I am asking here) (RAND_UNIFORME is
a macro giving random # b/w 0,1)
distance = (*nodePosition) .getDistance(gN odeInfoVector[nodeIter]);
timerInfo.timeL eft_ = (timeTicks)( distance*SEC_TO _TIMETICK/
(SPEED_MPS));
tcbPtr = new Event(timerInfo ); //set event for direct path
float decisionMP=(RAN D_UNIFORME+mpPa ram)*(1-pow((MAX_RANGE/distance),
2));
if(decisionMP <0.5){//only if the threshold is greater than what is
expected at the receiver do we have a multipath signal arriving at the
receiver.. assume a 2 ray model for multipath
double multipathDistan ce, surfaceHeight;
surfaceHeight=m pParam*MAX_RANG E;
multipathDistan ce=2*sqrt(((sur faceHeight*surf aceHeight)+
(distance*dista nce/4)));//gemoetry calc for multipath calculation
timerInfo.timeL eft_ = (timeTicks)
( multipathDistan ce*SEC_TO_TIMET ICK/(SNDSPEED_MPS)) ;
tcbPtr = new Event(timerInfo );//set event for multipath
}
Any suggestions would be more than welcome.
Thank you.
Affan 2 2149
Affan wrote:
I am writing a discrete event simulator [..]
Since the trigerring of the event is a binary decision I am little
confused how to code this.
What's the algorithm? Can you write it in pseudo-code? If you can,
please do, we can help you convert it into C++ code. If you cannot,
ask in 'comp.programmi ng'. Here we talk C++, not general programming.
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
On Jun 26, 1:39 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
Affan wrote:
I am writing a discrete event simulator [..]
Since the trigerring of the event is a binary decision I am little
confused how to code this.
What's the algorithm? Can you write it in pseudo-code? If you can,
please do, we can help you convert it into C++ code. If you cannot,
ask in 'comp.programmi ng'. Here we talk C++, not general programming.
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
posted to comp.programmin g.. as the issue is algorithmic not about
coding.
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andreas Schmitt |
last post by:
Hi,
Sorry for posting in German before, totally forgot about that when I was
pasting this in here from another German newsgroup I was writing to, trying
to get help
I am programming a simple version of a soccer simulation
The logic works like this so far:
= constant value goals/game
|
by: Lauren Quantrell |
last post by:
I have constructed the following code that simulates the common
rollover effect when moving the mouse over a label (this example makes
the label bold.)
I'm wondering if anyone has come up with a better solution.
lq
'start code:
|
by: Francois Vanderseypen |
last post by:
Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels
(.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of
the game of life.
I would like to draw a line in this discrete space, but it can't be smooth,
it has to be aliased or in a block-form corresponding to the pixel
resolution of the underlying space. How to approximate a 'Graphics.DrawLine'
in function of the pixelated space?
Thanks for your...
|
by: CW |
last post by:
I have message entry screen that's causing me a bit of an issue. At the
moment, there are 2 buttons, one is used to send message to another user
(btnSend) and another is used to send messages to all users (btnSendAll).
When user hits enter, I also simulate the effect of clicking button
(btnSend). However, what I found btnSend doesn't fire (unless I click on the
button).
The postback function I call is as follows:
function...
|
by: jack |
last post by:
Hi guys,
I am working on a project which requires an implementation of discrete
event simulation in C using linked lists. I would greatly appreciate if
someone could provide with some sources on how to approach DES. Please
help me out.
Thanks,
Jack
| |
by: Roger Withnell |
last post by:
I would like to freeze column and row headings on a webpage, simulating
freeze panes as in an Excel spreadsheet.
Don't seem to be able to do it with Frames. Is there a way with Javascript
and/or CSS and or Frames?
Thanks in anticipation.
|
by: Mike P |
last post by:
I have a couple of columns in my gridview that I am adding formatting to
in the RowDataBound event. But when I want to edit the rows when the
RowDataBound event gets called, I get an error. I'm thinking that I
need some kind of statement where I check whether the grid is in editing
mode before I run the code. Here is my code :
protected void GridView1_RowDataBound(object sender,
GridViewRowEventArgs e)
{
if (e.Row.RowType ==...
|
by: info |
last post by:
Hi
I would like to introduce Discrete-event simulation system Delsi 2.0
The system is implemented as a set of components for .NET 2.0
Framework.
It is designed for simulation of queuing systems with complex logic
and topology.
Delsi 2.0 allows you to utilize all the power of C#, Microsoft .NET
Framework 2.0 and its development environment, such as Microsoft
|
by: Xu, Qian |
last post by:
Hello All,
I have some problem by simulating a link click using javascript.
The webpage uses a js-library named interface (jQuery like)
------------------------------
<a id="foo" href="#">Try try try</a>
$('#foo').click(function(){
$('ul',this.parentNode).BlindToggleVertically(500);
this.blur();
return false;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |