backwardfilter.cpp
Go to the documentation of this file.
00001 // $Id: backwardfilter.cpp 6736 2006-12-22 11:24:42Z tdelaet $
00002 // Copyright (C) 2006  Tinne De Laet <first dot last at mech dot kuleuven dot be>
00003 //
00004 // This program is free software; you can redistribute it and/or modify
00005 // it under the terms of the GNU Lesser General Public License as published by
00006 // the Free Software Foundation; either version 2.1 of the License, or
00007 // (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017 //
00018 
00019 #include "backwardfilter.h"
00020 
00021 #define StateVar SVar
00022 
00023 // Constructor
00024 template<typename SVar>
00025 BackwardFilter<SVar>::BackwardFilter(Pdf<SVar>* prior)
00026   : _prior(prior),
00027     _timestep(0)
00028 {}
00029 
00030 template<typename SVar>
00031 BackwardFilter<SVar>::~BackwardFilter(){}
00032 
00033 template<typename SVar>
00034 BackwardFilter<SVar>::BackwardFilter(const BackwardFilter<SVar>& backwardfilter)
00035 {}
00036 
00037 template<typename SVar>  void
00038 BackwardFilter<SVar>::Reset(Pdf<SVar> * prior)
00039 {
00040   _prior = prior;
00041   _post = prior;
00042 }
00043 
00044 template<typename SVar> int
00045 BackwardFilter<SVar>::TimeStepGet() const
00046 {
00047   return _timestep;
00048 }
00049 
00050 template<typename SVar> bool
00051 BackwardFilter<SVar>::Update(SystemModel<SVar>* const sysmodel, const SVar& u, Pdf<SVar>* const filtered_post)
00052 {
00053   return this->UpdateInternal(sysmodel,u,filtered_post);
00054 }
00055 
00056 template<typename SVar> bool
00057 BackwardFilter<SVar>::Update(SystemModel<SVar>* const sysmodel, Pdf<SVar>* const filtered_post)
00058 {
00059   SVar u;
00060   return this->UpdateInternal(sysmodel,u,filtered_post);
00061 }
00062 
00063 template<typename SVar> Pdf<SVar> *
00064 BackwardFilter<SVar>::PostGet()
00065 {
00066   return _post;
00067 }


bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Feb 11 2019 03:45:12