Finding the maximal output within a group of ensembles

I’m trying to find the maximum within a group of 30 ensembles. Does anyone knows a nice trick to identify which ensemble has the highest output?

Thank you very much

What you want is a winner-take-all (WTA) network. In such a network only the highest input stays active while all other inputs are inhibited. This publication might be useful as it compares two WTA mechanisms in the context of the NEF. An implementation of the independent accumulator model given in that publication is part of the new Nengo SPA module. It contains also a WTA module similar to the LCA model from that paper (but not exactly the same as far as I recall).