Skip to content

Commit

Permalink
Prediction: lint fix in semantic lstm evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
kechxu committed May 12, 2020
1 parent c886401 commit 29c7693
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ bool SemanticLSTMEvaluator::Evaluate(Obstacle* obstacle_ptr,
rotation_matrix(1, 1) = std::cos(heading);

Eigen::Matrix2d cov_matrix;
cov_matrix = rotation_matrix * cov_matrix_r * (rotation_matrix.transpose());
cov_matrix = rotation_matrix * cov_matrix_r *
(rotation_matrix.transpose());
double sigma_x = std::sqrt(std::abs(cov_matrix(0, 0)));
double sigma_y = std::sqrt(std::abs(cov_matrix(1, 1)));
double corr = cov_matrix(0, 1) / (sigma_x + FLAGS_double_precision) /
Expand Down

0 comments on commit 29c7693

Please sign in to comment.