00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_RBF_H
00020 #define MARSYAS_RBF_H
00021
00022 #include "MarSystem.h"
00023
00024 namespace Marsyas
00025 {
00036 class RBF: public MarSystem
00037 {
00038 private:
00039 std::string RBFtype_;
00040 MarControlPtr ctrl_RBFtype_;
00041 MarControlPtr ctrl_Beta_;
00042 MarControlPtr ctrl_symmetricIn_;
00043
00044 mrs_real (RBF::*RBFfunc_)(const mrs_real) const;
00045 mrs_real GaussianRBF(const mrs_real val) const;
00046 mrs_real MultiquadraticRBF(const mrs_real val) const;
00047 mrs_real ThinPlateSplineRBF(const mrs_real val) const;
00048
00049 void addControls();
00050 void myUpdate(MarControlPtr sender);
00051
00052 public:
00053 RBF(std::string name);
00054 RBF(const RBF& a);
00055 ~RBF();
00056 MarSystem* clone() const;
00057
00058 void myProcess(realvec& in, realvec& out);
00059 };
00060
00061 }
00062
00063 #endif
00064
00065
00066