MCPcopy Create free account
hub / github.com/chrxh/alien / getUpperBound

Method getUpperBound

source/Gui/StatisticsWindow.cpp:748–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748double StatisticsWindow::getUpperBound(double maxValue)
749{
750 if (_plotScale == PlotScale_Linear) {
751 return maxValue * 1.5;
752 }
753 if (_plotScale == PlotScale_Logarithmic) {
754 if (maxValue > 10) {
755 return maxValue * pow(maxValue, 0.5);
756 }
757 return maxValue * 1.5;
758 }
759 THROW_NOT_IMPLEMENTED();
760}
761
762namespace
763{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected