private void performCalculationOnTrainingData() { SolveLeastSquares Solver = new SolveLeastSquares(); IsTrainingComplete = true; //Use data to calculate fitting equation Solver.setActiveSensors(ActiveSensor); Vector <double>[] trainingData = Solver.Solve(X, y); setTheta(trainingData); }
public double[] ApplyTransformation(int[] input, Vector <double>[] theta) { SolveLeastSquares Solver = new SolveLeastSquares(); return(Solver.ApplyTransformation(input, theta)); }