Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.math
Class MathUtil

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.math.MathUtil

public class MathUtil
extends Object

A collection of math related utility functions.


Constructor Summary
MathUtil()
           
 
Method Summary
static double hypotenuse(double a, double b)
          Computes the square root of the sum of the squared arguments without under or overflow.
static double mahalanobisDistance(Matrix weightMatrix, Vector o1_minus_o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathUtil

public MathUtil()
Method Detail

hypotenuse

public static double hypotenuse(double a,
                                double b)
Computes the square root of the sum of the squared arguments without under or overflow.

Parameters:
a - first cathetus
b - second cathetus
Returns:
sqrt(a<sup>2</sup> + b<sup>2</sup>)

mahalanobisDistance

public static double mahalanobisDistance(Matrix weightMatrix,
                                         Vector o1_minus_o2)

Release 0.2.1 (2009-07-13_1605)