]> Creatis software - cpPlugins.git/blob - lib/cpExtensions/Algorithms/KalmanConstantFilter.cxx
yet another refactoring
[cpPlugins.git] / lib / cpExtensions / Algorithms / KalmanConstantFilter.cxx
1 // -------------------------------------------------------------------------
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // -------------------------------------------------------------------------
4
5 #include <cpExtensions/Algorithms/KalmanConstantFilter.h>
6
7 // -------------------------------------------------------------------------
8 template< typename T >
9 void cpExtensions::Algorithms::KalmanConstantFilter< T >::
10 Configure( unsigned int m )
11 {
12   this->Superclass::Configure( m, 1, m );
13 }
14
15 // -------------------------------------------------------------------------
16 template< typename T >
17 void cpExtensions::Algorithms::KalmanConstantFilter< T >::
18 Initialize( )
19 {
20   this->Superclass::Initialize( );
21
22   this->m_A.set_identity( );
23   this->m_B.fill( TScalar( 0 ) );
24   this->m_H.set_identity( );
25 }
26
27 // -------------------------------------------------------------------------
28 template< typename T >
29 cpExtensions::Algorithms::KalmanConstantFilter< T >::
30 KalmanConstantFilter( )
31   : Superclass( )
32 {
33   this->Configure( 1 );
34 }
35
36 // -------------------------------------------------------------------------
37 template< typename T >
38 cpExtensions::Algorithms::KalmanConstantFilter< T >::
39 ~KalmanConstantFilter( )
40 {
41 }
42
43 // -------------------------------------------------------------------------
44 // Explicit instantiations
45
46 template class cpExtensions::Algorithms::KalmanConstantFilter< float >;
47 template class cpExtensions::Algorithms::KalmanConstantFilter< double >;
48
49 // eof - $RCSfile$