org.biojava.bio.dp
Class ScoreType.Probability

java.lang.Object
  extended byorg.biojava.bio.dp.ScoreType.Probability
All Implemented Interfaces:
ScoreType
Enclosing class:
ScoreType

public static class ScoreType.Probability
extends java.lang.Object
implements ScoreType

In this class, calculateScore returns the probability of a Symbol being emitted.

Author:
Matthew Pocock

Nested Class Summary
 
Nested classes inherited from class org.biojava.bio.dp.ScoreType
ScoreType.NullModel, ScoreType.Odds, ScoreType.Probability
 
Field Summary
 
Fields inherited from interface org.biojava.bio.dp.ScoreType
NULL_MODEL, ODDS, PROBABILITY
 
Constructor Summary
ScoreType.Probability()
           
 
Method Summary
 double calculateScore(Distribution dist, Symbol sym)
          Calculates the score associated with a distribution and a symbol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreType.Probability

public ScoreType.Probability()
Method Detail

calculateScore

public double calculateScore(Distribution dist,
                             Symbol sym)
                      throws IllegalSymbolException
Description copied from interface: ScoreType
Calculates the score associated with a distribution and a symbol.

Specified by:
calculateScore in interface ScoreType
Throws:
IllegalSymbolException