Hi. Le dim. 4 juin 2023 à 18:58, Steven Verstoep <s.verst...@gmail.com> a écrit : > > 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.
This is all now under package "org.apache.commons.math4.legacy", e.g. https://commons.apache.org/proper/commons-math/javadocs/api-4.0-beta1/org/apache/commons/math4/legacy/fitting/WeightedObservedPoints.html Regards, Gilles --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org