Commit 98f4f8ff authored by frey_m's avatar frey_m
Browse files

LatinHyperCube: Remove unnecessary computation

parent f230a218
......@@ -59,10 +59,7 @@ private:
if ( bin_m.size() + 1e4 < bin_m.capacity() )
bin_m.shrink_to_fit();
double high = (bin + 1) * binsize_m;
double low = bin * binsize_m;
return (high - low) * val + low;
return binsize_m * (val + bin);
}
void fillBins_m(std::size_t n) {
......
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