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 » Thu Jun 21, 2012 5:58 pm

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: 5572
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 » Fri Jun 22, 2012 4:18 am

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 » Tue Jun 26, 2012 3:15 pm

Hahaha, great response, I see your point.

Post Reply