Viewing a saved revision (read-only)
75d6f5ff88244004acb6face81dfb698
statistical Math Modules
This example demonstrates the application of a 300-point moving average to smooth 1Hz temperature data (AirTC_1) from a CSV file, displaying the result as a JSON object. The code first parses string values into numbers, then processes the array through a custom `movingAverages` function, which slices the data into windows and calculates the mean. It also computes variance and standard deviation for sample arrays using the functions `variance` and `StandardDeviation` from `mathStatsmodules`. The final output is rendered inside an HTML `<pre>` element, showcasing the first averaged data record.
AI-generated descriptionAdded a moving average functions (movingAvg.js) and run the data through a 300 point (5minute) averaging window. the original data is 1hz data. movingAverages = (dataArray,avgWindowSize)
- dataArray => the array of data to process
- avgWindowSize => number of points to use in moving average