get_weight_dists: Weight place assignment probabilities

Description Usage Arguments Value

View source: R/places.R

Description

Weight place assignment probabilities

Usage

1
2
get_weight_dists(dist_mat, places, method = "uniform",
  cap_fxn = cap_default)

Arguments

dist_mat

a m x n matrix where m is the number of people and n is the number of schools

places

data frame of places with an ID column

method

("uniform", "capacity")

cap_fxn

a function with one argument, a single capacity. This should be a monotone increasing function. The default is cap_default.

Value

m x n matrix of probabilities. Each row should sum to 1


leerichardson/spew documentation built on May 21, 2019, 1:39 a.m.