ncase / loopy

A tool for thinking in systems
http://ncase.me/loopy/
Creative Commons Zero v1.0 Universal
1.62k stars 212 forks source link

Quantitative preservation mode #21

Closed 1000i100 closed 4 years ago

1000i100 commented 4 years ago

I would like to make monetary system simulation. For this use-case, in most case i would like to preserve the amount between inbound and outbound.

What about a node behavior where :

  1. what enter is stored a little time to aggregate multiple input value
  2. the output value is equally divided between each output arrow

so node could have a switch in config with 2 modes : signal cloning mode (default) || value preservation mode and a scale [ 0, 0.1, 0.5, 1, 5 ] seconds of retention time to aggregate signal. (or other value in the scale)

1000i100 commented 4 years ago
  1. what enter is stored a little time to aggregate multiple input value

done in #20

TODO : signal cloning mode (default) || value preservation mode

1000i100 commented 4 years ago

I will handle this by edge and not by node : if no quantitative edge take the signal out, the signal amount is added to the node (like now), if some quantitative edge take the signal out, the signal amount is splitted between edge and not added to the node (or partialy depending on threshold)

1000i100 commented 4 years ago

done in #20