The Weibull functional form for the energetic particle spectrum at interplanetary shock waves