kao.math.Functions Class Reference

Class containing basic maths library functions. More...

List of all members.

Static Public Member Functions

static double[] max (double[] x)
 Find the max of array x.
static double sign (double x)
 Sign function.
static double calcMachineEpsilon ()
 Calculates the machine epsilon.
static double calcTol (Vector r1, Vector r2)

Detailed Description

Class containing basic maths library functions.

Author:
David Kao

Member Function Documentation

static double kao.math.Functions.calcMachineEpsilon (  )  [static]

Calculates the machine epsilon.

Returns the smallest value of eps such that 1.0 + eps > 1.0

Author:
David Kao
static double kao.math.Functions.calcTol ( Vector  r1,
Vector  r2 
) [static]

Calculate the average absolute difference between Vector r1 and Vector r2

Parameters:
r1 Vector r1
r2 Vector r2
Returns:
Average absolute difference
static double [] kao.math.Functions.max ( double[]  x  )  [static]

Find the max of array x.

Parameters:
x 
Returns:
[value, index] of maximum value
Author:
David Kao
static double kao.math.Functions.sign ( double  x  )  [static]

Sign function.

Return +1 if x > 0, -1 if x < 0 and 0 if x == 0.

Parameters:
x Value to test
Returns:
Sign function
Author:
David Kao

Generated on Wed Apr 21 22:01:41 2010 for kao-math by  doxygen 1.6.1