Class AgeBandAggregates

java.lang.Object
simpaths.data.statistics.AgeBandAggregates

public class AgeBandAggregates extends Object
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 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

      public static AgeBandAggregates computeWithSupplier(Supplier<Collection<Person>> supplier)
      Compute the age-band aggregates with an arbitrary Supplier. This is intended for testing.
    • compute

      public static AgeBandAggregates compute(SimPathsModel model)
      Traverse the population and evaluate all age-band aggregates.
      Parameters:
      model - the simulation manager holding the population
      Returns:
      the evaluated aggregates