1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
class CAgent
{
public:
// declare some vectors
std::vector<double> theta;
std::vector<double> r;
std::vector<double> s_hat;
std::vector<double> mu;
// declaration continues...
// constructor
CAgent(double ini_theta, double rf, double ini_s, double mu0, double alpha, double beta, double delta, double w, double c, double eta, double D, double F):
theta(1, ini_theta), r(1, rf), s_hat(1, ini_s), mu(1, mu0+alpha*pow(ini_s, beta)), p(1, 1+mu[0]*(r[0]+delta+w/theta[0]+c/eta)), d(1, ini_s* D/p[0]),Y_hat(1,ini_s*D/theta[0])
{};
};
|