Biorithm
1.1
|
This class implements the HeatKernel algorithm. More...
#include <reconciliation-algorithms.h>
Public Member Functions | |
HeatKernel (MyGraph &graph, MyPointSet &weights, double q, double maxIters, string outputPrefix) | |
HeatKernel (vector< MyGraph > &graphs, double q, double maxIters, string outputPrefix) | |
virtual | ~HeatKernel () |
Destructor. | |
virtual string | getName () |
Return the name of the HeatKernel algorithm. | |
Protected Member Functions | |
virtual void | _updateNodeWeightA (MyNode node) |
Update the weight of a node in the current graph according to the HeatKernel update function. | |
virtual bool | _checkFinished (unsigned int iters, double maxDiff) |
Protected Attributes | |
double | _t |
The temperature parameter for heat kernel diffusion. |
This class implements the HeatKernel algorithm.
HeatKernel::HeatKernel | ( | MyGraph & | graph, |
MyPointSet & | weights, | ||
double | q, | ||
double | maxIters, | ||
string | outputPrefix | ||
) | [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] | outputPrefix | A string to prepend to all output files. |
HeatKernel::HeatKernel | ( | vector< MyGraph > & | graphs, |
double | q, | ||
double | maxIters, | ||
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] | outputPrefix | A string to prepend to all output files. |
bool HeatKernel::_checkFinished | ( | unsigned int | iters, |
double | maxDiff | ||
) | [protected, virtual] |
Overloads the default _checkFinished method, because we simply run the heat kernel approximation algorithm for the pre-specified number of iterations. The value of _epsilon is ignored.
Reimplemented from AbstractSingleReconciliation.