Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

statistical Math Modules

Public visualization

Viewing a saved revision (read-only)

75d6f5ff88244004acb6face81dfb698

statistical Math Modules

0 stars0🌍 Public
DDonald Bagwell
Last edited Apr 17, 2024
Created on Apr 17, 2024
Forked from hmp155Adataset

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 description

Added 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)

  1. dataArray => the array of data to process
  2. avgWindowSize => number of points to use in moving average