|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pop.model.Population
A total population or a particular population group (such as an ethnic group). Consists of both male and female age cohorts, and associated fertility and mortality rates.
Cohort
,
Fertility
,
Mortality
Constructor Summary | |
Population()
Unavailable. |
|
Population(int[][] base_pop,
java.lang.String name,
Fertility fertility,
Mortality mortality)
Basic constructor. |
|
Population(PopulationSizes sizes,
java.lang.String name,
Fertility fertility,
Mortality mortality)
Alternate constructor takes a PopulationSizes object instead of an array of initial population sizes. |
Method Summary | |
int[][] |
all_sizes()
Returns 2-dimensional array of population sizes for the current year. |
int[][] |
deaths()
Returns 2-dimensional array of deaths for the current year. |
int |
female_births()
Returns number of female births for the current year. |
int[] |
female_deaths()
Returns age-array of female deaths for the current year. |
int[] |
female_sizes()
Returns age-array of female population sizes, current year. |
double |
fertility(int age)
Returns age-specific fertility rate. |
void |
increment(Migration migrants)
Increments this population one year. |
int |
male_births()
Returns number of male births for the current year. |
int[] |
male_deaths()
Returns age-array of male deaths for the current year. |
int[] |
male_sizes()
Returns age-array of male population sizes, current year. |
double |
mortality(int age,
int sex)
Returns age- and sex-specific mortality rate. |
java.lang.String |
name()
Returns name of this population. |
double |
proportion_female_births()
Returns proportion of total births resulting in female children. |
int |
size(int age,
int sex)
Returns age- and sex-specific current population size (excludes migration for current year). |
int |
total_births()
Returns total number of births for the current year. |
int |
total_deaths()
Returns sum of all female and male deaths. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Population(int[][] base_pop, java.lang.String name, Fertility fertility, Mortality mortality)
base_pop
- - 2-dimensional array of population
by sex (first dimension, with females
in the first row, males second row) and
age (second dimension) for year zero.name
- - label used to display results for
this population segment.fertility
- - reference to associated fertility object.mortality
- - reference to associated mortality object.public Population(PopulationSizes sizes, java.lang.String name, Fertility fertility, Mortality mortality)
initial_sizes
- - reference to PopulationSizes object.name
- - label used to display results for
this population segment.fertility
- - reference to associated fertility object.mortality
- - reference to associated mortality object.public Population()
Method Detail |
public int size(int age, int sex)
age
- - 0 to maximum cohort age.sex
- - FEMALE or MALE, static constant
from Statics.public int[] female_sizes()
public int[] male_sizes()
public int[][] all_sizes()
public double fertility(int age)
age
- - 0 to maximum cohort age.public double proportion_female_births()
public double mortality(int age, int sex)
age
- - 0 to maximum cohort age.sex
- - FEMALE or MALE, static constant
from Statics.public void increment(Migration migrants)
migrants
- - one year of migration, by age and sex.public int total_births()
public int female_births()
public int male_births()
public int[] female_deaths()
public int[] male_deaths()
public int[][] deaths()
public int total_deaths()
public java.lang.String name()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |