Skip to content

Commit

Permalink
Removes the rest of log_sigma_rec*
Browse files Browse the repository at this point in the history
  • Loading branch information
kellijohnson-NOAA committed Sep 26, 2024
1 parent 24fb9df commit aa8ed94
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions inst/include/interface/rcpp/rcpp_objects/rcpp_recruitment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class BevertonHoltRecruitmentInterface : public RecruitmentInterfaceBase {

double estimated_logit_steep; /**< estimated steepness or the productivity of the stock*/
double estimated_log_rzero; /**< estimated recruitment at unfished biomass */
double estimated_log_sigma_recruit; /**< estimated log of the stock recruit standard deviation */
Rcpp::NumericVector estimated_log_devs; /**< estimated log recruitment deviations*/

BevertonHoltRecruitmentInterface() : RecruitmentInterfaceBase() {}
Expand Down Expand Up @@ -136,15 +135,6 @@ class BevertonHoltRecruitmentInterface : public RecruitmentInterfaceBase {
}
}

for (size_t i = 0; i < this->log_sigma_recruit.size(); i++) {
if (log_sigma_recruit[i].estimated_m) {
this->log_sigma_recruit[i].estimated_value_m = recr->log_sigma_recruit[i];
} else {
this->log_sigma_recruit[i].estimated_value_m = this->log_sigma_recruit[i].value_m;
}

}

for (size_t i = 0; i < this->estimated_log_devs.size(); i++) {
if (this->log_devs[i].estimated_m) {
this->log_devs[i].estimated_value_m = recr->log_recruit_devs[i];
Expand Down Expand Up @@ -177,12 +167,6 @@ class BevertonHoltRecruitmentInterface : public RecruitmentInterfaceBase {
ss << " \"type\": \"vector\",\n";
ss << " \"values\":" << this->log_rzero << ",\n },\n";

ss << " \"parameter\": {\n";
ss << " \"name\": \"log_sigma_recruit\",\n";
ss << " \"id\":" << this->log_sigma_recruit.id_m << ",\n";
ss << " \"type\": \"vector\",\n";
ss << " \"values\":" << this->log_sigma_recruit << ",\n },\n";

ss << " \"parameter\": {\n";
ss << " \"name\": \"log_devs\",\n";
ss << " \"id\":" << this->log_devs.id_m << ",\n";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ Type objective_function<Type>::operator()(){
std::make_shared<fims_popdy::SRBevertonHolt<Type> >();
rec->rzero = R0;
rec->steep = h;
rec->log_sigma_recruit = logR_sd;
/*the log_recruit_dev vector does not include a value for year == 0
and is of length nyears - 1 where the first position of the vector
corresponds to the second year of the time series.*/
Expand Down

0 comments on commit aa8ed94

Please sign in to comment.