org.jasen.interfaces
Interface ProbabilityCalculator

All Known Implementing Classes:
AverageCalculator, CompoundCalculator

public interface ProbabilityCalculator

Used to calculate the ultimate combined probability of a discrete set of probabilities provided.

Author:
Jason Polites

Method Summary
 double calculate(double[] probabilities, int start, int end)
          Calculates the combined probability of the set of probabilities passed
 

Method Detail

calculate

public double calculate(double[] probabilities,
                        int start,
                        int end)
                 throws JasenException
Calculates the combined probability of the set of probabilities passed

Parameters:
probabilities - The probability set
start - The start index in the set to be used
end - The end index in the set to be used
Returns:
A single primitive double between 0.0 and 1.0
Throws:
JasenException