00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 1999-2009 Soeren Sonnenburg 00008 * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #include "lib/config.h" 00012 00013 #include "lib/common.h" 00014 #include "kernel/DiagKernel.h" 00015 #include "lib/io.h" 00016 00017 using namespace shogun; 00018 00019 CDiagKernel::CDiagKernel(int32_t size, float64_t d) 00020 : CKernel(size), diag(d) 00021 { 00022 } 00023 00024 CDiagKernel::CDiagKernel(CFeatures* l, CFeatures* r, float64_t d) 00025 : CKernel(10), diag(d) 00026 { 00027 init(l, r); 00028 } 00029 00030 CDiagKernel::~CDiagKernel() 00031 { 00032 }