#include #include using namespace itpp; //These lines are needed for use of cout and endl using std::cout; using std::endl; int main() { int i; RV th = RV ( "1 2","{a b }","1 1","0 0"); RV r = RV ( "2","{r }","2","0" ); dirfilelog L("exp/dirfile",10); int rid; int thid; rid=L.add(r,""); thid=L.add(th,"th"); L.init(); for (i=0; i<150; i++){ L.logit(rid,vec_2((double)i,(double)(i+1))); L.logit(thid,vec_2((double)(100-i),(double)(i-50))); L.step(); } L.step(true); }