ToPS
|
00001 /* 00002 * TargetModel.hpp 00003 * 00004 * Copyright 2011 Andre Yoshiaki Kashiwabara <akashiwabara@usp.br> 00005 * Ígor Bonádio <ibonadio@ime.usp.br> 00006 * Vitor Onuchic <vitoronuchic@gmail.com> 00007 * Alan Mitchell Durham <aland@usp.br> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 3 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00022 * MA 02110-1301, USA. 00023 */ 00024 00025 #ifndef UniformGCModel_H 00026 #define UniformGCModel_H 00027 00028 #include "Sequence.hpp" 00029 #include "Alphabet.hpp" 00030 00031 #include "ProbabilisticModel.hpp" 00032 #include "FactorableModel.hpp" 00033 #include "UniformGCModelCreator.hpp" 00034 #include "util.hpp" 00035 #include <cstdarg> 00036 #include <vector> 00037 00038 namespace tops { 00039 00041 class UniformGCModel : public ProbabilisticModel 00042 { 00043 public: 00044 00045 UniformGCModel() { 00046 }; 00047 00048 virtual ~UniformGCModel() {} 00049 virtual void initialize (const ProbabilisticModelParameters & p ) ; 00050 virtual ProbabilisticModelParameters parameters() const; 00051 virtual std::string model_name() const { 00052 return "UniformGCModel"; 00053 } 00054 00056 virtual double evaluate(const Sequence & s, unsigned int begin, unsigned int end) const; 00057 00058 virtual ProbabilisticModelCreatorPtr getFactory () const{ 00059 return UniformGCModelCreatorPtr(new UniformGCModelCreator()); 00060 } 00061 00062 virtual std::string str() const; 00063 00064 00065 }; 00066 00067 typedef boost::shared_ptr<UniformGCModel> UniformGCModelPtr; 00068 } 00069 00070 00071 #endif