Public Member Functions

WeightFunction Class Reference

Weight function superclass Objects of this class contain a method that computes an edge weight given the node descriptors. More...

#include <WeightFunction.h>

Inheritance diagram for WeightFunction:
EuclideanDistance InnerProduct

List of all members.

Public Member Functions

virtual double  getWeight (double *x, double *y, int d)

Detailed Description

Weight function superclass Objects of this class contain a method that computes an edge weight given the node descriptors.


Member Function Documentation

double WeightFunction::getWeight ( double *   x,
double *   y,
int   d  
) [virtual]

returns the weight between nodes with descriptors x and y of dimensionality d

Parameters:
[in]xvector descriptor for first node
[in]yvector descriptor for second node
[in]ddimensionality of vector descriptors (length of vectors)
Returns:
weight between first and second nodes

Reimplemented in EuclideanDistance, and InnerProduct.


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