-
Notifications
You must be signed in to change notification settings - Fork 2
added outlier removal >20k to smooth strict rpm pipeline #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
hydrowoxy
wants to merge
15
commits into
main
Choose a base branch
from
289-smooth-rpm-with-stricttimestamp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7a7832f
added strict smooth prim/sec analyzer for sgolay and stricttimestamp …
hydrowoxy cee0540
lint
hydrowoxy 0eff754
remove redundant logs
hydrowoxy 7f05d68
Fix syntax error in ApiTypes.ts
hydrowoxy a2e705c
Delete front-end/src/pages/Homepage/dataSelect.tsx
hydrowoxy a0709d0
Delete front-end/src/pages/Homepage/dataSelect.module.scss
hydrowoxy d44993b
Fix syntax error in ApiTypes.ts
hydrowoxy fb8e011
fix timestamp typo
hydrowoxy 0de9be8
added presets
hydrowoxy 7a4004b
added combined preset
hydrowoxy 2d3ff4a
rearranged presets
hydrowoxy 0e6688b
added outlier removal to the pipeline for values >20k
hydrowoxy e8ef27b
Merge branch 'main' into 289-smooth-rpm-with-stricttimestamp
hydrowoxy 7ecd2de
Update AnalyzerTypes.ts
hydrowoxy 0b178b9
Refactor RPM preset names and descriptions
hydrowoxy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ public class SmoothStrictSecAnalyzer extends Analyzer { | |
| @SneakyThrows | ||
| public void analyze(AnalyzerParams params) { | ||
| extractParams(params); | ||
| logger.info("Running pipeline: StrictTimestamp -> sGolay (single file RPM)"); | ||
| logger.info("Running pipeline: StrictTimestamp -> Outlier Removal -> sGolay (SEC RPM)"); | ||
|
|
||
| // Single file and column | ||
| String file = params.getInputFiles()[0]; | ||
|
|
@@ -37,14 +37,33 @@ public void analyze(AnalyzerParams params) { | |
| strict.analyze(sp); | ||
| String strictOut = sp.getOutputFiles()[0]; | ||
|
|
||
| // 2) Savitzky-Golay for the strict timestamp output | ||
| // 2) Outlier removal for RPM > 20000 | ||
| Analyzer outlierRemoval = factory.getAnalyzer(AnalyzerType.DELETE_OUTLIER); | ||
| AnalyzerParams or = new AnalyzerParams(); | ||
| or.setInputFiles(new String[] {strictOut}); | ||
| or.setInputColumns(new String[] {"Timestamp (ms)", "RPM SEC"}); | ||
| or.setType(AnalyzerType.DELETE_OUTLIER); | ||
| or.setOptions( | ||
| new String[] { | ||
| "0", // minX (minimum timestamp - keep all) | ||
| "999999999", // maxX (maximum timestamp - keep all) | ||
| "0", // minY (minimum RPM - keep all above 0) | ||
| "20000" // maxY (maximum RPM - remove above 20000) | ||
| }); | ||
| or.generateOutputFileNames(); | ||
| outlierRemoval.analyze(or); | ||
| String outlierOut = or.getOutputFiles()[0]; | ||
|
|
||
| // 3) Savitzky-Golay for the outlier-removed output | ||
| Analyzer sGolay = factory.getAnalyzer(AnalyzerType.SGOLAY); | ||
| AnalyzerParams sg = new AnalyzerParams(); | ||
| sg.setInputFiles(new String[] {strictOut, strictOut}); | ||
| sg.setInputFiles(new String[] {outlierOut, outlierOut}); | ||
|
||
| sg.setInputColumns(new String[] {"Timestamp (ms)", "RPM SEC"}); | ||
| sg.setType(AnalyzerType.SGOLAY); | ||
| sg.setOptions(new String[] {"101", "3"}); | ||
| sg.setOutputFiles(params.getOutputFiles()); | ||
| sGolay.analyze(sg); | ||
|
|
||
| logger.info("Completed pipeline: StrictTimestamp -> Outlier Removal -> sGolay for SEC RPM"); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.