Public Member Functions

BipartiteFunctionOracle Class Reference

weight oracle for bipartite graphs with weight function More...

#include <BipartiteFunctionOracle.h>

Inheritance diagram for BipartiteFunctionOracle:
WeightOracle

List of all members.

Public Member Functions

 BipartiteFunctionOracle (double **dataX, double **dataY, WeightFunction *wf, int r, int c, int d)
int  getSize ()
double  computeWeight (int row, int col)

Detailed Description

weight oracle for bipartite graphs with weight function

Special subclass of weight oracles meant for bipartite graphs with weights defined by a function between node descriptors, which are represented such that nodes within each bipartition have negative-infinite weight between each other


Constructor & Destructor Documentation

BipartiteFunctionOracle::BipartiteFunctionOracle ( double **   dataX,
double **   dataY,
WeightFunction *   wf,
int   r,
int   c,
int   d  
)
Parameters:
[in]dataXmatrix (r x d) whose rows are the vector descriptors of the first bipartition
[in]dataYmatrix (c x d) whose rows are the vector descriptors of the second bipartition
[in]wffunction mapping node pair descriptors to weight value (e.g., negative Euclidean distance)
[in]rcount of rows (number of nodes in first bipartition)
[in]ccount of columns (number of nodes in second bipartition)
[in]ddimensionality of vector descriptors

Member Function Documentation

double BipartiteFunctionOracle::computeWeight ( int   row,
int   col  
) [virtual]

Get the weight between nodes

Returns:
the weight between the "row"th node and the "col"th node

Reimplemented from WeightOracle.

int BipartiteFunctionOracle::getSize (  ) [virtual]

returns the number of nodes in the graph

Returns:
the number of nodes in the graph

Reimplemented from WeightOracle.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines