




0001 function rbfFun = rbfTypeToFunctor(rbfType, e) 0002 0003 if isa(rbfType, 'function_handle') 0004 rbfFun = rbfType; 0005 else 0006 switch lower(rbfType) 0007 case 'linear' 0008 rbfFun = @(x) linearRBF(x); 0009 case 'cubic' 0010 rbfFun = @(x) cubicRBF(x); 0011 case 'quintic' 0012 rbfFun = @(x) quinticRBF(x); 0013 case 'multiquadric' 0014 rbfFun = @(x) multiQuadricRBF(x, e); 0015 case 'inversemultiquadric' 0016 rbfFun = @(x) inverseMultiQuadricRBF(x, e); 0017 case 'thinplate' 0018 rbfFun = @(x) thinPlateSplineRBF(x); 0019 case 'tensionspline' 0020 rbfFun = @(x) tensionSplineRBF(x, e); 0021 case 'regularizedspline' 0022 rbfFun = @(x) regularizedSplineRBF(x, e); 0023 case 'green' 0024 rbfFun = @(x) greenRBF(x); 0025 case 'greenwithtension' 0026 rbfFun = @(x) greenWithTensionRBF(x, e); 0027 case 'greenregularizedwithtension' 0028 rbfFun = @(x) greenRegularizedWithTensionRBF(x, e); 0029 case 'gaussian' 0030 rbfFun = @(x) gaussianRBF(x, e); 0031 case 'wendland' 0032 rbfFun = @(x) wendlandCSRBF(x, e); 0033 otherwise 0034 error('Unknown RBFType'); 0035 end 0036 end