ction, f, k) {
    var result = [];
    for(var i in dataSet) {
      result.push({point: transformFunction(dataSet[i].point, f, k), output: dataSet[i].output});
    }
    return result;
  }

  window.lineArray = function(text) {
    return text.split('\n');
  }

  window.getDataSetFromLineArray = function(lineArray) {
    var lineRegExp = new RegExp(/\s*(\S+)\s+(\S+)\s+(\S+)\s*/);
    var result = [];
    for(var i in lineArray) {
      var line = lineArray[i];
      if(!line || line === '') continue;
    