Skip to content
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

Rhs2116 step size algorithm now accounts for requested amplitude #393

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

bparks13
Copy link
Member

When calculating the error to find the optimum step size, the algorithm now utilizes the requested amplitude so that in the case when no stimuli are present, the error is correctly modified for each step size and the appropriate size is chosen for the requested amplitude

- When calculating the error to find the optimum step size, the algorithm now utilizes the requested amplitude so that in the case when no stimuli are present, the error is correctly modified for each step size and the appropriate size is chosen for the requested amplitude
@bparks13 bparks13 requested a review from jonnew December 23, 2024 17:06
@bparks13 bparks13 added this to the 0.4.3 milestone Dec 23, 2024
- From review comments, simplified the error calculation by moving ternary operators inside the CalculateError method
- Additionally, step size index now accounts for multiple step sizes with the same error, preferentially choosing the step size that is closest to the original step size to minimize changes in absolute amplitude
@bparks13 bparks13 requested a review from jonnew January 3, 2025 20:37
Copy link
Member

@jonnew jonnew left a comment

Choose a reason for hiding this comment

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

These changes seem to work well. I added some comments to the intial issue, but they probably warrant a separate PR, so Im going to approve this.

@bparks13 bparks13 merged commit 067989b into main Jan 17, 2025
8 checks passed
@bparks13 bparks13 deleted the issue-392 branch January 17, 2025 21:43
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.

Rhs2116 step size algorithm does not account for requested amplitude
2 participants