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

Resample indices are abstract types #2

Open
williamjsdavis opened this issue Oct 2, 2023 · 0 comments
Open

Resample indices are abstract types #2

williamjsdavis opened this issue Oct 2, 2023 · 0 comments

Comments

@williamjsdavis
Copy link
Owner

Resample indices are abstract types. This is bad for performance:

https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-abstract-container

Minimum working example:

bootstrapStatistic(
    [1.,2.,3.], 
    sum, 
    CBBsampler, 
    2, 
    5
)

Gives:

BlockBootstrap.bootstrapResult(6.0, [8.0, 9.0, 10.0, 9.0, 8.0], Array[Integer[1, 2, 2, 3], Integer[3, 1, 2, 3], Integer[2, 3, 2, 3], Integer[3, 1, 2, 3], Integer[3, 1, 3, 1]], Array[[1.0, 2.0, 2.0, 3.0], [3.0, 1.0, 2.0, 3.0], [2.0, 3.0, 2.0, 3.0], [3.0, 1.0, 2.0, 3.0], [3.0, 1.0, 3.0, 1.0]])
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

No branches or pull requests

1 participant