To represent an N-ary ionic composition, X, which can be described as containing species x 1 , x 2 . . . x N , let's consider the quaternary case where X = (a, b, c, d). We can apply a pooling operation, f p , to obtain a vector that represents the composition: