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

Jittering etc. #9

Merged
merged 15 commits into from
Apr 15, 2024
Merged

Jittering etc. #9

merged 15 commits into from
Apr 15, 2024

Conversation

djmannion
Copy link
Collaborator

Adds jittering to the fits, with updates to the article and the addition of a changelog.

@djmannion
Copy link
Collaborator Author

Had to upgrade my R dependencies locally to get the plot tests to match.

Copy link
Collaborator

@mariadelmarq mariadelmarq left a comment

Choose a reason for hiding this comment

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

Brilliant, thanks heaps!

#' of fits is `n + 1` (because the un-jittered start points are also fit).
#' * `prop`: The maximum jitter offset, as a proportion of the start
#' value (default of 0.5).
#' * `seed`: Seed for the random jitter generator (default is unseeded).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: what does it mean for the default to be unseeded? Is it that it chooses a random seed, that is not saved or displayed in any way, or something else?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Never mind, I answered it below :)


seed <- ifelse(
is.na(seed),
sample.int(n = .Machine$integer.max, size = 1),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here's my answer to the above!

@mariadelmarq
Copy link
Collaborator

@djmannion Should we be incrementing the minor to 0.2.0 for this release?

@djmannion
Copy link
Collaborator Author

@djmannion Should we be incrementing the minor to 0.2.0 for this release?

I wasn't sure if there was anything else you wanted to add for a 0.2.0 release so kept this branch at 'development'.

@djmannion
Copy link
Collaborator Author

But I think it certainly warrants bumping up to 0.2.0 irrespective of any other changes.

@mariadelmarq mariadelmarq merged commit 9480e22 into master Apr 15, 2024
6 checks passed
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.

None yet

2 participants