01-30-2019, 09:12 PM
(This post was last modified: 01-30-2019, 09:58 PM by Physikator.)
I'm happily using phyphox for measuring and visualising all kinds of movement (skiing, driving by car ...). I just entered the Neuland of the editor for new experiments and I believe I found a bug: If I want to calculate a standard deviation without the corresponding average, the output strangely shows negative numbers. It turned out that I had do connect the "average" output as well to only receive positive standard deviations.
The following experiment shows standard deviations of the pressure in the order of 1bar:
The following experiment shows standard deviations of the pressure in the order of 1bar:
Code:
<phyphox version="1.6" locale="en">
<title>average_test</title>
<category>no category</category>
<description></description>
<data-containers>
<container size="100" static="false">t</container>
<container size="100" static="false">x</container>
<container size="0" static="false">average</container>
<container size="0" static="false">stddev</container>
</data-containers>
<input>
<sensor rate="1" average="false" type="pressure">
<output component="x">x</output>
<output component="t">t</output>
</sensor>
</input>
<output>
</output>
<analysis sleep="0" onUserInput="false">
<average>
<input as="buffer">t</input>
<output as="average" clear="false">average</output>
</average>
<average>
<input as="buffer">x</input>
<output as="stddev" clear="false">stddev</output>
</average>
</analysis>
<views>
<view label="New view">
<graph label="stddev(p)" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="false" history="1" labelX="s" labelY="hPa" logX="false" logY="false" xPrecision="3" yPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" minX="0" maxX="0" minY="0" maxY="0">
<input axis="y">stddev</input>
<input axis="x">average</input>
</graph>
</view>
</views>
<export>
</export>
</phyphox>