|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cfpm.caves.za.SouthAfricaModel.WHOLifeTable
class SouthAfricaModel.WHOLifeTable
This class represents a life table as produced by the WHO. See: http://www.who.int/whosis/database/life_tables/life_tables.cfm Only the column nqx (probability to die within the current age range) is needed. The class is used to determine deaths of agents in the model.
Field Summary | |
---|---|
(package private) int[] |
ageIntervals
|
(package private) double[] |
deathProbabilities
|
Constructor Summary | |
---|---|
SouthAfricaModel.WHOLifeTable(int[] ageIntervals,
double[] deathProbabilities)
|
Method Summary | |
---|---|
int |
findAgeInterval(int age)
returns the age interval into which the given age falls. |
int |
getAgeIntervalSize(int age)
returns the size of the age interval into which the given age falls |
double |
getDeathProbability(int age)
returns the death probability for the given age |
boolean |
isLowerBound(int age)
returns true if the given age is the lower bound of an age range, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int[] ageIntervals
double[] deathProbabilities
Constructor Detail |
---|
public SouthAfricaModel.WHOLifeTable(int[] ageIntervals, double[] deathProbabilities)
Method Detail |
---|
public double getDeathProbability(int age)
public int getAgeIntervalSize(int age)
public boolean isLowerBound(int age)
public int findAgeInterval(int age)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |