compute sum for defined topology in an array, working on compute mean
and lisa value