Is there a way to calculate the median and mode of a very large and randomly sized data set using the Yun? I am pulling in 1,000 to 3,000 readings from a sensor at a time and need to find the median and mode value of each unique data set. The data is written and stored on the SD card for future uploading so a script could be used to analyze the data set after it's collected. Though uploading the data set to a server for analysis is possible, it isn't ideal.
The data characteristics are such that the mean isn't relavent and eventually, the data sets could range in size from a few hundred samples to a few thousand samples.
lexical43:
Is there a way to calculate the median and mode of a very large and randomly sized data set using the Yun?
What prevents you from running a Python or Lua script on the Yun to do so? 
I have never coded in Python or Lua. Only recently started with Arduino. I have been looking at the P-Squared Algorithm, but not getting my head around how to convert into code.
lexical43:
I have never coded in Python or Lua. Only recently started with Arduino. I have been looking at the P-Squared Algorithm, but not getting my head around how to convert into code.
Well, Lua is IMHO very easy to learn and it is nothing specific to (any) Arduino. Neither is Python but I have myself a "natural aversion" against Python and only use it if I do not have an alternative readily available. And Lua is readily available on the Linux side of a Yun, as OpenWRT is using it... 
I am pretty sure if you get yourself a Lua interpreter for whatever OS you run on your computer (Windows, OS X or Linux), you will find very likely some implementation of such algorithm in Lua on the web (Google is your friend, just don't Bing it!
), which you can then use on your Yun...
Ralf
I agree with PCWorxLA.
I think using the Linux side to deal with a lot of data is more appropriate and, as he said, Python and Lua are very easy to learn.