Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
ef001db0
Commit
ef001db0
authored
Jan 08, 2019
by
Martin Reinecke
Browse files
improve docs
parent
c7408a1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/probing.py
View file @
ef001db0
...
...
@@ -25,7 +25,8 @@ class StatCalculator(object):
-----
- the memory usage of this object is constant, i.e. it does not increase
with the number of samples added
- FIXME describe the kind of variance used (divided by n-1)
- the code computes the unbiased variance (which contains a `1./(n-1)`
term for `n` samples).
"""
def
__init__
(
self
):
self
.
_count
=
0
...
...
@@ -60,7 +61,7 @@ class StatCalculator(object):
@
property
def
var
(
self
):
"""
value type : the variance of all samples added so far.
value type : the
unbiased
variance of all samples added so far.
"""
if
self
.
_count
<
2
:
raise
RuntimeError
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment