Skip to content

added outlier removal >20k to smooth strict rpm pipeline#294

Draft
hydrowoxy wants to merge 15 commits intomainfrom
289-smooth-rpm-with-stricttimestamp
Draft

added outlier removal >20k to smooth strict rpm pipeline#294
hydrowoxy wants to merge 15 commits intomainfrom
289-smooth-rpm-with-stricttimestamp

Conversation

@hydrowoxy
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 1, 2025 23:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds outlier removal functionality for RPM values greater than 20,000 to improve the strict RPM pipeline smoothing process. It introduces two new analyzer types (SMOOTH_STRICT_PRIM and SMOOTH_STRICT_SEC) that combine strict timestamp processing, outlier removal, and Savitzky-Golay smoothing.

Key changes:

  • Added two new analyzer types for smoothing strict primary and secondary RPM data
  • Implemented pipeline analyzers that chain strict timestamp, outlier removal (>20k RPM), and Savitzky-Golay smoothing
  • Added frontend configurations and presets for the new analyzer types

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
front-end/src/types/ApiTypes.ts Added new analyzer enum values for smooth strict RPM processing
front-end/src/types/AnalyzerTypes.ts Added configuration entries for the new analyzer types
front-end/src/lib/subteamGraphPresets.ts Added graph presets for smooth strict RPM visualization
backend/src/main/java/com/mcmasterbaja/model/AnalyzerType.java Added enum values for new analyzer types
backend/src/main/java/com/mcmasterbaja/analyzer/SmoothStrictSecAnalyzer.java Implemented pipeline analyzer for secondary RPM smoothing
backend/src/main/java/com/mcmasterbaja/analyzer/SmoothStrictPrimAnalyzer.java Implemented pipeline analyzer for primary RPM smoothing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

[AnalyzerType.SMOOTH_STRICT_PRIM]: {
title: 'Smooth Strict PRIM',
description:
'Runs StrictTimstamp and Sgolay for RPM PRIM',
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in 'StrictTimstamp' - it should be 'StrictTimestamp'.

Copilot uses AI. Check for mistakes.
[AnalyzerType.SMOOTH_STRICT_SEC]: {
title: 'Smooth Strict SEC',
description:
'Runs StrictTimstamp and Sgolay for RPM SEC',
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in 'StrictTimstamp' - it should be 'StrictTimestamp'.

Copilot uses AI. Check for mistakes.

// 3) Savitzky-Golay for the outlier-removed output
Analyzer sGolay = factory.getAnalyzer(AnalyzerType.SGOLAY);
AnalyzerParams sg = new AnalyzerParams();
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same file is being passed twice to setInputFiles. This appears to be intentional for the SGOLAY analyzer, but consider adding a comment explaining why the same file is duplicated.

Suggested change
AnalyzerParams sg = new AnalyzerParams();
AnalyzerParams sg = new AnalyzerParams();
// The SGOLAY analyzer expects an input file for each input column.
// Since both "Timestamp (ms)" and "RPM PRIM" are in the same file, we pass the same file twice intentionally.

Copilot uses AI. Check for mistakes.
// 3) Savitzky-Golay for the outlier-removed output
Analyzer sGolay = factory.getAnalyzer(AnalyzerType.SGOLAY);
AnalyzerParams sg = new AnalyzerParams();
sg.setInputFiles(new String[] {outlierOut, outlierOut});
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same file is being passed twice to setInputFiles. This appears to be intentional for the SGOLAY analyzer, but consider adding a comment explaining why the same file is duplicated.

Copilot uses AI. Check for mistakes.
@hydrowoxy hydrowoxy marked this pull request as draft October 1, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants