p3j.simulation.calculation.deterministic
Class MigPopulation

java.lang.Object
  extended by p3j.simulation.calculation.deterministic.AbstractPopulation<MigParameters,BasicResults>
      extended by p3j.simulation.calculation.deterministic.MigPopulation

public class MigPopulation
extends AbstractPopulation<MigParameters,BasicResults>

Calculation regarding the population of migrants. One method has seven parameters and therefore does not confirm to ESCA-JAVA0138. Created on July 22, 2006

Author:
Christina Bohk, Roland Ewald

Field Summary
 
Fields inherited from class p3j.simulation.calculation.deterministic.AbstractPopulation
FORCE_MORT_INTERVAL
 
Constructor Summary
MigPopulation()
           
 
Method Summary
protected static void calculateMeanAndEndPopulation(Matrix2D meanPopulation, Matrix2D endPopulation, Matrix2D migrants, Matrix2D surviveProbO100, Matrix2D p1, Matrix2D p2, int numberOfYears, int maximumAge)
          Calculates mean and end populations.
 BasicResults calculatePopulation(MigParameters parameters)
          Calculate population.
 
Methods inherited from class p3j.simulation.calculation.deterministic.AbstractPopulation
calculateByMult, calculateByMultMin1, calculateRestOfMeanPopulation, calculateSurvivalProbabilities, getFirstHalfyearSurvProb, getNumOfChilds, getSecondHalfyearSurvProb
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigPopulation

public MigPopulation()
Method Detail

calculatePopulation

public BasicResults calculatePopulation(MigParameters parameters)
Description copied from class: AbstractPopulation
Calculate population.

Specified by:
calculatePopulation in class AbstractPopulation<MigParameters,BasicResults>
Parameters:
parameters - the parameters requires to population calculation
Returns:
results the results of the calculation

calculateMeanAndEndPopulation

protected static void calculateMeanAndEndPopulation(Matrix2D meanPopulation,
                                                    Matrix2D endPopulation,
                                                    Matrix2D migrants,
                                                    Matrix2D surviveProbO100,
                                                    Matrix2D p1,
                                                    Matrix2D p2,
                                                    int numberOfYears,
                                                    int maximumAge)
Calculates mean and end populations.

Parameters:
meanPopulation - mean population (will be filled)
endPopulation - end population (will be filled)
migrants - the mirgants
surviveProbO100 - survival probability of the over-100-years-olds
p1 - the P_1 matrix (infant survival probability first half of first year)
p2 - the P_2 matrix (infant survival probability second half of first year)
numberOfYears - number of years to be predicted
maximumAge - the maximum age class


Copyright © 2012. All Rights Reserved.