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) 2011-2012 Heiko Strathmann 00008 * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society 00009 */ 00010 00011 #include <shogun/features/Subset.h> 00012 #include <shogun/base/Parameter.h> 00013 00014 using namespace shogun; 00015 00016 CSubset::CSubset() 00017 { 00018 init(); 00019 } 00020 00021 CSubset::CSubset(SGVector<index_t> subset_idx) 00022 { 00023 init(); 00024 00025 m_subset_idx=subset_idx; 00026 } 00027 00028 CSubset::~CSubset() { 00029 } 00030 00031 void CSubset::init() { 00032 SG_ADD((SGVector<index_t>*)&m_subset_idx, "subset", 00033 "Vector of subset indices", MS_NOT_AVAILABLE); 00034 00035 m_subset_idx=SGVector<index_t>(); 00036 }