Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea-Havron-NOAA committed Aug 2, 2024
1 parent f08cdbf commit 883d98a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions inst/include/distributions/functors/multinomial_lpmf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ namespace fims_distributions
containsNA = true;
break;
}
if(!containsNA){
size_t idx = (i * dims[1]) + j;
x_vector[j] = this->observed_values->at(i, j);
prob_vector[j] = this->expected_values[idx];

if(!containsNA){
size_t idx = (i * dims[1]) + j;
x_vector[j] = this->observed_values->at(i, j);
prob_vector[j] = this->expected_values[idx];
}
}

this->lpdf_vec[i] = dmultinom((vector<Type>)x_vector, (vector<Type>)prob_vector, true);
Expand Down

0 comments on commit 883d98a

Please sign in to comment.