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


spew documentation built on Nov. 17, 2017, 7:36 a.m.