C# Class Brunet.Simulator.Utils

显示文件 Open project: pstjuste/brunet

Public Methods

Method Description
Average ( List data ) : double

Calculates the average of a data set.

GeometricDistance ( int>.Pair p0, int>.Pair p1 ) : int

Calculates the geometric distance for a "connected" plane.

RandomLatencyMap ( int size ) : List>

Generates a latency map using a 2-dimensional space.

ReadLatencyDataSet ( string filename, int size ) : List>

Reads a space separated value file as latency data set.

StandardDeviation ( List data, double avg ) : double

Calculates the standard deviation given a data set and the average.

Method Details

Average() static public method

Calculates the average of a data set.
static public Average ( List data ) : double
data List
return double

GeometricDistance() static public method

Calculates the geometric distance for a "connected" plane.
static public GeometricDistance ( int>.Pair p0, int>.Pair p1 ) : int
p0 int>.Pair
p1 int>.Pair
return int

RandomLatencyMap() static public method

Generates a latency map using a 2-dimensional space.
static public RandomLatencyMap ( int size ) : List>
size int
return List>

ReadLatencyDataSet() static public method

Reads a space separated value file as latency data set.
static public ReadLatencyDataSet ( string filename, int size ) : List>
filename string
size int
return List>

StandardDeviation() static public method

Calculates the standard deviation given a data set and the average.
static public StandardDeviation ( List data, double avg ) : double
data List
avg double
return double