Skip to content

Workshop – Sensor Burst Analyzer #64114

@naomi-lgbt

Description

@naomi-lgbt

Type: Workshop
Summary: In this workshop, you will analyze nested arrays of sensor bursts to detect spikes, silent gaps, and rolling statistics.

User Stories

  1. You should accept input shaped like [[10, 12, 15], [0, 0, 0], [18, 22]], where each nested array is a burst for a single sensor loop.
  2. You should create analyzeBurst(burst, windowSize) that returns averages, mins, and maxes using sliding windows.
  3. You should create detectSpikes(burst, threshold) that uses some/every to flag bursts exceeding thresholds.
  4. You should create detectSilence(burst, windowSize) that returns true if a full window contains zero readings.
  5. You should create summarizeSensorData(bursts) that maps through all bursts, aggregates stats, and returns an array of summary objects.
  6. You should ensure helper functions never mutate the original burst arrays.

Technical Notes

  • Include sample fixtures with inconsistent burst lengths and tests for edge cases.

This issue is part of Naomi's sprint initiatives.

If you are interested in working on this issue, join our Discord and ping Naomi!

Action Items

Other Details

Questions

Ping Naomi in the sprint channel on Discord

Metadata

Metadata

Assignees

Labels

Naomi's SprintsThis label is for issues that Naomi is managing through her sprint initiatives on Discord.js v9 certThis is for the JS V9 certification.

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions