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

add efficient mean and median for ranges #8089

Merged
merged 2 commits into from
Aug 24, 2014

Conversation

stevengj
Copy link
Member

These are useful (see e.g. JuliaGizmos/Interact.jl#9) and there is no reason for them not to be fast. I actually didn't realize that they were missing.

@andreasnoack
Copy link
Member

I think it needs a rebase

@stevengj
Copy link
Member Author

Should be fixed now.

@Keno
Copy link
Member

Keno commented Aug 22, 2014

Doesn't this fail for non-integer ranges?

@stevengj
Copy link
Member Author

@Keno, one of the test cases is a non-integer range. Why do you think it would fail?

@Keno
Copy link
Member

Keno commented Aug 22, 2014

Because iseven may not be defined.

@stevengj
Copy link
Member Author

@Keno, even a non-integer range has an integer length, and I'm only applying iseven to the length.

@Keno
Copy link
Member

Keno commented Aug 22, 2014

Of course. My fault.

@stevengj
Copy link
Member Author

Okay to merge?

@andreasnoack
Copy link
Member

Not a big deal, but why don't you just let median call mean? Besides that, I think it is ready.

@stevengj
Copy link
Member Author

@andreasnoackjensen, right, duh.

andreasnoack added a commit that referenced this pull request Aug 24, 2014
add efficient mean and median for ranges
@andreasnoack andreasnoack merged commit a08ae29 into JuliaLang:master Aug 24, 2014
@andreasnoack
Copy link
Member

Test time out seemed to be unrelated.

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

3 participants