Exemple #1
0
 @Override
 public double findMinimum(Var y, Var fx) {
   Numeric values = Numeric.empty();
   for (int i = 0; i < y.rowCount(); i++) {
     values.addValue(y.value(i) - fx.value(i));
   }
   double result = Quantiles.from(values, new double[] {0.5}).values()[0];
   if (Double.isNaN(result)) {
     WS.println();
   }
   return result;
 }
 @Override
 public String name() {
   return "MultiQuadratic(c=" + WS.formatFlex(c) + ")";
 }