Uses of Class
edu.cnu.mdi.splot.fit.FitResult
Packages that use FitResult
Package
Description
Data-model classes for the
splot plotting library.-
Uses of FitResult in edu.cnu.mdi.splot.fit
Methods in edu.cnu.mdi.splot.fit that return FitResultModifier and TypeMethodDescriptionprotected static FitResultALeastSquaresFitter.buildFitResult(IFitStringGetter stringGetter, double[] params, org.apache.commons.math3.linear.RealMatrix covariance, int nPoints, int nParams, org.apache.commons.math3.fitting.leastsquares.LeastSquaresOptimizer.Optimum opt) Build a FitResult from the given components.final FitResultALeastSquaresFitter.fit(double[] x, double[] y) Fit with no weights, no initial guess override, and no parameter validator override.final FitResultALeastSquaresFitter.fit(double[] x, double[] y, double[] weights) Fit with weights but no initial guess override and no parameter validator override.final FitResultALeastSquaresFitter.fit(double[] x, double[] y, double[] weights, double[] initialGuessOverride, org.apache.commons.math3.fitting.leastsquares.ParameterValidator validatorOverride) Full fit entry point.ErfcFitter.fit(double[] x, double[] y, double[] weights, ErfcFitter.ParameterBounds bounds, double[] initialGuess) Expert overload: fit with optional weights, optional bounds, and optional initial guess.ErfFitter.fit(double[] x, double[] y, double[] weights, ErfFitter.ParameterBounds bounds, double[] initialGuess) Expert overload: fit with optional weights, optional bounds, and optional initial guess.GaussianFitter.fit(double[] x, double[] y, double[] weights, GaussianFitter.ParameterBounds bounds, double[] initialGuess) Expert overload: fit with optional weights, optional bounds, and optional initial guess.IFitter.fit(double[] x, double[] y) Fits a curve to the given data points, returning the fit result.IFitter.fit(double[] x, double[] y, double[] weights) Fits a curve to the given data points with weights, returning the fit result.MultiGaussianFitter.fit(double[] x, double[] y, double[] weights, MultiGaussianFitter.ParameterBounds bounds, double[] initialGuess) Expert overload: fit with optional weights, optional bounds, and optional initial guess.PolynomialFitter.fit(double[] x, double[] y, double[] weights, PolynomialFitter.ParameterBounds bounds, double[] initialGuess) Fit with optional weights, bounds, and explicit initial guess.static FitResultPolynomialFitter.fit(int degree, double[] x, double[] y) Convenience: fit a polynomial of a given degree with unit weights.static FitResultPolynomialFitter.fit(int degree, double[] x, double[] y, double[] weights) Convenience: fit a polynomial of a given degree with supplied weights.Methods in edu.cnu.mdi.splot.fit with parameters of type FitResultModifier and TypeMethodDescriptionabstract EvaluatorALeastSquaresFitter.asEvaluator(FitResult fit) Create an evaluator for the fit result.ErfcFitter.asEvaluator(FitResult fit) ErfFitter.asEvaluator(FitResult fit) ExponentialDecayFitter.asEvaluator(FitResult fit) Returns anEvaluatorthat computesA * exp(-x / τ) + Cfrom the supplied fit result.GaussianFitter.asEvaluator(FitResult fit) Build a value getter using the fitted parameters.LorentzianFitter.asEvaluator(FitResult fit) Returns anEvaluatorthat computesA * (Γ/2)² / [(x − x₀)² + (Γ/2)²] + B.MultiGaussianFitter.asEvaluator(FitResult fit) PolynomialFitter.asEvaluator(FitResult fit) Create anEvaluatorthat evaluates this polynomial using Horner's method.PowerLawFitter.asEvaluator(FitResult fit) Returns anEvaluatorthat computesA * x^n + C. -
Uses of FitResult in edu.cnu.mdi.splot.pdata
Methods in edu.cnu.mdi.splot.pdata that return FitResultModifier and TypeMethodDescriptionACurve.fitResult()protected FitResultACurve.fitWithOptionalWeights(IFitter fitter, FitVectors v) Common pattern: if weights exist, call the weighted fit overload; otherwise call fit(x,y).Methods in edu.cnu.mdi.splot.pdata with parameters of type FitResultModifier and TypeMethodDescriptionfinal voidACurve.setFitResult(FitResult fitResult) Set the fit result and notify listeners that the fit has changed.