Hello! Is there KMath analog for org.apache.commons.math3.analysis.interpolation.PiecewiseBicubicSplineInterpolatingFunction?
02/14/2023, 8:12 AM
I did not work on 2D interpolation. There is a wrapper for commons math in https://github.com/SciProgCentre/kmath/tree/dev/kmath-commons, but it does include 2d interpolation. Could you please create an issue with a problem description, so we can add either wrapper or multiplatform implementation in the next release?
The problem with 2D interpolation is that it is not clear how the data and result are represented. For example numpy uses bizarre meshes, but as far as I can remember, it could not handle non-uniform points.
02/14/2023, 8:50 AM
Alexander, thanks for answering! I'm developing Kotlin multiplatform project for working with surfaces. Surface is given by points matrix and to be able to render it at any scale I need to interpolate. Now client is using Jetpack Compose Canvas (working in JVM Desktop and Android for now). For interpolation I'm using PiecewiseBicubicSplineInterpolatingFunction by Apache Commons Math. Now I'm trying to adopt it for JS target and looking for math multiplatform library.