Exemplo n.º 1
0
 private void DrawLinearRegression()
 {
     CalibrationChart.Series["LineærRegression"].Points.Clear();
     currentBl.LinearRegression(currentBl.GetCalibrationList());
     for (int i = 0; i < 5; i++) //ret 30 til. Skal være max spændingsværdi
     {
         CalibrationChart.Series["LineærRegression"].Points
         .AddXY(i, i * currentBl.GetSlope_() + currentBl.GetYintercept_());
     }
 }
Exemplo n.º 2
0
 private void DrawLinearRegression()
 {
     CalibrationChart.Series["LineærRegression"].Points.Clear();
     currentBl.LinearRegression(currentBl.GetCalibrationList()); //laver lineær regression over kalibreringslisten
     for (int i = 1; i < 2150; i++)                              //laver den linje der viser den lineære regression
     {
         CalibrationChart.Series["LineærRegression"].Points
         .AddXY(i, i * currentBl.GetSlope_() + currentBl.GetYintercept_());
     }
 }