A closed-form spatial wavelet analysis for damage detection in statically loaded Euler-Bernoulli beams