SHOGUN
v3.2.0
|
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) 2013 Roman Votyakov 00008 * Copyright (C) 2012 Jacob Walker 00009 */ 00010 00011 #include <shogun/machine/gp/ZeroMean.h> 00012 00013 using namespace shogun; 00014 00015 CZeroMean::CZeroMean() : CMeanFunction() 00016 { 00017 } 00018 00019 CZeroMean::~CZeroMean() 00020 { 00021 } 00022 00023 SGVector<float64_t> CZeroMean::get_mean_vector(const CFeatures* features) const 00024 { 00025 SGVector<float64_t> result(features->get_num_vectors()); 00026 result.zero(); 00027 return result; 00028 }