00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef FUNCTIONORACLE_H_
00014 #define FUNCTIONORACLE_H_
00015
00016 #include "WeightOracle.h"
00017 #include "WeightFunction.h"
00018
00023 class FunctionOracle: public WeightOracle {
00024 public:
00031 FunctionOracle(double ** X, WeightFunction * wf, int n, int d);
00032 virtual ~FunctionOracle();
00033
00034 int getSize();
00035
00036 double computeWeight(int row, int col);
00037
00038 private:
00039 double ** data;
00040 int size;
00041 int dimension;
00042 WeightFunction * weightFunction;
00043
00044 bool selfLoops;
00045 };
00046
00047 #endif