Characterization of samples