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

Implement getMinIndex in C #65

Open
jakob-r opened this issue Aug 19, 2016 · 0 comments
Open

Implement getMinIndex in C #65

jakob-r opened this issue Aug 19, 2016 · 0 comments

Comments

@jakob-r
Copy link
Collaborator

jakob-r commented Aug 19, 2016

In it's actual state getMinIndex negates the input and calls the function getMaxIndex which is implemented in C and supposedly fast.
The negation decreases speed of getMinIndex slightly as the following benchmark shows:

library(microbenchmark)
library(ggplot2)
library(BBmisc)
x = rnorm(10000)
res = microbenchmark(getMinIndex(x), getMaxIndex(x), times = 1000, control = list(warmup = 1000))
autoplot(res)

image

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