Comments (8)
I agree that we could use all of those.
from statsbase.jl.
inplace arithmetics (add!, subtract!, multiply!, etc)
add/subtract a vector (or its scaled version) to each column/row inlace
I'm not sure we need new functions for these; broadcast!
works well enough for me.
inplace of several widely used math functions (abs!, abs2!, sqrt!, exp!, and log!)
It is possible to use broadcast!
for these as well, but it's awkward. It may make sense to have separate functions. (It's also possible to use map!
, but there is a substantial performance cost that broadcast!
avoids by effectively specializing on the function argument.)
weighted sum
I will add this to #66 as you suggested.
sum/mean of abs/square (both weighted & non-weighted)
I can handle this, too. Unweighted sum of squares is just Base.sumabs2
(maybe this should be exported from Base?), and I've implemented a variant of Base.sumabs2
that accepts weights for #53, although the PR is not quite ready. abs
is similar enough that I can reuse the implementation.
maximum absolute value
Sounds good.
from statsbase.jl.
I agree these are useful, but shouldn't the first 3 go to Base instead? (I really wish there were an inplace operator so that these functions would not be needed at all, but waiting for it...)
from statsbase.jl.
Using broadcast! can do inplace arithmetics, but it is cumbersome and not pretty.
from statsbase.jl.
Certainly the last 3 would make sense here.
The first 3 aren't really stats related, but until we have proper inplace support in Base, I guess it would make sense to keep them here. Perhaps they shouldn't be exported though?
from statsbase.jl.
@lindahua, I wanted to ask if there is a roadmap to remove NumericExtensions
completely. I use your package in various places and wanted to be up-to-date with the ongoing developments so as to modify my coding accordingly - what is the plan at the moment?
from statsbase.jl.
@scidom NumericExtensions is still being maintained, and bugs will be fixed as needed. You don't have to change those packages at the moment.
In long term, we are trying to look for a better way to provide basic computational support.
from statsbase.jl.
Close this as many of these functions have already been implemented in Base.
from statsbase.jl.
Related Issues (20)
- Extend the Options for `closed` in `fit()` to Have `:both` and `:neither` HOT 1
- How to get critical value with native julia code? HOT 1
- Zygote rrule for percentile() HOT 2
- `proportionmap` input types inconsistent with docs
- AbstractVector{T} not accepting Vector{Any} as argument HOT 1
- `proportionmap` should accept any iterator
- make normalization optional in `crosscov` and `crosscor` HOT 3
- Histogram fit does not exploit structure in edges HOT 1
- `pairwise` does not work for `corkendall` or `corspearman` HOT 1
- wsum keyword is no longer supported but still in docs? HOT 1
- tiedrank does not support dims HOT 2
- Change corkendall to be multi-threaded and handle missing values HOT 2
- Buffer overflow using `inverse_rle`
- support Unitful.jl
- Add varcorrection to the API? HOT 1
- Aqua.jl found ambiguities HOT 6
- What is breaking from 0.33 to 0.34 HOT 3
- Countmap is 100x slower than it should be in some cases HOT 7
- mean(f, x, weights) not supported
- `argquantile(s)` function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statsbase.jl.