R/commuting_matrix.R

Defines functions commuting_matrix

Documented in commuting_matrix

#' Function to transform travel times into iceberg commuting costs
#' @param t_ij NxN matrix - Travel time matrix across locations
#' @param epsilon Float - Parameter that transforms travel times to commuting costs
#' 
#' @return A NxN matrix of commuting costs
commuting_matrix = function(t_ij,
                            epsilon){
  tau = exp(epsilon*t_ij)
  return(list(tau=tau))
}

Try the IGC.CSM package in your browser

Any scripts or data that you put into this service are public.

IGC.CSM documentation built on Sept. 30, 2024, 5:06 p.m.