EuclidianDistanceConnectionPredicate Class Reference

Predicate for generating connections which a connection probability which depends on the spatial distance between SimObject's. More...

#include <EuclidianDistanceConnectionPredicate.h>

Inheritance diagram for EuclidianDistanceConnectionPredicate:

Inheritance graph
[legend]
Collaboration diagram for EuclidianDistanceConnectionPredicate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EuclidianDistanceConnectionPredicate (double C, double lambda)
 New predicate with given parameters C and lambda.
virtual bool decide (size_t src, size_t dst, RandomEngine *rnd)
 Return true if a uniform distributed random number is smaller than C * exp( -|px-py|^2 / lambda^2 ).


Detailed Description

Predicate for generating connections which a connection probability which depends on the spatial distance between SimObject's.

The connection probability is C * exp( -|px-py|^2 / lambda^2 ) where |px-py| is the Euclidian distance between the SimObject's locations px and py. Self connections are not made.

Definition at line 20 of file EuclidianDistanceConnectionPredicate.h.


Constructor & Destructor Documentation

EuclidianDistanceConnectionPredicate::EuclidianDistanceConnectionPredicate ( double  C,
double  lambda 
) [inline]

New predicate with given parameters C and lambda.

Definition at line 25 of file EuclidianDistanceConnectionPredicate.h.


Member Function Documentation

virtual bool EuclidianDistanceConnectionPredicate::decide ( size_t  src,
size_t  dst,
RandomEngine rnd 
) [inline, virtual]


The documentation for this class was generated from the following file:

Generated on Wed Jul 9 16:34:50 2008 for PCSIM by  doxygen 1.5.5