package com.nus;

/**
 * Created by duy on 20/1/15.
 */
public interface IErrorFunc {

  /**
   * Evaluates the error function with input parameters
   *
   * @param args Parameter variables
   * @return Double value of the error function
   */
  public double eval(Object... args);

  /**
   * Computes the Jacobian vector of the error function with input parameters
   *
   * @param args Parameter variables
   * @return Jacobian vector of the error function
   */
  public double[] jacobian(Object... args);

  /**
   * Computes the Hessian matrix of the error function with input parameters
   *
   * @param args Parameter variables
   * @return Hessian matrix of the error function
   */
  public double[][] hessian(Object... args);
}

@@ -123,32 +123,45 @@
 tion with input 
+optimization 
 parameters%0A   *%0A
@@ -145,32 +145,38 @@
 zation parameter
+ value
 s%0A   *%0A   * @par
@@ -182,32 +182,115 @@
 ram 
-args Parameter variables
+optParams A vector of real values of parameters used in optimizing%0A   *                  the error function
 %0A   
@@ -361,29 +361,33 @@
 le eval(
-Object... arg
+double%5B%5D optParam
 s);%0A%0A  /
@@ -447,32 +447,50 @@
 ction with input
+%0A   * optimization
  parameters%0A   *
@@ -475,32 +475,38 @@
 zation parameter
+ value
 s%0A   *%0A   * @par
@@ -512,32 +512,115 @@
 ram 
-args Parameter variables
+optParams A vector of real values of parameters used in optimizing%0A   *                  the error function
 %0A   
@@ -696,37 +696,41 @@
 %5B%5D jacobian(
-Object... arg
+double%5B%5D optParam
 s);%0A%0A  /**%0A 
@@ -793,16 +793,34 @@
 th input
+%0A   * optimization
  paramet
@@ -821,16 +821,22 @@
 arameter
+ value
 s%0A   *%0A 
@@ -850,32 +850,115 @@
 ram 
-args Parameter variables
+optParams A vector of real values of parameters used in optimizing%0A   *                  the error function
 %0A   
@@ -1042,21 +1042,25 @@
 ian(
-Object... arg
+double%5B%5D optParam
 s);%0A

Simplify Error Function interface