changed params_r form std::vector to Eigen::Vector