Implementation of Karhunen–Loeve expansion for simulation using a wavelet-Galerkin scheme · Study