This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Bug in "average"
#1
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:

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>
Reply


Messages In This Thread
Bug in "average" - by Physikator - 01-30-2019, 09:12 PM
RE: Bug in "average" - by Sebastian Staacks - 02-02-2019, 12:28 PM
RE: Bug in "average" - by Physikator - 02-02-2019, 04:43 PM
RE: Bug in "average" - by Sebastian Staacks - 02-03-2019, 08:43 PM

Forum Jump: