We investigate the structures of embedded and open clusters using statistical methods, in particular the combined parameter $\Q$, which permits to quantify the cluster structure. Star clusters build up from several subclusters evolving from a structured to a more centrally concentrated stage. The evolution is not only a function of time, but also of the mass of the objects. Massive stars are usually centrally concentrated, while lower-mass stars are more widespread, reflecting the effect of mass segregation. Using this method we find that in IC 348 and the Orion Nebula Cluster the spatial distribution of brown dwarfs does not follow the central clustering of stars, giving important clues to their formation mechanism by supporting the ejected embryo scenario.