⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lmfunc.java

📁 Java实现的各种数学算法
💻 JAVA
字号:
// LMfunc.javapackage ZS.Solve;/** * Caller implement this interface to specify the * function to be minimized and its gradient. *  * Optionally return an initial guess and some test data, * though the LM.java only uses this in its optional main() test program. * Return null if these are not needed. */public interface LMfunc{  /**   * x is a single point, but domain may be mulidimensional   */  double val(double[] x, double[] a);  /**   * return the kth component of the gradient df(x,a)/da_k   */  double grad(double[] x, double[] a, int ak);  /**   * return initial guess at a[]   */  double[] initial();  /**   * return an array[4] of x,a,y,s for a test case;   * a is the desired final answer.   */  Object[] testdata();} //LMfunc

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -