Skip to content

GetQ3() returns Q1() instead of Q3() in SVIn/pose_graph/src/utils/Statistics.cpp? #37

@daetz-coder

Description

@daetz-coder

Hi there,

I was reviewing the code in SVIn/pose_graph/src/utils/Statistics.cpp and noticed a potential inconsistency in the implementation of Statistics::GetQ3(size_t handle). Currently, the function is implemented as follows:

double Statistics::GetQ3(size_t handle) {
  std::lock_guard<std::mutex> lock(Instance().mutex_);
  return Instance().stats_collectors_[handle].Q1();
}

Shouldn’t GetQ3() be returning Q3() instead of Q1()? This seems like it might be a copy-paste error. Could you please confirm whether this is intentional or if it should be corrected to:

double Statistics::GetQ3(size_t handle) {
  std::lock_guard<std::mutex> lock(Instance().mutex_);
  return Instance().stats_collectors_[handle].Q3();
}

Thank you for your time and for maintaining this project!

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions