Skip to content

Project filtering data using a sliding window. Data is read into a window of a fixed size and averaged as the window traverses the dataset.

Notifications You must be signed in to change notification settings

sarah-nash/Streaming-Data

Repository files navigation

Streaming-Data

This project is an object-oriented approach to filtering data using a windowed buffer. Data is read into a sliding window and the window is averaged at each step with mean and median calculations. The averaged data is finally saved to an output file.

The StreamingDataFilter.java file uses three main parameters:

  • fileName: the name/path of the file containing the data to be streamlined.
  • windowWidth: the size of the window to average over (larger window size will show greater trends, smaller window size will more closely fit the data than show trends.
  • column: the (numerical) column of the file containing the data of interest.

Only .csv files are compatible with this project, sample datasets included are infrared, TPA weather, and US COVID datasets. Project created Spring 2021 Object Oriented Programming with Dr. Caitrin Eaton.

About

Project filtering data using a sliding window. Data is read into a window of a fixed size and averaged as the window traverses the dataset.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages