Changeset 134

Show
Ignore:
Timestamp:
07/07/08 19:45:52 (17 years ago)
Author:
smidl
Message:

zmeny v ARX

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r132 r134  
    5959# the project's entire directory structure. 
    6060add_subdirectory (bdm) 
    61 #add_subdirectory (tests) 
     61add_subdirectory (tests) 
    6262add_subdirectory (pmsm) 
  • bdm/estim/arx.h

    r115 r134  
    5151        //! Full constructor 
    5252        ARX (RV &rv, mat &V0, double &nu0, double frg0=1.0) : BM(rv),est(rv,V0,nu0), V(est._V()), nu(est._nu()), frg(frg0){last_lognc=est.lognc();tll=0.0;}; 
     53        void set_parameters(mat &V0, double &nu0){est._V()=V0;est._nu()=nu0;last_lognc=est.lognc();tll=0.0;} 
     54        void get_parameters(mat &V0, double &nu0){V0=est._V().to_mat(); nu0=est._nu();} 
    5355        //! Here \f$dt = [y_t psi_t] \f$. 
    5456        void bayes ( const vec &dt ); 
  • tests/CMakeLists.txt

    r132 r134  
    3636target_link_libraries (struct_test itpp) 
    3737 
     38add_executable (linefit2_c linefit2_c.cpp) 
     39target_link_libraries (linefit2_c ${BdmLibs}) 
     40 
    3841add_executable (test0 test0.cpp) 
    3942add_executable (testKF testKF.cpp) 
     
    4447add_executable (testKF_QR testKF_QR.cpp) 
    4548add_executable (testKF_QRexh testKF_QRexh.cpp) 
    46 add_executable (testUI testUI.cpp) 
     49#add_executable (testUI testUI.cpp) 
    4750 
    4851 
     
    5659target_link_libraries (testKF_QR ${BdmLibs}) 
    5760target_link_libraries (testKF_QRexh ${BdmLibs}) 
    58 target_link_libraries (testUI ${BdmLibs} ${XERCES_LIBRARIES}) 
     61#target_link_libraries (testUI ${BdmLibs} ${XERCES_LIBRARIES}) 
    5962 
    6063 
    6164# experimental lines building an XSD's hello example  
    6265 
    63 add_executable (test_xsd_hello test_xsd_hello.cxx hello-pskel.hxx hello-pskel.cxx) 
    64 target_link_libraries (test_xsd_hello ${BdmLibs} ${XERCES_LIBRARIES} ) 
    65 SET(XSD_ARGS "cxx-parser") 
    66 ADD_CUSTOM_COMMAND( 
    67    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.hxx ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.cxx 
    68    COMMAND ${XSD_EXECUTABLE} 
    69    ARGS ${XSD_ARGS} ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd 
    70    MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd 
    71 ) 
     66# add_executable (test_xsd_hello test_xsd_hello.cxx hello-pskel.hxx hello-pskel.cxx) 
     67# target_link_libraries (test_xsd_hello ${BdmLibs} ${XERCES_LIBRARIES} ) 
     68# SET(XSD_ARGS "cxx-parser") 
     69# ADD_CUSTOM_COMMAND( 
     70#    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.hxx ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.cxx 
     71#    COMMAND ${XSD_EXECUTABLE} 
     72#    ARGS ${XSD_ARGS} ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd 
     73#    MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd 
     74# ) 
     75#  
    7276 
    73