Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proto walking uptake function #88

Open
Robinlovelace opened this issue Oct 29, 2024 · 3 comments
Open

Add proto walking uptake function #88

Robinlovelace opened this issue Oct 29, 2024 · 3 comments

Comments

@Robinlovelace
Copy link
Collaborator

uptake_walk_school_baseline = function(distance, upper_limit = 0.7, exponent = 1.3) {
  p = exp(-distance * exponent)
  p[p > upper_limit] = upper_limit
  p
}
# And...
uptake_walk_school_goactive = function(distance, upper_limit = 0.9, exponent = 0.8) {
  uptake_walk_school_baseline(distance, upper_limit, exponent)
}
@dabreegster
Copy link
Collaborator

f333f43 added this, I'll keep this issue open until I rewrite the docs on uptake configs

@dabreegster
Copy link
Collaborator

Example use in config.json:

"uptake": {
  "WalkToSchool": {
     "upper_limit": 0.7,
     "exponent": 1.3
  }
}

@Robinlovelace
Copy link
Collaborator Author

Distance in m.

Will install and test!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants