// Henon.cpp: implementation of the Henon class. // ////////////////////////////////////////////////////////////////////// //#include "" #include "Henon.h" #include "neural.h" //for myrand() #include //for debugging purposes! ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// Henon::Henon() { b=0.3; c=1.4; x=0.1; y=0.1; } Henon::Henon(long double in_b, long double in_c){ b=in_b; c=in_c; x=0.1; y=0.1; } Henon::Henon(long double x0,long double y0,long double in_b,long double in_c){ x=x0; y=y0; b=in_b; c=in_c; } long double inline Henon::henonx(long double x, long double y, long double b, long double c){ return (1-c*x*x+b*y); } long double inline Henon::henony(long double x){ return x; } void Henon::advance(){ tempx=henonx(x,y,b,c); tempy=henony(x); x=tempx; y=tempy; } //the obligatory overloaded operator Henon& Henon::operator=(Henon& in){ x=in.x; y=in.y; b=in.b; c=in.c; return *this; } void Henon::discard(){ int discards=400; for(int i=0;i