View source: R/extendr-wrappers.R
| rust_huff | R Documentation |
Computes probability surface based on distance decay and attractiveness.
Formula: P_{ij} = (A_j \times D_{ij}^\beta) / \Sigma_k(A_k \times D_{ik}^\beta)
rust_huff(cost_matrix, attractiveness, distance_exponent, sales_potential)
cost_matrix |
Cost/distance matrix (demand x stores) |
attractiveness |
Attractiveness values for each store (pre-computed with exponents) |
distance_exponent |
Distance decay exponent (typically negative, e.g., -1.5) |
sales_potential |
Optional sales potential for each demand point |
List with probabilities, market shares, expected sales
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.