Changeset 384 for library/tests/merger_test.cpp
- Timestamp:
- 06/19/09 10:17:25 (16 years ago)
- Location:
- library/tests
- Files:
-
- 1 modified
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
library/tests/merger_test.cpp
r278 r384 1 1 2 #include <stat/libEF.h>3 #include <estim/merger.h>2 #include "stat/exp_family.h" 3 #include "stat/merger.h" 4 4 5 5 using namespace bdm; … … 34 34 35 35 vec l_f1=f1.evallog_m ( x_grid ); 36 37 36 vec l_f2=f2.evallog_m ( x_grid ); 38 37 mat lW ( 2,Npoints ); … … 40 39 lW.set_row ( 1, l_f2 ); 41 40 42 merger M ( A );41 merger_base M ( A ); 43 42 enorm<fsqmat> g0; g0.set_rv ( x ); 44 43 g0.set_parameters ( vec ( "0.0" ),mat ( "100.0" ) ); 45 44 46 M.set_parameters ( 1.2,200,3 ); 47 M.merge ( &g0 ); 45 M.set_method ( LOGNORMAL, 1.2 ); 46 M.set_support(g0,200); 47 M.merge (); 48 48 49 vec m2 = M. lognorm_merge( lW );50 vec mm2 = M.evallog_m ( x_grid );49 vec m2 = M.merge_points ( lW ); 50 // vec mm2 = M.evallog_m ( x_grid ); 51 51 52 52 it_file it ( "merger_test.it" ); … … 55 55 it << Name ( "lf2" ) << l_f2; 56 56 it << Name ( "m2" ) << m2; 57 it << Name ( "mm2" ) << mm2;57 // it << Name ( "mm2" ) << mm2; 58 58 }