Исправлены главы

This commit is contained in:
Sergey Lemeshevsky
2020-02-24 11:32:37 +03:00
parent 55d41eebee
commit af27efd7f6
23 changed files with 3016 additions and 219 deletions

6
src-intro/walkers.py Normal file
View File

@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
import numpy as np
def random_walker_max_distance(M, N):
trajectories = [np.random.randn(M).cumsum() for _ in range(N)]
return np.max(np.abs(trajectories))