Biorithm  1.1
Public Member Functions | Protected Member Functions | Protected Attributes
HeatKernel Class Reference

This class implements the HeatKernel algorithm. More...

#include <reconciliation-algorithms.h>

Inheritance diagram for HeatKernel:
AbstractSingleReconciliation

List of all members.

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.

Detailed Description

This class implements the HeatKernel algorithm.


Constructor & Destructor Documentation

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.

Parameters:
[in]graphThe network on which to operate.
[in]weightsThe samples containing initial node weights.
[in]qThe parameter q used by the algorithm.
[in]maxItersThe maximum number of iterations to run the iterative reconciliation algorithms.
[in]outputPrefixA 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.

Parameters:
[in]graphsThe networks on which to operate.
[in]qThe parameter q used by the algorithm.
[in]maxItersThe maximum number of iterations to run the iterative reconciliation algorithms.
[in]outputPrefixA string to prepend to all output files.

Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Friends