|
@@ -6,17 +6,10 @@
|
|
|
|
|
|
*/
|
|
|
|
|
|
-#include <iostream>
|
|
|
-
|
|
|
#include "KernelStd.h"
|
|
|
|
|
|
using namespace OBJREC;
|
|
|
|
|
|
-using namespace std;
|
|
|
-using namespace NICE;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
KernelStd::KernelStd() : Kernel(true)
|
|
|
{
|
|
|
}
|
|
@@ -27,11 +20,11 @@ KernelStd::~KernelStd()
|
|
|
|
|
|
double KernelStd::K (const NICE::Vector & x, const NICE::Vector & y) const
|
|
|
{
|
|
|
- if ( x.size() != y.size() )
|
|
|
- fthrow (Exception, "KernelStd::K: vectors must have the same dimension\n");
|
|
|
+ if ( x.size() != y.size() )
|
|
|
+ fthrow (NICE::Exception, "KernelStd::K: vectors must have the same dimension\n");
|
|
|
double sum = 0.0;
|
|
|
for ( int i = 0 ; i < (int)x.size() ; i++ )
|
|
|
- sum += x[i] * y[i];
|
|
|
+ sum += x[i] * y[i];
|
|
|
|
|
|
return sum;
|
|
|
}
|