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 * Copyright (C) 2012 Jacob Walker 00008 */ 00009 00010 #include <shogun/regression/gp/ZeroMean.h> 00011 00012 using namespace shogun; 00013 00014 CZeroMean::CZeroMean() : CMeanFunction() 00015 { 00016 00017 } 00018 00019 CZeroMean::~CZeroMean() 00020 { 00021 00022 } 00023 00024 SGVector<float64_t> CZeroMean::get_mean_vector(SGMatrix<float64_t>& data) 00025 { 00026 SGVector<float64_t> result(data.num_cols); 00027 00028 for (index_t i = 0; i < result.vlen; i++) 00029 result[i] = 0; 00030 00031 return result; 00032 } 00033