ppALIGN API documentation
src/posterprob.hpp
00001 /****************************************************************************** 00002 Copyright 2009 Stefan Wolfsheimer & Gregory Nuel. 00003 00004 This file is part of ppALIGN 00005 00006 ppALIGN is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 ppALIGN is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with ppALIGN; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 *******************************************************************************/ 00020 00021 #ifndef _POSTER_PROB_HPP_ 00022 #define _POSTER_PROB_HPP_ 00023 #include "partitionworkspace.hpp" 00024 00025 00056 class DriverPosterProb : public PartitionDriverBase 00057 { 00058 private: 00059 Align::iterator align_begin; 00060 Align::iterator align_end; 00061 Align::iterator next_pair; 00062 Align::iterator align_begin_local; 00063 Align::iterator align_end_local; 00064 double avg_prob; 00065 bool align_set; 00066 public: 00067 DriverPosterProb(); 00068 00083 void SetAlign(Align & a); 00084 00087 double GetAverage() { return avg_prob; } 00088 00089 virtual bool NeedForwardBackward() { return true; } 00090 virtual void OnForwardBackward(PartitionWorkspace::ForwardBackwardInfo & fb_info); 00091 virtual void AfterComputation(); 00092 }; 00093 00094 00095 #endif