alun.mcld
Class Diplotypes

java.lang.Object
  extended by alun.mcld.PerfectHaplotypes
      extended by alun.mcld.ImperfectHaplotypes
          extended by alun.mcld.Diplotypes
All Implemented Interfaces:
DataHaplotypeSource, HaplotypeSource

public class Diplotypes
extends ImperfectHaplotypes


Constructor Summary
Diplotypes(BasicGeneticData dat, double errprob)
           
Diplotypes(BasicGeneticData dat, double errprob, int frst)
           
 
Method Summary
 boolean maximize(LDModel m)
           
 boolean update(LDModel m)
           
 boolean update(LDModel model, boolean sample)
           
 
Methods inherited from class alun.mcld.PerfectHaplotypes
getAllele, getHaplotype, getLoci, main, nAlleles, nHaplotypes, nLoci, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Diplotypes

public Diplotypes(BasicGeneticData dat,
                  double errprob)
           throws java.io.IOException
Throws:
java.io.IOException

Diplotypes

public Diplotypes(BasicGeneticData dat,
                  double errprob,
                  int frst)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

update

public boolean update(LDModel m)
Specified by:
update in interface HaplotypeSource
Overrides:
update in class PerfectHaplotypes

maximize

public boolean maximize(LDModel m)
Specified by:
maximize in interface HaplotypeSource
Overrides:
maximize in class PerfectHaplotypes

update

public boolean update(LDModel model,
                      boolean sample)