org.jasen.util
Class MathUtils

java.lang.Object
  extended byorg.jasen.util.MathUtils

public class MathUtils
extends Object

General mathematics functions.

Author:
Jason Polites

Constructor Summary
MathUtils()
           
 
Method Summary
static double calculateCompoundProbability(double[] probabilities, int start, int end)
          Calculates the compound probability of all the probability values passed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathUtils

public MathUtils()
Method Detail

calculateCompoundProbability

public static double calculateCompoundProbability(double[] probabilities,
                                                  int start,
                                                  int end)
Calculates the compound probability of all the probability values passed.

Compound probability is defined by: ab...n / ab...n + (1-a)(1-b)...(1-n)

Parameters:
probabilities -
Returns:
The compound probability of the probabilities provided