|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBion
The individual reactive biological thingy. Diploid hermaphrodite version, with one recombination modifier locus at the end of the chromosome. I have coded 4 different versions of Bion with different speed and flexibility tradeoffs:
Field Summary | |
private double |
benMutRate
|
private int |
chunks
|
int |
del
|
int |
delleft
|
private double |
delMutRate
|
int |
delright
|
private Deme |
deme
|
double |
fit
|
private boolean[] |
isHit
|
int |
lab
|
private long[] |
left
|
private double |
minRecRate
|
private double |
modRecRate
|
private int |
nAttribs
|
int |
rab
|
private MersenneTwisterFast |
rand
|
int |
rec
|
private int |
recloc
|
private long |
recMask
|
private long[] |
right
|
int |
tab
|
int |
taB
|
int |
tAb
|
int |
tAB
|
Constructor Summary | |
Bion(Deme deme)
|
Method Summary | |
private long[] |
getGamete(Bion bion)
Do recombination, and then mutation to generate a gamete. |
int |
getNumEvents(int n,
double p)
Choose the appropriate means, pre-computed or not, of generating the number of random events and then return the appropriate value. |
void |
getRec()
Calculates how many recombination modifiers are present. |
void |
init()
Build initial left and right chromosomes and set info fields. |
Bion |
mateWith(Bion other)
grab a gamete from each parent, and set info fields |
private void |
mutateBen(long[] chromo,
double mutRate)
uses the global (all-loci) benMutRate |
private void |
mutateDel(long[] chromo,
double mutRate)
uses the global (all-loci) delMutRate |
int |
poisson(double lambda)
found Poisson recipe somewhere: [Calculate exponential.] Set p = exp(-mu), n = 0, q = 1. |
private void |
sumAB()
Calculate bits of information having to do with allele correlation and match-up. |
private void |
sumDel()
Calculate number of deleterious alleles on each chromosome, and the total. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final int nAttribs
private final int chunks
private long[] left
private long[] right
private final int recloc
private final long recMask
private final double delMutRate
private final double benMutRate
private final double minRecRate
private final double modRecRate
public double fit
public int del
public int rec
public int delleft
public int delright
public int tAB
public int tAb
public int taB
public int tab
public int lab
public int rab
private Deme deme
private final MersenneTwisterFast rand
private boolean[] isHit
Constructor Detail |
public Bion(Deme deme)
Method Detail |
public void init()
public int getNumEvents(int n, double p)
public int poisson(double lambda)
private long[] getGamete(Bion bion)
private void mutateDel(long[] chromo, double mutRate)
private void mutateBen(long[] chromo, double mutRate)
public Bion mateWith(Bion other)
public java.lang.String toString()
private void sumDel()
private void sumAB()
public void getRec()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |