ConstKernel.cpp

Go to the documentation of this file.
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-2008 Soeren Sonnenburg
00008  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #include "lib/common.h"
00012 #include "kernel/ConstKernel.h"
00013 #include "features/Features.h"
00014 #include "lib/io.h"
00015 
00016 CConstKernel::CConstKernel(float64_t c)
00017 : CKernel(0), const_value(c)
00018 {
00019 }
00020 
00021 CConstKernel::CConstKernel(CFeatures* l, CFeatures* r, float64_t c)
00022 : CKernel(0), const_value(c)
00023 {
00024     init(l, r);
00025 }
00026 
00027 CConstKernel::~CConstKernel()
00028 {
00029 }
00030 
00031 bool CConstKernel::init(CFeatures* l, CFeatures* r)
00032 {
00033     CKernel::init(l, r);
00034     return init_normalizer();
00035 }
00036 
00037 bool CConstKernel::load_init(FILE* src)
00038 {
00039     return false;
00040 }
00041 
00042 bool CConstKernel::save_init(FILE* dest)
00043 {
00044     return false;
00045 }

SHOGUN Machine Learning Toolbox - Documentation