mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-05 09:50:34 +02:00
Implement dynamic cloud sizes, adjust cycle lengths
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user