An interpolation formula for the comparative distribution of energy in star spectra