73 this =
this@kernels.BaseKernel;
103 function bool =
eq(B) {
104 bool =
eq@kernels.BaseKernel(A, B) && A.Gamma == B.Gamma;
109 copy =
clone@kernels.BaseKernel(
this, copy);
110 copy.Gamma= this.
Gamma;
131 n2sq = sum(y.*(
this.fG*y),1);
134 r = ((ones(n2,1)*n1sq)
" + ones(n1,1)*n2sq - 2*sx "*y);
167 #if 0 //mtoc++: 'set.Gamma'
168 function
Gamma(value) {
169 if ~isreal(value) || ~isscalar(value) || value <= 0
170 error(
" Only positive scalar values allowed for Gamma. ");
logical IsRBF
Flag that determines if the current kernel is a radial basis function, i.e. its evaluation is of the ...
double Gamma
Univariate scaling.
function copy = clone(copy)
The interface method with returns a copy of the current class instance.
virtual function phir = evaluateScalar(matrix< double > r)
Allows the evaluation of the function for scalar directly.
function K = evaluate(matrix< double > x,matrix< double > y)
Evaluates the rotation and translation invariant kernel.
function r = getSqDiffNorm(matrix< double > x,matrix< double > y)
Returns the weighted squared norm of the difference .
Abstract class for radial basis function / rotation- and translation invariant kernels.
Base class for all KerMor Kernels.