Governed by:

If all are equal, we have:

There is also a non-inverting version of this.