03-31-2025, 05:31 PM 
	
	
	
		Hi,
I am trying to use the movingaverage function and am constantly failing.
I have no clue how that function should work.
Can someone please post a simple example?
My not working code looks like this:
	
	
	
	
	
I am trying to use the movingaverage function and am constantly failing.
I have no clue how that function should work.
Can someone please post a simple example?
My not working code looks like this:
Code:
<phyphox xmlns="https://phyphox.org/xml" version="1.18">
  <title>New Experiment</title>
  <category>No Category</category>
  <data-containers>
    <container size="0">x</container>
    <container size="0">xAvg</container>
  </data-containers>
  <input>
    <sensor type="linear_acceleration">
      <output component="x">x</output>
    </sensor>
  </input>
  <analysis>
    <movingaverage>
      <input as="data">x</input>
      <input as="width" type="value">10</input>
      <output as="data">xAvg</output>
    </movingaverage>
  </analysis>
  <views>
    <view label="New View">
      <value label="xAvg">
        <input>xAvg</input>
      </value>
    </view>
  </views>
</phyphox>
