Engauge Digitizer  2
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.


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