powered by
Calculates connected/contributing fraction
linear_hysteresis_CF( current_storage = 0, delta_storage = 0, max_storage = 0, current_contrib_frac = 0, threshold = -0.01 )
Returns the updated connected/contributing fraction
Current storage volume
Change in volume
Maximum possible storage volume
Current contributing fraction (0-1)
Threshold for change in storage to set connected fraction to zero.
Kevin Shook
cf <- linear_hysteresis_CF(current_storage = 50, delta_storage = 10, max_storage = 100, current_contrib_frac = 0)
Run the code above in your browser using DataLab