My ECU is the Adaptronic e1280s, which can do literally ANYTHING, or close enough to it. It's overkill for most cars, but I love it and I make good use of it's limitless configurability.
Most Adaptronic users have one of the 'Select' ECUs which are similar to other brands, but the e1280s is unlike any other ECU on the market. Many people have never heard of it though lol.
BTW, when I say my ECU can do anything...the tuning software has a user-configurable block diagram editor with many pages containing thousands of 'elements' which connect together to visually represent the entire functionality of the ECU. There is a default block diagram configuration which does almost everything, and it can be viewed in a simplified way that looks like normal ECU tuning software.
If I want to, I can add many of my own 2D tables, 3D tables, PID closed loop controllers, logic elements, adders, multipliers, timers, etc. and connect them to each other (or the ECU's inputs and outputs) in any way that I choose.
In other words, the algorithm that you mentioned is a walk in the park, if you know how to use the ECU!