Explorar el Código

correct non-public inheritance for Kernels

Alexander Freytag hace 12 años
padre
commit
40abef7324
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      math/kernels/KernelEXPHIK.h
  2. 1 1
      math/kernels/KernelHIK.h
  3. 1 1
      math/kernels/genericKernel.h

+ 1 - 1
math/kernels/KernelEXPHIK.h

@@ -15,7 +15,7 @@
 namespace OBJREC {
 
 /** Interface for the generalized rbf kernel with HIK metric */
-class KernelEXPHIK : KernelHIK
+class KernelEXPHIK : public KernelHIK
 {
 
     protected:

+ 1 - 1
math/kernels/KernelHIK.h

@@ -14,7 +14,7 @@
 namespace OBJREC {
 
 /** Interface for the popular exponential mercer kernel / rbf kernel */
-class KernelHIK : ParameterizedKernel
+class KernelHIK : public ParameterizedKernel
 {
 
     protected:

+ 1 - 1
math/kernels/genericKernel.h

@@ -40,7 +40,7 @@ class GenericKernelSelection
         double alpha = conf->gD ( "Kernel","alpha",1.0 );
         double beta = conf->gD ( "Kernel","beta",1.0 );
         double gamma = conf->gD ( "Kernel","gamma",1.0 );
-        kernel = new KernelHIK ( gamma, alpha, beta );
+        kernel = new KernelEXPHIK ( gamma, alpha, beta );
       }      
       else
       {