Spectral distribution of photons admitting anomalous statistics