Skip to main content
Public

Share visualization

Loading preview…

statistical Math Modules

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

statistical Math Modules

0
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

Comments

Sign in to join the discussion.

MIT Licensed