DoubleVector vecFunc = new DoubleVector(arrFunc);
DoubleVector vecTarg = new DoubleVector(arrTarg);
double dblDis = vecFunc.subtract(vecTarg).norm();
return dblDis/vecTarg.norm();
}
/**
* Build a table of function values for comparison. Each table row consists
* of the function index, then corresponding function values, all separated by