Skip to content

Fix shift value for confidence interval#202

Open
StephenNneji wants to merge 2 commits intoRascalSoftware:mainfrom
StephenNneji:fix_scale_again
Open

Fix shift value for confidence interval#202
StephenNneji wants to merge 2 commits intoRascalSoftware:mainfrom
StephenNneji:fix_scale_again

Conversation

@StephenNneji
Copy link
Contributor

@StephenNneji StephenNneji commented Mar 16, 2026

I missed fixing shift value on confidence interval

Copy link
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

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

I see that this change is to match up the shift used for the confidence intervals with the one used for the data elsewhere in the plotting module. However, I'm not sure that the "+1" is right here. For the first four values of i, with a shift_value of 100, we have div = 1, 100, 1000, 10000 - i.e., the factor 10 is missing. Looking at a plot of the current behaviour, for the second contrast the current behaviour gives the shown confidence region, whist this change gives the data. What do you think?

Image

@DrPaulSharp
Copy link
Collaborator

I can confirm the same bug is in the matlab - it should be i-1 there. I've a branch ready to go if you agree with me here.

Copy link
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

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

All good!

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