LateralEuclidianDistanceConnectionPredicate Class Reference

Predicate for generating connections which a connection probability which depends on the lateral distance between SimObjects. More...

#include <LateralEuclidianDistanceConnectionPredicate.h>

Inheritance diagram for LateralEuclidianDistanceConnectionPredicate:

Inheritance graph
[legend]
Collaboration diagram for LateralEuclidianDistanceConnectionPredicate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LateralEuclidianDistanceConnectionPredicate (double C, double lambd, bool toroid=false, double toroid_off=0.0, int src_shape_x=1, int src_shape_y=1, int dst_shape_x=1, int dst_shape_y=1, double src_scale=1.0, double dst_scale=1.0, double src_center_x=0.0, double src_center_y=0.0, double dst_center_x=0.0, double dst_center_y=0.0)
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 /2/ lambda^2 ).


Detailed Description

Predicate for generating connections which a connection probability which depends on the lateral distance between SimObjects.

The connection probability is C * exp( -|pi-pj|^2 /2/ lambda^2 ) where |pi-pj| is the Euclidian distance between the SimObject's locations pi and pj in the x-y plane. Self connections are not made.

Definition at line 25 of file LateralEuclidianDistanceConnectionPredicate.h.


Constructor & Destructor Documentation

LateralEuclidianDistanceConnectionPredicate::LateralEuclidianDistanceConnectionPredicate ( double  C,
double  lambd,
bool  toroid = false,
double  toroid_off = 0.0,
int  src_shape_x = 1,
int  src_shape_y = 1,
int  dst_shape_x = 1,
int  dst_shape_y = 1,
double  src_scale = 1.0,
double  dst_scale = 1.0,
double  src_center_x = 0.0,
double  src_center_y = 0.0,
double  dst_center_x = 0.0,
double  dst_center_y = 0.0 
) [inline]


Member Function Documentation

virtual bool LateralEuclidianDistanceConnectionPredicate::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:51 2008 for PCSIM by  doxygen 1.5.5