Weight oracle that returns weights computed via a function between node descriptors of a unipartite graph.
More...
#include <FunctionOracle.h>
List of all members.
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] | X | matrix (n x d) whose rows are node desciptors |
[in] | wf | WeightFunction object that computes weights between nodes |
[in] | n | total number of nodes |
[in] | d | dimensionality 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] | row | row or id of first node |
[in] | col | col 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: