Public Member Functions

FunctionOracle Class Reference

Weight oracle that returns weights computed via a function between node descriptors of a unipartite graph. More...

#include <FunctionOracle.h>

Inheritance diagram for FunctionOracle:
WeightOracle

List of all members.

Public Member Functions

 FunctionOracle (double **X, WeightFunction *wf, int n, int d)
int  getSize ()
double  computeWeight (int row, int col)

Detailed Description

Weight oracle that returns weights computed via a function between node descriptors of a unipartite graph.


Constructor & Destructor Documentation

FunctionOracle::FunctionOracle ( double **   X,
WeightFunction *   wf,
int   n,
int   d  
)
Parameters:
[in]Xmatrix (n x d) whose rows are node desciptors
[in]wfWeightFunction object that computes weights between nodes
[in]ntotal number of nodes
[in]ddimensionality of node descriptors (length of vectors)

Member Function Documentation

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

returns the weight between the row'th and col'th nodes

Parameters:
[in]rowrow or id of first node
[in]colcol or id of second node
Returns:
weight of edge between first and second node

Reimplemented from WeightOracle.

int FunctionOracle::getSize (  ) [virtual]

returns the number of nodes

Returns:
total number of nodes

Reimplemented from WeightOracle.


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