- Timestamp:
- 06/17/09 23:54:06 (16 years ago)
- Location:
- tests
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/merger_2d_test.cpp
r278 r381 42 42 Grid.set_submatrix ( 1,0, kron(ones(1,Npoints), y_grid) ); 43 43 44 merger M ( A );44 merger_mix M ( A ); 45 45 enorm<fsqmat> g0; g0.set_rv(xy); 46 46 g0.set_parameters(vec("1 1"),mat("10 0; 0 10")); 47 47 48 M.set_parameters(1e8,400,1); 49 M.merge(&g0); 48 M.set_parameters(1); 49 M.set_method(LOGNORMAL,1e8); 50 M.set_support(g0,400); 51 M.merge(); 50 52 51 53 MixEF &MM = M._Mix(); -
tests/merger_iter_test.cpp
r278 r381 44 44 Grid.set_submatrix ( 1,0, kron(ones(1,Npoints), y_grid) ); 45 45 46 merger M ( A );46 merger_mix M ( A ); 47 47 enorm<fsqmat> g0; g0.set_rv(xy); 48 48 g0.set_parameters(vec("4 4"),mat("1 0; 0 1")); 49 49 50 M.set_parameters(1.2,400,5); 51 M.merge(&g0); 50 M.set_parameters(5); 51 M.set_method(LOGNORMAL,1.2); 52 M.set_support(g0,400); 53 M.merge(); 52 54 53 55 MixEF &MM = M._Mix(); -
tests/merger_test.cpp
r278 r381 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 }