<linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../popdat/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass="location">Crate popdat</p><divclass="block version"><p>Version 0.1.0</p></div><divclass="sidebar-elems"><aid="all-types"href="all.html"><p>See all popdat's items</p></a><divclass="block items"><ul><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#enums">Enums</a></li><li><ahref="#functions">Functions</a></li></ul></div><pclass="location"></p><script>window.sidebarCurrent={name:"popdat",ty:"mod",relpath:"../"};</script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><scriptsrc="../theme.js"></script><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><spanclass="help-button">?</span>
<aid="settings-menu"href="../settings.html"><imgsrc="../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../src/popdat/lib.rs.html#1-132"title="goto source code">[src]</a></span><spanclass="in-band">Crate <aclass="mod"href="">popdat</a></span></h1><divclass="docblock"><p>popdat ("population data") generates <code>Scenarios</code> given a map and some external census data.
<table><trclass="module-item"><td><aclass="struct"href="struct.CensusArea.html"title="popdat::CensusArea struct">CensusArea</a></td><tdclass="docblock-short"><p>Represents aggregate demographic data for some part of a city. These could be census tracts or
</td></tr><trclass="module-item"><td><aclass="struct"href="struct.CensusPerson.html"title="popdat::CensusPerson struct">CensusPerson</a></td><tdclass="docblock-short"><p>Demographic information for a single person</p>
</td></tr><trclass="module-item"><td><aclass="struct"href="struct.Config.html"title="popdat::Config struct">Config</a></td><tdclass="docblock-short"><p>Any arbitrarily chosen parameters needed should be put here, so they can be controlled from the
</td></tr><trclass="module-item"><td><aclass="struct"href="struct.Schedule.html"title="popdat::Schedule struct">Schedule</a></td><tdclass="docblock-short"><p>A single person's daily schedule. It's assumed that someone always starts at home. And for most
<table><trclass="module-item"><td><aclass="enum"href="enum.Activity.html"title="popdat::Activity enum">Activity</a></td><tdclass="docblock-short"><p>Different things people might do in the day. Maybe it's more clear to call this a
</td></tr><trclass="module-item"><td><aclass="enum"href="enum.PersonType.html"title="popdat::PersonType enum">PersonType</a></td><tdclass="docblock-short"><p>It might be useful to classify a CensusPerson into different categories to figure out their
<table><trclass="module-item"><td><aclass="fn"href="fn.distribute_population_to_homes.html"title="popdat::distribute_population_to_homes fn">distribute_population_to_homes</a></td><tdclass="docblock-short"><p>Starting from some number of total people living in a polygonal area, randomly distribute them
to residential buildings within that area. Returns a list of homes with the number of residents
in each.</p>
</td></tr><trclass="module-item"><td><aclass="fn"href="fn.generate_scenario.html"title="popdat::generate_scenario fn">generate_scenario</a></td><tdclass="docblock-short"><p>Wires together all the pieces, so you can just hand this any map, and it'll automatically find