[Tutor] Newbie Here -- Averaging & Adding Madness Over a Given (x) Range?!?!
fomcl at yahoo.com
Fri Feb 15 22:03:00 CET 2013
> Eventually what I'll need to do is:
> 1. Index the file and/or count the lines, as to identify each line's
> positional relevance so that it can average any range of numbers that are
> sequential; one to one another.
In other words: you would like to down-sample your data? For example, reduce a sampling frequency from 1000 samples/second (1KHz) to 100, by averaging every ten sequential data points?
> 2. Calculate the difference between any given (x) range. In order to be able
> to ask the program to average every 5, 10, 100, 100, or 10,000 etc. --> until
> completion. This includes the need to dealing with stray remainders at the end
> of the file that aren't divisible by that initial requested range.
In other words: you would like to calculate a running/moving average, with window size as a parameter?
More information about the Tutor