'get expectation of a function of a Wiener Process by simulation
initially test example from'

def expectedsim(self, func, nobs=100, T=1, dt=None, nrepl=1):

    (W, t) = self.simulateW(nobs=nobs, T=T, dt=dt, nrepl=nrepl)
    U = func(t, W)
    Umean = U.mean(0)
    return (U, Umean, t)
