diff --git a/tensorflow_probability/python/stats/sample_stats.py b/tensorflow_probability/python/stats/sample_stats.py index 1c9e82166f..2b778b8fa3 100644 --- a/tensorflow_probability/python/stats/sample_stats.py +++ b/tensorflow_probability/python/stats/sample_stats.py @@ -712,7 +712,7 @@ def windowed_variance( Computes variances among data in the Tensor `x` along the given windows: - result[i] = variance(x[low_indices[i]:high_indices[i]+1]) + result[i] = variance(x[low_indices[i]:high_indices[i]]) accurately and efficiently. To wit, if K is the size of `low_indices` and `high_indices`, and `N` is the size of `x` along @@ -829,7 +829,7 @@ def windowed_mean( Computes means among data in the Tensor `x` along the given windows: - result[i] = mean(x[low_indices[i]:high_indices[i]+1]) + result[i] = mean(x[low_indices[i]:high_indices[i]]) efficiently. To wit, if K is the size of `low_indices` and `high_indices`, and `N` is the size of `x` along the given `axis`,