Commit 805e8bae by Ismael

small refactor

parent ac3ec2de
...@@ -42,17 +42,17 @@ struct LeastSq { ...@@ -42,17 +42,17 @@ struct LeastSq {
double coef; double coef;
double rms; double rms;
benchmark::BigO complexity; BigO complexity;
}; };
// Function to return an string for the calculated complexity // Function to return an string for the calculated complexity
std::string GetBigOString(benchmark::BigO complexity); std::string GetBigOString(BigO complexity);
// Find the coefficient for the high-order term in the running time, by // Find the coefficient for the high-order term in the running time, by
// minimizing the sum of squares of relative error. // minimizing the sum of squares of relative error.
LeastSq MinimalLeastSq(const std::vector<int>& n, LeastSq MinimalLeastSq(const std::vector<int>& n,
const std::vector<double>& time, const std::vector<double>& time,
const benchmark::BigO complexity = oAuto); const BigO complexity = oAuto);
} // end namespace benchmark } // end namespace benchmark
#endif // COMPLEXITY_H_ #endif // COMPLEXITY_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment