slib.sml.sm.core.utils
Class MathSML

java.lang.Object
  extended by slib.sml.sm.core.utils.MathSML

public class MathSML
extends Object

Class used to define some utility method for mathematical treatments.

Author:
Harispe Sébastien

Constructor Summary
MathSML()
           
 
Method Summary
static double log(double value, Double base)
          Compute the logarithm of the given value considering the specified log base.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathSML

public MathSML()
Method Detail

log

public static double log(double value,
                         Double base)
Compute the logarithm of the given value considering the specified log base. If the log base is set to null Math.log is computed.

Parameters:
value - the log value to compute
base - the log base to consider
Returns:
the logarithm of the value at the given base.


Copyright © 2013. All Rights Reserved.