t-eoNonUniform.cpp

00001 //-----------------------------------------------------------------------------
00002 // t-eoNonUniform.cc
00003 //-----------------------------------------------------------------------------
00004 
00005 #include <iostream>      
00006 #include <eo>
00007 
00008 //-----------------------------------------------------------------------------
00009 
00010 main()
00011 {
00012   eoNonUniform nu(1000);
00013 
00014   std::cout << "----------------------------------------------------------" << std::endl
00015        << "nu.step() = " << nu.step()
00016        << "\t nu.num_step() = " << nu.num_step() << std::endl
00017        << "----------------------------------------------------------" << std::endl;
00018   
00019   eoLinear l1(0, 1, nu), l2(1, 0, nu);
00020   eoNegExp2 n1(0.1, 8, nu), n2(0.75, 3, nu);
00021   
00022   for (; nu; ++nu)
00023     {      
00024       std::cout << nu.step() 
00025            << "\t" << l1() << "\t" << l2()
00026            << "\t" << n1() << "\t" << n2()  
00027            << std::endl;
00028     }
00029 }
00030 
00031 //-----------------------------------------------------------------------------

Generated on Thu Apr 19 11:02:30 2007 for EO by  doxygen 1.4.7