Commit 340fe557 by Ismael

indent

parent 290ac9ee
...@@ -25,19 +25,19 @@ namespace benchmark { ...@@ -25,19 +25,19 @@ namespace benchmark {
// Internal function to calculate the different scalability forms // Internal function to calculate the different scalability forms
std::function<double(int)> FittingCurve(BigO complexity) { std::function<double(int)> FittingCurve(BigO complexity) {
switch (complexity) { switch (complexity) {
case oN: case oN:
return [](int n) {return n; }; return [](int n) {return n; };
case oNSquared: case oNSquared:
return [](int n) {return n*n; }; return [](int n) {return n*n; };
case oNCubed: case oNCubed:
return [](int n) {return n*n*n; }; return [](int n) {return n*n*n; };
case oLogN: case oLogN:
return [](int n) {return log2(n); }; return [](int n) {return log2(n); };
case oNLogN: case oNLogN:
return [](int n) {return n * log2(n); }; return [](int n) {return n * log2(n); };
case o1: case o1:
default: default:
return [](int) {return 1; }; return [](int) {return 1; };
} }
} }
......
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