00001 /* 00002 * WeightFunction.h 00003 * 00004 * Created on: Dec 2, 2010 00005 * Author: bert 00006 * 00007 * WeightFunctions must have a method getWeight that returns the 00008 * weight between two node descriptor vectors. This is implemented as 00009 * an object superclass to allow for future weight functions that may 00010 * require state information, though the default weight functions need no state. 00011 */ 00012 00013 #ifndef WEIGHTFUNCTION_H_ 00014 #define WEIGHTFUNCTION_H_ 00015 00021 class WeightFunction { 00022 public: 00023 WeightFunction(); 00024 virtual ~WeightFunction(); 00025 00033 virtual double getWeight(double * x, double *y, int d); 00034 }; 00035 00036 #endif /* WEIGHTFUNCTION_H_ */