From 4b263532d167279a003cfa2fd0c871d3ad5d89a1 Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Sun, 20 May 2018 18:40:22 -0400 Subject: [PATCH] Added missing space on line #222 --- spotifyvis/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotifyvis/views.py b/spotifyvis/views.py index e580c96..a2749da 100644 --- a/spotifyvis/views.py +++ b/spotifyvis/views.py @@ -219,7 +219,7 @@ def update_std_dev(cur_mean, cur_std_dev, new_data_point, sample_size): Returns: (new_mean, new_std_dev) """ - # This is an implementationof Welford's method + # This is an implementation of Welford's method # http://jonisalonen.com/2013/deriving-welfords-method-for-computing-variance/ new_mean = ((sample_size - 1) * cur_mean + new_data_point) / sample_size delta_variance = (new_data_point - new_mean) * (new_data_point - cur_mean)