alun.mcld
Class PerfectHaplotypes

java.lang.Object
  extended by alun.mcld.PerfectHaplotypes
All Implemented Interfaces:
DataHaplotypeSource, HaplotypeSource
Direct Known Subclasses:
ImperfectHaplotypes, TransposedPerfectHaplotypes

public class PerfectHaplotypes
extends java.lang.Object
implements DataHaplotypeSource


Constructor Summary
PerfectHaplotypes()
           
PerfectHaplotypes(InputFormatter f)
           
 
Method Summary
 int getAllele(int i, int j)
           
 int[] getHaplotype(int i)
           
 java.util.Collection<Locus> getLoci()
           
static void main(java.lang.String[] args)
          Test main.
 boolean maximize(LDModel m)
           
 int nAlleles(int i)
           
 int nHaplotypes()
           
 int nLoci()
           
 java.lang.String toString()
           
 boolean update(LDModel m)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerfectHaplotypes

public PerfectHaplotypes()

PerfectHaplotypes

public PerfectHaplotypes(InputFormatter f)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getLoci

public java.util.Collection<Locus> getLoci()
Specified by:
getLoci in interface HaplotypeSource

nHaplotypes

public int nHaplotypes()
Specified by:
nHaplotypes in interface DataHaplotypeSource

nLoci

public int nLoci()
Specified by:
nLoci in interface HaplotypeSource

nAlleles

public int nAlleles(int i)
Specified by:
nAlleles in interface HaplotypeSource

getHaplotype

public int[] getHaplotype(int i)
Specified by:
getHaplotype in interface DataHaplotypeSource

getAllele

public int getAllele(int i,
                     int j)
Specified by:
getAllele in interface DataHaplotypeSource

update

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

maximize

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

toString

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

main

public static void main(java.lang.String[] args)
Test main.