Skip to content

Commit

Permalink
Restore bootstrap method that was accidentally removed (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Aug 17, 2021
1 parent cb584ad commit d139890
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# History of LombScargle.jl

## v1.0.1 (2021-08-17)

### Bug Fixes

* Restore `bootstrap(::Integer, ::PeriodogramPlan)` method that was accidentally
removed in v0.5.1.

## v1.0.0 (2020-11-22)

### New Features
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LombScargle"
uuid = "fc60dff9-86e7-5f2f-a8a0-edeadbb75bd9"
authors = ["Mosè Giordano <mose@gnu.org>"]
version = "1.0.0"
version = "1.0.1"

[deps]
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Expand Down
3 changes: 3 additions & 0 deletions src/bootstrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ end
bootstrap(rng::AbstractRNG, N::Integer, p::PeriodogramPlan) =
Bootstrap(sort!([maximum(normalize!(_periodogram!(shuffle(rng, p.times), p), p)) for _ in 1:N], rev = true))

bootstrap(N::Integer, p::PeriodogramPlan) =
bootstrap(_default_rng(), N, p)

bootstrap(rng::AbstractRNG, N::Integer, t::AbstractVector{<:Real}, rest...; kwargs...) =
bootstrap(rng, N, plan(t, rest...; kwargs...))

Expand Down

2 comments on commit d139890

@giordano
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/43003

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.1 -m "<description of version>" d139890a98ccfee7abc65b591bdec41940c14413
git push origin v1.0.1

Please sign in to comment.