|
Yes. I realized I had a pretty decent "geometry" library; just when I though I had to write some (more). Just needed to put them all in the same namespace / mindspace.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Your subconscious is driving the todo list your conscious mind doesn't even know exists.
|
|
|
|
|
Apparently my subconscious knows my colleagues plans ahead of time as well. Not sure how I feel about that.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I need to show some value for continous measurement(s):
a.) Current Measurement Value
b.) Mean Value of the measurements
c.) Standard deviation of the measurements
c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0
b.) I have my doubts. The mean value is the current value. Or should I also show blank?
a.) Is easy. As soon one has measured it is easy to show current valu
Especally b.) drives me crazy
Any suggestions/thoughts? Thank you very much in advance
|
|
|
|
|
I think we'd need more context.
Is the measurement expected to remain within some range?
Do measurements expire after some time elapses?
|
|
|
|
|
Simply measurements 1...N. No restrictions.
The question is: If I have only one measurement, should I display
1.) A mean Value?
2.) A Standard Deviation (which would be 0 for one measurement)
Thanks
|
|
|
|
|
Maybe display the latest value and allow the user to drill down to see more of a trend (if available)?
|
|
|
|
|
1. For one measurement current value and mean value are the same. No nitpicking here.
2. Standard deviation, that's where nitpicking begins. What you actually calculate is an estimator of the standard deviation and, if you want an unbiased estimator, you need to divide the sum of squares by N-1. That means you cannot display anything until you have at least two measurements.
Mircea
|
|
|
|
|
My idea is for _one_ measurement I will display neither mean nor deviation.
But I have a strange feeling this is only nitpicking and will confuse maybe the users.
On the other hand, somebody who really understand deviation should understand it If not, display of deviation and mean does not make sense anyway, I think
|
|
|
|
|
0x01AA wrote: My idea is for _one_ measurement I will display neither mean nor deviation.
The more I think about it, the more I tend to agree with you.
Mircea
|
|
|
|
|
The more I think about it, the more confused I become
I think it is not really worth to think too much about it. But interesting to know how others think about it.
Thank you very much
|
|
|
|
|
The Mean is defined for N = 1, therefore it should be displayed.
The Corrected Standard Deviation is not defined for N = 1. It is defined as:
xavg = sum(xi)/N
xstdev = sqrt(sum((xi-xavg)2)/(N-1))
The formula for Standard Deviation with N is used when one is calculating the Standard deviation of an entire population, not just of a sample.
I hope you've been out-nitpicked.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Thank you very much for this.
Still for me, mean for N= 1 makes no sense, resp. more: has no information
|
|
|
|
|
0x01AA wrote: b.)
What about NA? (not applicable)
|
|
|
|
|
|
With 1 sample, it is read as Not available Now.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
Simply show a blank field should be ok I think?
|
|
|
|
|
a and b are easy like you said, just display the value of the single measurement.
c now, how about a message like "Not applicable, only one measurement recorded." You don't show blank and you explain why they aren't getting a value.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
Value has no meaning without time.
1) Never had a value.
2) last value at xx:xx:xx
3) etc.
Transparency and visibility lets me sleep at night.
(Also ... an early warning system for the attendant).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Perhaps it will be helpful to the users to see displayed the number of said measurements.
|
|
|
|
|
I see two alternative approaches
- Always show current measurement value, but show statistical values only when statistics is meaningful (you have a 'fair' number of samples).
or- Always show all values, however, at first measure: show the current value, omit or show the mean value (equal to current value) and omit the standard deviation.
my two cents.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Mathematicians define the (so called "Arithmetic") Mean as "Sum of all values divided by Count of all values" - see e.g. Arithmetic mean - Wikipedia[^]. Thus, the mathematically defined (Arithmetic) Mean for a single value is that single value. It does not at all matter whether you think whether this "makes sense"
However, did whoever gave you this specification ("need to show ... Mean Value ...") specify that he/she actually
- meant you to use the arithmetic mean? (most probably yes; but asking back is not wrong - might only confuse the analyst who maybe doesn't even know that there are many other "Means");
- wanted to help the user also in such boundary cases? Maybe the analyst would even say "Oh, but for less than a handful of values that mean doesn't make any sense - there will always be 100 or 1000s of values, in practice"; then, you two should talk for some time what's the actual reason for showing those values ... That's what I think your "feeling" is about - you question the business value of showing the Mean (and Deviation) in boundary cases - which does matter.
H.M.
|
|
|
|
|
If there is only one measurement, I would show something to indicate that measurement has begun with the opening value given and don't show any values for a, b, or c.
|
|
|
|
|
Know your audience. Ask the user who will be looking at these values what they think they should see. The answers might surprise you.
For example, I have an application where I don't display statistical data until a certain number of 'stable' samples have been seen. Stability is determined by a filter on the input data, which isn't useful while the process being measured is starting.
Software Zen: delete this;
|
|
|
|
|
the question for more context is that it depends.
so go back to the user and ask for more clerification what is useful to them
or what is the end goal of said mesaurement.
a number on it's own is meaningless
Someone needs to know if value is within tolerance - so current value unless said tolerance is based on a time window and so would need to be able to clearly indicate what that time window is used over the mean
|
|
|
|