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?
I think you greatly overestimate the amount of feedback you get on GitHub
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.
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.
Sorry, late to the party, but I also do not have much to add on the matter.
We did a huge effort to actually get rid of Apache Commons (which I had introduced in the initial openHAB codebase) due to various problems.
So no, there’s unfortunately no simple alternative. Typically people implement required functions in their own add-on, if they are simple and rather specific. More complex ones that might be interesting to others can also be contributed to the core (see e.g. here).