C# Class TemporalNetworks.RandomWalk

A class that can be used to study random walk dynamics in temporal networks
Afficher le fichier Open project: IngoScholtes/TemporalNetworks Class Usage Examples

Méthodes publiques

Méthode Description
GetLastVisit ( string node ) : int
GetMaxVisitationProb ( ) : double
GetMinVisitationProb ( ) : double
GetVisitationProb ( string node ) : double
RandomWalk ( TemporalNetwork network, RandomWalkMode walkmode ) : System

Creates an instance of a random walk process

Step ( ) : void

Performs one transition of the random walk process.

Private Methods

Méthode Description
ComputeStationaryDist ( ) : double>.Dictionary

Computes the expected stationary distribution of a random walk in the weighted aggregate network NOTE: At present, this implementation only works correctly if the network is undirected!

InitializeCumulatives ( ) : void

Initializes all vectors that will be used for sampling transition probabilities in first and second-order network

StringToTuple ( string edge ) : string>.Tuple

Convert an edge in string format to tuple format

TupleToString ( string>.Tuple edge ) : string

Convert an edge in tuple format to string format

Method Details

GetLastVisit() public méthode

public GetLastVisit ( string node ) : int
node string
Résultat int

GetMaxVisitationProb() public méthode

public GetMaxVisitationProb ( ) : double
Résultat double

GetMinVisitationProb() public méthode

public GetMinVisitationProb ( ) : double
Résultat double

GetVisitationProb() public méthode

public GetVisitationProb ( string node ) : double
node string
Résultat double

RandomWalk() public méthode

Creates an instance of a random walk process
public RandomWalk ( TemporalNetwork network, RandomWalkMode walkmode ) : System
network TemporalNetwork
walkmode RandomWalkMode
Résultat System

Step() public méthode

Performs one transition of the random walk process.
public Step ( ) : void
Résultat void