Package jdistlib.inference.solver
Class AlgebraicSolver
java.lang.Object
jdistlib.inference.solver.AlgebraicSolver
Finite-difference Newton solver for small and medium dense algebraic systems.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSolver controls.static final classConverged root and diagnostic counts. -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleinfinityNorm(double[] values) static AlgebraicSolver.Resultsolve(AlgebraicSystem system, double[] initial, double[] parameters, double[] data, AlgebraicSolver.Options options) Solves frominitial; the caller's arrays are never modified.static SensitivityResultsolveWithSensitivities(AlgebraicSystem system, double[] initial, double[] parameters, double[] data, AlgebraicSolver.Options options) Solves the system and differentiates the root with respect to parameters using the implicit-function identitydx/dp = -Jx^-1 Jp.
-
Method Details
-
solve
public static AlgebraicSolver.Result solve(AlgebraicSystem system, double[] initial, double[] parameters, double[] data, AlgebraicSolver.Options options) Solves frominitial; the caller's arrays are never modified. -
solveWithSensitivities
public static SensitivityResult solveWithSensitivities(AlgebraicSystem system, double[] initial, double[] parameters, double[] data, AlgebraicSolver.Options options) Solves the system and differentiates the root with respect to parameters using the implicit-function identitydx/dp = -Jx^-1 Jp. -
infinityNorm
public static double infinityNorm(double[] values)
-