I\'m trying to develop an application that would compute the same trend lines that excel does, but for larger datasets.
You can use different kinds of interpolators available in org.apache.commons.math3.analysis.interpolation, including e.g., LinearInterpolator, LoessInterpolator and NevilleInterpolator.
org.apache.commons.math3.analysis.interpolation