Skip to content

replace R quantile function with collapse::fquantile#395

Open
LinearParadox wants to merge 7 commits intojinworks:mainfrom
LinearParadox:main
Open

replace R quantile function with collapse::fquantile#395
LinearParadox wants to merge 7 commits intojinworks:mainfrom
LinearParadox:main

Conversation

@LinearParadox
Copy link

the collapse::fquantile function is implemented in C, and much faster than the R function. Adding it leads to a pretty noticeable speedup, and only involves some minor changes.

Note I also changed the logic slightly to calculate the 0.5 quantile once instead of twice, and just manually calculating the mean:

(quant[[1]]+2*quant[[2]]+quant[[3]])/4

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.

1 participant