Class InitialPopulationFilter
java.lang.Object
simpaths.model.InitialPopulationFilter
Class filter to ensure that starting population for simulation matches alignment targets.
The filter is based on ceiling values for numbers of individuals of various types in the
starting population. For each candidate household, the filter subtracts 1 from each of the ceilings
associated with each household member. A household is returned as a valid candidate only if all
ceilings associated with all household members are non-negative. At start, the ceilings are inflated
by an (error) margin to facilitate population identification.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InitialPopulationFilter
public InitialPopulationFilter() -
InitialPopulationFilter
public InitialPopulationFilter(int populationSize, int year, int maxAge)
-
-
Method Details
-
evaluate
returns true if household is valid candidate a candidate is valid only if all household members are within considered population ceilings- Parameters:
household-- Returns:
-
evaluate
-
getRemainingVacancies
public int getRemainingVacancies()
-