Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

qwt_math.cpp File Reference

#include "qwt_math.h"

Go to the source code of this file.

Functions

double qwtGetMin (double *array, int size)
double qwtGetMax (double *array, int size)
double qwtCeil125 (double x)
double qwtFloor125 (double x)
int qwtChkMono (double *array, int size)
void qwtTwistArray (double *array, int size)
void qwtLinSpace (double *array, int size, double xmin, double xmax)
void qwtLogSpace (double *array, int size, double xmin, double xmax)


Function Documentation

double qwtCeil125 double  x  ) 
 

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:
x Input value

Definition at line 56 of file qwt_math.cpp.

Referenced by QwtScaleDiv::buildLinDiv(), QwtAutoScale::buildLinScale(), and QwtScaleDiv::buildLogDiv().

int qwtChkMono double *  array,
int  size
 

Checks if an array is a strictly monotonic sequence.

Parameters:
array Pointer to an array
size Size of the array
Returns:
0
sequence is not strictly monotonic
1
sequence is strictly monotonically increasing
-1
sequence is strictly monotonically decreasing

Definition at line 119 of file qwt_math.cpp.

References qwtSign().

Referenced by QwtCurve::drawSpline().

double qwtFloor125 double  x  ) 
 

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:
x Input value

Definition at line 85 of file qwt_math.cpp.

double qwtGetMax double *  array,
int  size
 

Find the largest value in an array.

Parameters:
array Pointer to an array
size Array size

Definition at line 37 of file qwt_math.cpp.

References qwtMax.

Referenced by QwtCurve::drawSpline().

double qwtGetMin double *  array,
int  size
 

Find the smallest value in an array.

Parameters:
array Pointer to an array
size Array size

Definition at line 19 of file qwt_math.cpp.

References qwtMin.

Referenced by QwtCurve::drawSpline().

void qwtLinSpace double *  array,
int  size,
double  xmin,
double  xmax
 

Create an array of equally spaced values.

Parameters:
array Where to put the values
size Size of the array
xmin Value associated with index 0
xmax Value associated with index (size-1)

Definition at line 161 of file qwt_math.cpp.

Referenced by QwtScaleDiv::buildLinDiv().

void qwtLogSpace double *  array,
int  size,
double  xmin,
double  xmax
 

Create an array of logarithmically equally spaced values.

Parameters:
array Where to put the values
size Size of the array
xmin Value associated with index 0
xmax Value associated with index (size-1)

Definition at line 189 of file qwt_math.cpp.

Referenced by QwtScaleDiv::buildLogDiv().

void qwtTwistArray double *  array,
int  size
 

Invert the order of array elements.

Parameters:
array Pointer to an array
size Size of the array

Definition at line 141 of file qwt_math.cpp.

Referenced by QwtCurve::drawSpline(), and QwtScaleDiv::rebuild().


Generated on Fri Nov 7 14:11:46 2003 for Qwt Developer's Guide by doxygen 1.3.2