@@ -0,0 +1,702 @@
+package de.jungblut.math.minimize;%0D%0A%0D%0Aimport de.jungblut.math.DoubleVector;%0D%0Aimport de.jungblut.math.tuple.Tuple;%0D%0A%0D%0A/**%0D%0A * Online cost function interface to help a online miminizer to get a good%0D%0A * parameter set / minimum.%0D%0A */%0D%0Apublic interface OnlineCostFunction %7B%0D%0A%0D%0A  /**%0D%0A   * Evaluate the cost and gradient at the parameters theta with the given%0D%0A   * online input.%0D%0A   * %0D%0A   * @param theta the current parameter estimation.%0D%0A   * @param input the current online input.%0D%0A   * @return a tuple that contains cost in the first and the gradient on the%0D%0A   *         second dimension.%0D%0A   */%0D%0A  public Tuple%3CDouble, DoubleVector%3E evaluateCost(DoubleVector theta,%0D%0A      DoubleVector input);%0D%0A%0D%0A%7D%0D%0A

add online cost function for stochastic gradient descent