vector.stdev() on vector with 1 element

Anything that doesn't fit elsewhere.
Post Reply
rllin

vector.stdev() on vector with 1 element

Post by rllin »

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

Post by ted »

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?
rllin

Re: vector.stdev() on vector with 1 element

Post by rllin »

Hahaha, great response, I see your point.
Post Reply