00001
00002
00003
00004
00005
00006
00007 #include "ExportAlignLinear.h"
00008 #include "ExportAlignLog.h"
00009 #include <qmath.h>
00010
00011 ExportAlignLog::ExportAlignLog(double xMin,
00012 double xMax)
00013 {
00014
00015 double xMinLog = log10 (xMin);
00016 double xMaxLog = log10 (xMax);
00017
00018 ExportAlignLinear alignLinear (xMinLog,
00019 xMaxLog);
00020
00021
00022 m_firstSimplestNumber = qPow (10.0, alignLinear.firstSimplestNumber());
00023 }
00024
00025 double ExportAlignLog::firstSimplestNumber () const
00026 {
00027 return m_firstSimplestNumber;
00028 }
00029
00030 double ExportAlignLog::log10 (double in) const
00031 {
00032 return qLn (in) / qLn (10.0);
00033 }