Hi,

I’ve found example code on site for curve fitting at:
https://commons.apache.org/proper/commons-math/userguide/fitting.html

It uses:
WeightedObservedPoints

I got this working in java/gradle with the dependency/import:
dependencies {
    compile 'org.apache.commons:commons-math3:3.6.+' // <-- This works.
only this is needed
}
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;

But I can’t figure out how to use it under version 4.
I tried some dependencies:

compile 'org.apache.commons:commons-math-parent:4.0-beta1'
implementation 'org.apache.commons:commons-math4-core:4.*'
implementation 'org.apache.commons:commons-math4-core:4.0-beta1'
implementation 'org.apache.commons:commons-math4-core:4.+'
compile 'org.apache.commons:commons-math4-core:4.+'
compile 'org.apache.commons:commons-statistics-distribution:1+'
compile 'org.apache.commons:commons-math4-legacy-core:4.+'
compile 'org.apache.commons:commons-math4:+'

But it all doesn’t exist or doesn’t provide WeightedObservedPoints.
Where is this package now for version 4?
My goal is actually to get PolynomialCurveFitter to work, so same question
for that package.

Regards,

Steven Verstoep

Reply via email to