Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ExportAlignLog Class Reference

Pick first simplest x value between specified min and max, for log scaling. More...

#include <ExportAlignLog.h>

Public Member Functions

 ExportAlignLog (double xMin, double xMax)
 Single constructor.
 
double firstSimplestNumber () const
 Result.
 

Detailed Description

Pick first simplest x value between specified min and max, for log scaling.

A simplest value is defined here as one having the smallest number of significant digits when log value is taken, and is used for aligning periodic values on simple numbers. Examples:

  1. 0.9 to 2, result is 1 which is 10^0
  2. 1.1 to 9, result is sqrt(10) which is midway between 1 and 10 in log scale, and equal to 10^0.5
  3. 9.81 to 9.93, result is 10^0.992 since 9.81=10^0.99166 and 9.93=10^0.9969

Definition at line 17 of file ExportAlignLog.h.

Constructor & Destructor Documentation

◆ ExportAlignLog()

ExportAlignLog::ExportAlignLog ( double  xMin,
double  xMax 
)

Single constructor.

Definition at line 11 of file ExportAlignLog.cpp.

Member Function Documentation

◆ firstSimplestNumber()

double ExportAlignLog::firstSimplestNumber ( ) const

Result.

Definition at line 25 of file ExportAlignLog.cpp.


The documentation for this class was generated from the following files: