treebolic.core
Class XMath

java.lang.Object
  extended by treebolic.core.XMath

public class XMath
extends java.lang.Object

Encapsulation of some hyperbolic computations or conversions

Author:
Bernard Bou

Constructor Summary
XMath()
           
 
Method Summary
static double atanh(double x)
          Hyperbolic arc tangence
static Complex e2h(Complex e)
          Map Euclidian space to Hyperbolic space
static double e2h(double e)
          Map Euclidian distance to Hyperbolic space
static Complex h2e(Complex h)
          Map Hyperbolic space to Euclidian space
static double h2e(double h)
          Map Hyperbolic distance to Euclidian space
static double tanh(double x)
          Hyperbolic tangence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMath

public XMath()
Method Detail

e2h

public static double e2h(double e)
Map Euclidian distance to Hyperbolic space

Parameters:
e - Euclidian distance
Returns:
Hyperbolic distance

h2e

public static double h2e(double h)
Map Hyperbolic distance to Euclidian space

Parameters:
h - Hyperbolic distance
Returns:
Euclidian distance

e2h

public static Complex e2h(Complex e)
Map Euclidian space to Hyperbolic space

Parameters:
e - point in Euclidian space
Returns:
this point mapped to Hyperbolic space

h2e

public static Complex h2e(Complex h)
Map Hyperbolic space to Euclidian space

Parameters:
h - point in Hyperbolic space
Returns:
this point mapped to Euclidian space

tanh

public static double tanh(double x)
Hyperbolic tangence

Parameters:
x - input
Returns:
hyperbolic tangence of x

atanh

public static double atanh(double x)
Hyperbolic arc tangence

Parameters:
x - input
Returns:
hyperbolic atan