Another compile error fix.
This commit is contained in:
+4
-2
@@ -30,11 +30,13 @@ double MixedLogitDCM<TableType>::GradientError_(
|
||||
|
||||
// Get the simulated choice probability gradient for the given
|
||||
// person.
|
||||
|
||||
arma::vec simulated_choice_probability_gradient;
|
||||
table_->simulated_choice_probability_gradient(
|
||||
person_index, &simulated_choice_probability_gradient);
|
||||
|
||||
// First form the $\Delta h_ii vector.
|
||||
arma::vec delta_hii;
|
||||
delta_hii.set_size();
|
||||
delta_hii.set_size(simulated_choice_probability_gradient.n_elem);
|
||||
|
||||
// Loop through each sample.
|
||||
const std::vector< arma::vec > &integration_samples =
|
||||
|
||||
+1
-1
@@ -209,7 +209,7 @@ class MixedLogitDCMSampling {
|
||||
*/
|
||||
void simulated_choice_probability_gradient(
|
||||
int person_index, arma::vec *gradient_out) const {
|
||||
simulated_choice_probability_gradient_[
|
||||
simulated_choice_probability_gradients_[
|
||||
person_index].sample_means(gradient_out);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user