Usage of org.apache.commons.math3

Question to @maintainers

I’m maintaining the solarforecast binding which is giving the forecast as stair function for e.g. 60 minutes with a constant average power value. My wish is to interpolate these values with a profound function. The org.apache.commons.math3 package is providing these interpolations out of the box and first tests showing good results.

Building project with maven shows:

[WARNING] org.openhab.binding.solarforecast.internal.solcast.SolcastObjectMath.java:[35]
The package org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction should not be used.

Is there an alternative solution available? Or maybe it’s possible to make an exception?

You’d better ask this in an github issue.

I think you greatly overestimate the amount of feedback you get on GitHub :wink:

I would have answered if I knew the answer, but I don’t. Apache commons is a large beast full of CVEs that leads to an “update race” just by being present, so I understand very well if it’s not wanted. Normally, I’d suggest just extracting/reimplementing the things you need, but if this is very complicated math that relies on a large number of other methods, that might not be feasible.

As @weymann also asks for a possible excemption, this has to be discussed on github to reach all maintainers, not only the ones active here.

I get the idea, my point is that posting something on GitHub often is similar to shouting into a void. So, it’s impossible to tell if you “reach” and are ignored, or if you don’t reach anybody at all. I’m not saying that it shouldn’t be posted on GitHub, but I think it’s reasonable to at least try to “probe” the idea here.

Exactly this was my idea. Just wanted to collect some first feedback here in the development section before I request something via github.

Yes, I understand this topic. I checked already maven repo and this one is standalone, only junit4 dependency for testing.

1 Like

Let’s hope somebody with some actual information can find the time to answer, I just don’t have anything to add.

np, let’s see