The T density for speckle and photo-counting statistics