<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Statistics on the Arduino (also Pic or any microcontroller)</title>
	<atom:link href="http://provideyourown.com/2012/statistics-on-the-arduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://provideyourown.com/2012/statistics-on-the-arduino/</link>
	<description>Take charge of your own life!</description>
	<lastBuildDate>Tue, 21 May 2013 18:47:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Dolores</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-66740</link>
		<dc:creator>Dolores</dc:creator>
		<pubDate>Sat, 18 May 2013 04:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-66740</guid>
		<description><![CDATA[Hello I extremely much enjoyed reading your writing.
I&#039;m thinking about beginning my own blog really soon Best.]]></description>
		<content:encoded><![CDATA[<p>Hello I extremely much enjoyed reading your writing.<br />
I&#8217;m thinking about beginning my own blog really soon Best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tokokoo Review</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-66684</link>
		<dc:creator>Tokokoo Review</dc:creator>
		<pubDate>Fri, 17 May 2013 23:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-66684</guid>
		<description><![CDATA[It is not my first time to pay a visit this website, i am visiting this site dailly and get nice information from here everyday.]]></description>
		<content:encoded><![CDATA[<p>It is not my first time to pay a visit this website, i am visiting this site dailly and get nice information from here everyday.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog J.Schweiss &#124; yC - Statistics</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-62051</link>
		<dc:creator>Blog J.Schweiss &#124; yC - Statistics</dc:creator>
		<pubDate>Wed, 01 May 2013 12:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-62051</guid>
		<description><![CDATA[[...] Lib from here [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Lib from here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Daniels</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-34925</link>
		<dc:creator>Scott Daniels</dc:creator>
		<pubDate>Thu, 14 Feb 2013 06:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-34925</guid>
		<description><![CDATA[Your include statements are blank. What kind of error are you getting? You need to provide more detail.]]></description>
		<content:encoded><![CDATA[<p>Your include statements are blank. What kind of error are you getting? You need to provide more detail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-30607</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Sat, 02 Feb 2013 18:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-30607</guid>
		<description><![CDATA[Mayabe a dumb question, but how can i  run this library ?
Should I copy folder ststistics to my libs folder in Arduino - i did it but this not work.
here is my (Your) code

#include 
#include 


Statistics stats(10);

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  int data = analogRead(A0);
  stats.addData(data);

  Serial.print(&quot;Mean: &quot;);
  Serial.print(stats.mean());
  Serial.print(&quot; Std Dev: &quot;);
  Serial.println(stats.stdDeviation());
}]]></description>
		<content:encoded><![CDATA[<p>Mayabe a dumb question, but how can i  run this library ?<br />
Should I copy folder ststistics to my libs folder in Arduino &#8211; i did it but this not work.<br />
here is my (Your) code</p>
<p>#include<br />
#include </p>
<p>Statistics stats(10);</p>
<p>void setup()<br />
{<br />
  Serial.begin(9600);<br />
}</p>
<p>void loop()<br />
{<br />
  int data = analogRead(A0);<br />
  stats.addData(data);</p>
<p>  Serial.print(&#8220;Mean: &#8220;);<br />
  Serial.print(stats.mean());<br />
  Serial.print(&#8221; Std Dev: &#8220;);<br />
  Serial.println(stats.stdDeviation());<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Easier Statistics for Sensor Data</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-25965</link>
		<dc:creator>Easier Statistics for Sensor Data</dc:creator>
		<pubDate>Sat, 19 Jan 2013 20:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-25965</guid>
		<description><![CDATA[[...] Statistics on the Arduino [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Statistics on the Arduino [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Daniels</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-25534</link>
		<dc:creator>Scott Daniels</dc:creator>
		<pubDate>Fri, 18 Jan 2013 01:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-25534</guid>
		<description><![CDATA[That is a great application of this library. I have always found the typical color organ somewhat annoying in that it seems to respond mainly to the bass beats. The use of averaging definitely gives it a more pleasing appearance IMHO. I like your project - thanks for sharing it.]]></description>
		<content:encoded><![CDATA[<p>That is a great application of this library. I have always found the typical color organ somewhat annoying in that it seems to respond mainly to the bass beats. The use of averaging definitely gives it a more pleasing appearance IMHO. I like your project &#8211; thanks for sharing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Daniels</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-25530</link>
		<dc:creator>Scott Daniels</dc:creator>
		<pubDate>Fri, 18 Jan 2013 01:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-25530</guid>
		<description><![CDATA[You raise some good points. The data is accumulative by design, and discarding the data and starting over would be one way of changing that behavior. It turns out that old data does not really hang around forever though, but is sloughed off over time. In the example you provide, the mean should be 18.75 not 15. As you continue to add more 20&#039;s to the accumulated data, the mean will approach 20. By choosing the appropriate window size you can cycle over to new data values as fast or slow as you would like. Put another way, if you want your running average to adapt quickly to new values, use a small sample size. If you want it to adapt more slowly, use larger sample size. The sample size does not change the storage, but how many of the last samples are accumulated.

Sample size affects the effect of bad data as well. A small sample size will reflect the bad data more readily, but would also clear it out more quickly as well. A larger sample size keeps the bad data points around longer, but they will have less of an effect.]]></description>
		<content:encoded><![CDATA[<p>You raise some good points. The data is accumulative by design, and discarding the data and starting over would be one way of changing that behavior. It turns out that old data does not really hang around forever though, but is sloughed off over time. In the example you provide, the mean should be 18.75 not 15. As you continue to add more 20&#8242;s to the accumulated data, the mean will approach 20. By choosing the appropriate window size you can cycle over to new data values as fast or slow as you would like. Put another way, if you want your running average to adapt quickly to new values, use a small sample size. If you want it to adapt more slowly, use larger sample size. The sample size does not change the storage, but how many of the last samples are accumulated.</p>
<p>Sample size affects the effect of bad data as well. A small sample size will reflect the bad data more readily, but would also clear it out more quickly as well. A larger sample size keeps the bad data points around longer, but they will have less of an effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Hung</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-25370</link>
		<dc:creator>Jim Hung</dc:creator>
		<pubDate>Thu, 17 Jan 2013 05:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-25370</guid>
		<description><![CDATA[Hey - Just wanted to say thanks for making this library available - I found it through Hackaday and realized it would help me elegantly solve one of the issues with a sound-reactive project I&#039;m working on.

Here&#039;s a video of one of my experiments that is using your Statistics library to efficiently smooth out the readings from a spectrum analyzer IC to make a nice, flicker-free light show on a series of LEDs: http://youtu.be/t4MN1q9X0Us

Thanks again!

Jim]]></description>
		<content:encoded><![CDATA[<p>Hey &#8211; Just wanted to say thanks for making this library available &#8211; I found it through Hackaday and realized it would help me elegantly solve one of the issues with a sound-reactive project I&#8217;m working on.</p>
<p>Here&#8217;s a video of one of my experiments that is using your Statistics library to efficiently smooth out the readings from a spectrum analyzer IC to make a nice, flicker-free light show on a series of LEDs: <a href="http://youtu.be/t4MN1q9X0Us"  rel="nofollow">http://youtu.be/t4MN1q9X0Us</a></p>
<p>Thanks again!</p>
<p>Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daid</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-25052</link>
		<dc:creator>Daid</dc:creator>
		<pubDate>Tue, 15 Jan 2013 10:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-25052</guid>
		<description><![CDATA[I do not think the AVR compiler supports doubles and just implements them as floats.]]></description>
		<content:encoded><![CDATA[<p>I do not think the AVR compiler supports doubles and just implements them as floats.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Microcontroller statistics with a small SRAM footprint &#124; Make, Electronics projects, electronic Circuits, DIY projects, Microcontroller Projects - makeelectronic.com</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-25038</link>
		<dc:creator>Microcontroller statistics with a small SRAM footprint &#124; Make, Electronics projects, electronic Circuits, DIY projects, Microcontroller Projects - makeelectronic.com</dc:creator>
		<pubDate>Tue, 15 Jan 2013 08:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-25038</guid>
		<description><![CDATA[[...] of data on a small device. [Scott Daniels] has some help for you in this arena. He explains how to manage statistical calculations on your collected data without eating up all the RAM. The library which he made available is targeted for the Arduino. But the concepts, which he [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of data on a small device. [Scott Daniels] has some help for you in this arena. He explains how to manage statistical calculations on your collected data without eating up all the RAM. The library which he made available is targeted for the Arduino. But the concepts, which he [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BBotany</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-24952</link>
		<dc:creator>BBotany</dc:creator>
		<pubDate>Mon, 14 Jan 2013 23:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-24952</guid>
		<description><![CDATA[Correcting myself on the widowing: you do get exponential decay of the effect of  out-of-window values, and the results in my example are not 15... Not 20 either (depending on truncation/rounding algorithm, should be about 18), but close enough for horseshoes and hand grenades.]]></description>
		<content:encoded><![CDATA[<p>Correcting myself on the widowing: you do get exponential decay of the effect of  out-of-window values, and the results in my example are not 15&#8230; Not 20 either (depending on truncation/rounding algorithm, should be about 18), but close enough for horseshoes and hand grenades.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BBotany</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-24948</link>
		<dc:creator>BBotany</dc:creator>
		<pubDate>Mon, 14 Jan 2013 23:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-24948</guid>
		<description><![CDATA[After reading through the integer version, I would describe this as a decent and definitely  compact implementation. For well-behaved, size char mean and variance it should work.

Note that m = m *((n-1)/n ) will not actually discard old data. Instead, it scales it so that the value you expect to store remains approximately bounded by N*mean for the mean, and N*(mean^2) for the sum of squares for the variance. If you put in a window length of two, and try the sequence {10, 10, 10, 20, 20, 20} you will see that you get a final number of 15, not the 2-observation mean of 20. If you used two pairs of accumulators you could implement a window that is constrained between N and 2N, however, by switching accumulators whenever the count reaches N, clearing the &quot;new&quot; accumulator , and always using both together for output.  This would give you the long-term memoryless property that you desire.

The &quot;well behaved&quot; warning is because of large N*value - particularly on readings that can vary widely. Overflow errors would wipe out the accuracy of all subsequent readings, and are reasonably likely to happen if there is respectable variance and auto-correlated errors.

Why would I notice all this? Why, by burning myself while making a rate adaptive Morse decoder of course.]]></description>
		<content:encoded><![CDATA[<p>After reading through the integer version, I would describe this as a decent and definitely  compact implementation. For well-behaved, size char mean and variance it should work.</p>
<p>Note that m = m *((n-1)/n ) will not actually discard old data. Instead, it scales it so that the value you expect to store remains approximately bounded by N*mean for the mean, and N*(mean^2) for the sum of squares for the variance. If you put in a window length of two, and try the sequence {10, 10, 10, 20, 20, 20} you will see that you get a final number of 15, not the 2-observation mean of 20. If you used two pairs of accumulators you could implement a window that is constrained between N and 2N, however, by switching accumulators whenever the count reaches N, clearing the &#8220;new&#8221; accumulator , and always using both together for output.  This would give you the long-term memoryless property that you desire.</p>
<p>The &#8220;well behaved&#8221; warning is because of large N*value &#8211; particularly on readings that can vary widely. Overflow errors would wipe out the accuracy of all subsequent readings, and are reasonably likely to happen if there is respectable variance and auto-correlated errors.</p>
<p>Why would I notice all this? Why, by burning myself while making a rate adaptive Morse decoder of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sobiguy</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-24928</link>
		<dc:creator>Sobiguy</dc:creator>
		<pubDate>Mon, 14 Jan 2013 21:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-24928</guid>
		<description><![CDATA[Very Informative write up..... Appreciated]]></description>
		<content:encoded><![CDATA[<p>Very Informative write up&#8230;.. Appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Microcontroller statistics with a small SRAM footprint &#124; Daily IT News on it news..it news..</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-24901</link>
		<dc:creator>Microcontroller statistics with a small SRAM footprint &#124; Daily IT News on it news..it news..</dc:creator>
		<pubDate>Mon, 14 Jan 2013 19:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-24901</guid>
		<description><![CDATA[[...] of data on a small device. [Scott Daniels] has some help for you in this arena. He explains how to manage statistical calculations on your collected data without eating up all the RAM. The library which he made available is targeted for the Arduino. But the concepts, which he [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of data on a small device. [Scott Daniels] has some help for you in this arena. He explains how to manage statistical calculations on your collected data without eating up all the RAM. The library which he made available is targeted for the Arduino. But the concepts, which he [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Microcontroller statistics with a small SRAM footprint</title>
		<link>http://provideyourown.com/2012/statistics-on-the-arduino/#comment-24897</link>
		<dc:creator>Microcontroller statistics with a small SRAM footprint</dc:creator>
		<pubDate>Mon, 14 Jan 2013 19:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://provideyourown.com/?p=1755#comment-24897</guid>
		<description><![CDATA[[...] of data on a small device. [Scott Daniels] has some help for you in this arena. He explains how to manage statistical calculations on your collected data without eating up all the RAM. The library which he made available is targeted for the Arduino. But the concepts, which he [...]]]></description>
		<content:encoded><![CDATA[<p>[...] of data on a small device. [Scott Daniels] has some help for you in this arena. He explains how to manage statistical calculations on your collected data without eating up all the RAM. The library which he made available is targeted for the Arduino. But the concepts, which he [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
