Statistics for Perceptual grouping of 3-D sensory data using Bayesian attributed hypergraphs