vector.stdev() on vector with 1 element

Anything that doesn't fit elsewhere.

vector.stdev() on vector with 1 element

Postby 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?
rllin
 
Posts: 41
Joined: Mon Jun 20, 2011 4:46 pm

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

Postby 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?
ted
Site Admin
 
Posts: 3587
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

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

Postby rllin » Tue Jun 26, 2012 3:15 pm

Hahaha, great response, I see your point.
rllin
 
Posts: 41
Joined: Mon Jun 20, 2011 4:46 pm


Return to Other questions

Who is online

Users browsing this forum: Google [Bot] and 1 guest