Biorithm
1.1
|
This class implements the SinkSource algorithm. More...
#include <reconciliation-algorithms.h>
Public Member Functions | |
SinkSource (MyGraph &graph, MyPointSet &weights, double q, double maxIters, double epsilon, double lambda, string output) | |
SinkSource (vector< MyGraph > &graphs, double q, double maxIters, double epsilon, double lambda, string outputPrefix) | |
virtual | ~SinkSource () |
Destructor. | |
virtual string | getName () |
Returns the name of the SinkSource algorithm. | |
Protected Member Functions | |
virtual void | _runAlgorithmOnceA () |
virtual void | _updateNodeWeightA (MyNode node) |
Update the weight of a node in the current graph according to the SinkSource update function. | |
Protected Attributes | |
double | _LAMBDA |
This class implements the SinkSource algorithm.
SinkSource::SinkSource | ( | MyGraph & | graph, |
MyPointSet & | weights, | ||
double | q, | ||
double | maxIters, | ||
double | epsilon, | ||
double | lambda, | ||
string | output | ||
) | [inline] |
Constructor for running the algorithm on a single network with multiple initial weights samples.
[in] | graph | The network on which to operate. |
[in] | weights | The samples containing initial node weights. |
[in] | q | The parameter q used by the algorithm. |
[in] | maxIters | The maximum number of iterations to run the iterative reconciliation algorithms. |
[in] | epsilon | A small value that defines part of the convergence criteria. |
[in] | lambda | A parameter that controls the weight of the edges to the universal sink. |
[in] | output | A string to prepend to all output files. |
SinkSource::SinkSource | ( | vector< MyGraph > & | graphs, |
double | q, | ||
double | maxIters, | ||
double | epsilon, | ||
double | lambda, | ||
string | outputPrefix | ||
) | [inline] |
Constructor for running the algorithm on multiple networks with no initial weights.
[in] | graphs | The networks on which to operate. |
[in] | q | The parameter q used by the algorithm. |
[in] | maxIters | The maximum number of iterations to run the iterative reconciliation algorithms. |
[in] | epsilon | A small value that defines part of the convergence criteria. |
[in] | lambda | A parameter that controls the weight of the edges to the universal sink. |
[in] | output | A string to prepend to all output files. |
void SinkSource::_runAlgorithmOnceA | ( | ) | [protected, virtual] |
Run the SinkSource algorithm on the current network. This function is overloaded, because SinkSource is a bit different from other reconciliation algorithms. We only want to update the node weight for nodes that do not have any initial value. Nodes with initial value keep that value for every iteration.
Reimplemented from AbstractSingleReconciliation.