alun.genepi
Class GenotypePrior

java.lang.Object
  extended by alun.genepi.GeneticFunction
      extended by alun.genepi.GenotypePrior
All Implemented Interfaces:
Function
Direct Known Subclasses:
UnorderedPrior

public class GenotypePrior
extends GeneticFunction

A function that returns the prior probability of the genotype as the product of the priors for the paternal and maternal alleles.


Constructor Summary
GenotypePrior(Genotype gt, double[] allelefreqs)
           
 
Method Summary
 double getValue()
          Returns the current value of the Function.
 java.lang.String toString()
           
 
Methods inherited from class alun.genepi.GeneticFunction
getVariables
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenotypePrior

public GenotypePrior(Genotype gt,
                     double[] allelefreqs)
Method Detail

getValue

public double getValue()
Description copied from interface: Function
Returns the current value of the Function.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object