GUIStructure.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) 2008 Soeren Sonnenburg
00008  * Copyright (C) 2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #include <shogun/ui/SGInterface.h>
00012 #include <shogun/ui/GUIStructure.h>
00013 
00014 #include <shogun/lib/config.h>
00015 #include <shogun/io/SGIO.h>
00016 #include <shogun/structure/Plif.h>
00017 
00018 using namespace shogun;
00019 
00020 CGUIStructure::CGUIStructure(CSGInterface* ui_)
00021 : ui(ui_), m_dp(NULL), m_feature_matrix(NULL),
00022   m_feature_matrix_sparse1(NULL), m_feature_matrix_sparse2(NULL),
00023   m_feature_dims(NULL), m_num_positions(0), m_all_positions(0),
00024   m_content_svm_weights(0), m_num_svm_weights(0),
00025   m_orf_info(NULL), m_use_orf(true), m_mod_words(NULL)
00026 {
00027   m_plif_matrix=new CPlifMatrix();
00028   SG_REF(m_plif_matrix);
00029 }
00030 
00031 CGUIStructure::~CGUIStructure()
00032 {
00033     SG_UNREF(m_plif_matrix);
00034 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation