Engauge Digitizer  2
Public Member Functions | List of all members
ExportAlignLinear Class Reference

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

#include <ExportAlignLinear.h>

Public Member Functions

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

Detailed Description

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

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

  1. 0.4 to 3.4, result is 1
  2. 110 to 1100, result is 200 (not 1000 although both have same number of significant digits)
  3. 112.123 to 122.456, result is 120

Definition at line 17 of file ExportAlignLinear.h.


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