MCPcopy Create free account
hub / github.com/Kitware/TeleSculptor / LogarithmicScaleAlgorithm

Method LogarithmicScaleAlgorithm

gui/MatchMatrixAlgorithms.cxx:84–89  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

82
83//-----------------------------------------------------------------------------
84LogarithmicScaleAlgorithm::LogarithmicScaleAlgorithm(
85 double maxRawValue, double rangeScale)
86 : preScale(rangeScale),
87 postScale(1.0 / log((maxRawValue * rangeScale) + 1.0))
88{
89}
90
91//-----------------------------------------------------------------------------
92double LogarithmicScaleAlgorithm::operator()(double rawValue) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected