Variance and Std Deviation of a collection of Quantities.. #447
benhutchison
started this conversation in
General
Replies: 1 comment 9 replies
-
It's a good question - If I had collections for Quantity, then I'd probably (under the hood) compute stdv in unitless raw value types, but return the final output as |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Erik, have you ever needed to compute the variance and standard deviation of some
Quantity[V, U]
s?The variance ends up in units
U * U
. I'm not sure if that's useful. Theoretically, taking the square root will mean the std dev has the right units, but there isn't a sqr root function ATM that will cleanly turnU * U
intoU
, AFAICT?My inclination, for now, is to coerce variance to type
U
.Beta Was this translation helpful? Give feedback.
All reactions