mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-04 21:50:30 -04:00
Implement dynamic cloud sizes, adjust cycle lengths
This commit is contained in:
parent
47530bb07e
commit
fdc457bd09
9 changed files with 86 additions and 24 deletions
|
@ -22,7 +22,7 @@ function utility.merge_tables(a, b)
|
|||
end
|
||||
|
||||
-- see https://en.wikipedia.org/wiki/Logistic_function
|
||||
function utility.logistic_growth(value, max, growth, midpoint)
|
||||
function utility.sigmoid(value, max, growth, midpoint)
|
||||
return max / (1 + math.exp(-growth * (value - midpoint)))
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue