vector.stdev() on vector with 1 element
-
rllin
vector.stdev() on vector with 1 element
I'm getting an error whenever I call stdev() on a vector with one element. Is stdev() really not equipped to deal with this edge case? Any clever work arounds?
-
ted
- Site Admin
- Posts: 6398
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: vector.stdev() on vector with 1 element
I see the following msg:
Vector must have size > 1
Seems fairly reasonable. If this is an "edge case" then so would be the sound of one hand clapping. Is "standard deviation of a single sample, or of a set that contains only one member" a zen exercise, or does it have an accepted meaning?
Vector must have size > 1
Seems fairly reasonable. If this is an "edge case" then so would be the sound of one hand clapping. Is "standard deviation of a single sample, or of a set that contains only one member" a zen exercise, or does it have an accepted meaning?