averagetable function

Computes a (products,descriptors) matrix