|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.tostring0.AToString
com.rubecula.darwin.domain.genetics.Mortality_
com.rubecula.darwin.examples.travelingsalesman.Mortality_TS
public class Mortality_TS
| Field Summary | |
|---|---|
static double |
$InfantMortalityDefault
0.2 |
| Fields inherited from class com.rubecula.darwin.domain.genetics.Mortality_ |
|---|
LOG |
| Fields inherited from interface net.sf.tostring0.IToString |
|---|
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE |
| Constructor Summary | |
|---|---|
Mortality_TS(org.apache.commons.math.random.RandomGenerator random,
double infantMortality)
|
|
| Method Summary | |
|---|---|
double |
calculateMortality(int age,
double fitness,
double saturation)
Method to calculate the mortality for an organism as 1 less the simple product of viabilityFactor, fitness and sustainabilityIndex. |
| Methods inherited from class com.rubecula.darwin.domain.genetics.Mortality_ |
|---|
calculateAgeViabilityFactor, calculateViability, equals, getBias, getRandom, hashCode, isMarked, setBias |
| Methods inherited from class net.sf.tostring0.AToString |
|---|
toString, toString, toStringBrief, toStringId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final double $InfantMortalityDefault
| Constructor Detail |
|---|
public Mortality_TS(org.apache.commons.math.random.RandomGenerator random,
double infantMortality)
random - infantMortality - probability of infants dying immediately| Method Detail |
|---|
public double calculateMortality(int age,
double fitness,
double saturation)
calculateMortality in interface MortalitycalculateMortality in class Mortality_age - the age of the organism in generations.fitness - the fitness of the organism for an environment.saturation - a measure of the current population saturation (1 corresponds
to the ideal population supportable by the environment.
Mortality.calculateMortality(int,double,double)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||