C# Class Brunet.Simulator.Utils

Afficher le fichier Open project: pstjuste/brunet

Méthodes publiques

Méthode 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 méthode

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

GeometricDistance() static public méthode

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

RandomLatencyMap() static public méthode

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

ReadLatencyDataSet() static public méthode

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

StandardDeviation() static public méthode

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