<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Moving average block]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=117&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=117"/>
	<updated>2016-04-26T07:53:15Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=117</id>
	<entry>
		<title type="html"><![CDATA[Re: Moving average block]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=505#p505"/>
		<content type="html"><![CDATA[<p>Hello sudhir,</p><p>thank you for your question. Sample period is the same as the sample period of the task where the &quot;AVG&quot; function block is placed.<br />Maximum number of samples (N) is internally set to 10 000 for now. You can set &quot;n&quot; higher then &quot;N&quot; however it will be trimmed to 10 000 samples anyway.</p><p>1 week = 10080 minutes</p><p>If you want to keep the sampling period as fast as possible and also calculate moving average over one week (exactly one week without 80 minutes because of 10 000 samples limitation) you need to set the task sampling period to 1 minute and set &quot;n&quot; to 10 000 samples.<br />If you insist on entire one week you can use sampling period for example 90 s and set &quot;n&quot; to 6 720 samples.</p><p>In a new version of REX you will be allowed to set the maximum number of samples &quot;N&quot; (of course with some limitations of allocated memory according to actual target platform).</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-04-26T07:53:15Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=505#p505</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Moving average block]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=504#p504"/>
		<content type="html"><![CDATA[<p>It calculates the time series average of previous N samples. What is the incremental time between samples? Is that the same as the REX master clock tick? Some of the blocks allow their own ticks but the moving average does not specify that. We are interested in calculating one week average, and want to specify N accordingly.</p>]]></content>
		<author>
			<name><![CDATA[sudhir]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=49</uri>
		</author>
		<updated>2016-04-26T01:20:00Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=504#p504</id>
	</entry>
</feed>
