Class AgeBandAggregates
java.lang.Object
simpaths.data.statistics.AgeBandAggregates
POPULATION AGGREGATES BY AGE BAND, SHARED BY THE ANNUAL STATISTICS OUTPUTS
Bands are indexed 0 = 18-29, 1 = 30-54, 2 = 55-74.
WealthIncomeStatistics, DemographicStatistics, LabourStatistics and HealthStatistics each report a
subset of these aggregates. Computing them together keeps a single traversal of the
population per simulated year, and a single definition of each statistic, whichever
of those four outputs happen to be enabled.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double[]final double[]final double[]final double[]final double[]final double[]final double[]final double[]final double[]final double[]final double[]final double[]final double[] -
Method Summary
Modifier and TypeMethodDescriptionstatic AgeBandAggregatescompute(SimPathsModel model) Traverse the population and evaluate all age-band aggregates.static AgeBandAggregatescomputeWithSupplier(Supplier<Collection<Person>> supplier) Compute the age-band aggregates with an arbitrarySupplier.
-
Field Details
-
prPartnered
public final double[] prPartnered -
avkids
public final double[] avkids -
health
public final double[] health -
prDisa
public final double[] prDisa -
workFT
public final double[] workFT -
workPT
public final double[] workPT -
labInc
public final double[] labInc -
invInc
public final double[] invInc -
invLosses
public final double[] invLosses -
penInc
public final double[] penInc -
grossDisInc
public final double[] grossDisInc -
wealth
public final double[] wealth -
popula
public final double[] popula
-
-
Method Details
-
computeWithSupplier
Compute the age-band aggregates with an arbitrarySupplier. This is intended for testing. -
compute
Traverse the population and evaluate all age-band aggregates.- Parameters:
model- the simulation manager holding the population- Returns:
- the evaluated aggregates
-