edu.kit.ifv.mobitopp.data.demand.DefaultDistributions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mobitopp Show documentation
Show all versions of mobitopp Show documentation
mobiTopp (http://mobitopp.ifv.kit.edu/) is an agent-based travel demand model developed at the Institute for transport studies at the Karlsruhe Institute of Technology (http://www.ifv.kit.edu/english/index.php). Publications about mobiTopp can be found on the project site (http://mobitopp.ifv.kit.edu/28.php).
The newest version!
package edu.kit.ifv.mobitopp.data.demand;
public class DefaultDistributions {
public RangeDistributionIfc createMaleAge() {
RangeDistributionIfc distribution = new RangeDistribution();
distribution.addItem(new RangeDistributionItem(0, Integer.MAX_VALUE, 0));
return distribution;
}
public RangeDistributionIfc createFemaleAge() {
RangeDistributionIfc distribution = new RangeDistribution();
distribution.addItem(new RangeDistributionItem(0, Integer.MAX_VALUE, 0));
return distribution;
}
public RangeDistributionIfc createIncome() {
return new RangeDistribution();
}
public RangeDistributionIfc createHousehold() {
RangeDistributionIfc distribution = new RangeDistribution();
distribution.addItem(new RangeDistributionItem(1, 0));
distribution.addItem(new RangeDistributionItem(2, 0));
distribution.addItem(new RangeDistributionItem(3, 0));
distribution.addItem(new RangeDistributionItem(4, 0));
return distribution;
}
}