table of contents
QwtScaleArithmetic(3) | Qwt User's Guide | QwtScaleArithmetic(3) |
NAME¶
QwtScaleArithmetic -
SYNOPSIS¶
#include <qwt_scale_engine.h>
Static Public Member Functions¶
static double ceil125 (double x)
static double ceilEps (double value, double intervalSize)
static int compareEps (double value1, double value2, double
intervalSize)
static double divideEps (double interval, double steps)
static double floor125 (double x)
static double floorEps (double value, double intervalSize)
Detailed Description¶
Arithmetic including a tolerance.
Member Function Documentation¶
double QwtScaleArithmetic::ceil125 (doublex) [static]¶
Find the smallest value out of {1,2,5}*10^n with an integer number n which is greater than or equal to x
Parameters:
double QwtScaleArithmetic::ceilEps (doublevalue, doubleintervalSize) [static]¶
Ceil a value, relative to an interval
Parameters:
intervalSize Interval size
See also:
int QwtScaleArithmetic::compareEps (doublevalue1, doublevalue2, doubleintervalSize) [static]¶
Compare 2 values, relative to an interval. Values are 'equal', when : $dot value2 - value1 <= abs(intervalSize * 10e^{-6})$
Parameters:
value2 Second value to compare
intervalSize interval size
Returns:
double QwtScaleArithmetic::divideEps (doubleintervalSize, doublenumSteps) [static]¶
Divide an interval into steps. $stepSize = (intervalSize - intervalSize * 10e^{-6}) / numSteps$.PP Parameters:
numSteps Number of steps
Returns:
double QwtScaleArithmetic::floor125 (doublex) [static]¶
Find the largest value out of {1,2,5}*10^n with an integer number n which is smaller than or equal to x. Parameters:
double QwtScaleArithmetic::floorEps (doublevalue, doubleintervalSize) [static]¶
Floor a value, relative to an interval
Parameters:
intervalSize Interval size
See also:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |