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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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
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