Giter Club home page Giter Club logo

Comments (8)

johnmyleswhite avatar johnmyleswhite commented on May 31, 2024

I agree that we could use all of those.

from statsbase.jl.

simonster avatar simonster commented on May 31, 2024

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.

nalimilan avatar nalimilan commented on May 31, 2024

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.

lindahua avatar lindahua commented on May 31, 2024

Using broadcast! can do inplace arithmetics, but it is cumbersome and not pretty.

from statsbase.jl.

simonbyrne avatar simonbyrne commented on May 31, 2024

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.

papamarkou avatar papamarkou commented on May 31, 2024

@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.

lindahua avatar lindahua commented on May 31, 2024

@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.

lindahua avatar lindahua commented on May 31, 2024

Close this as many of these functions have already been implemented in Base.

from statsbase.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.