Created
January 9, 2015 00:30
-
-
Save digorithm/ba916354424fce30357d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void addTrendLine(Plot2DPanel plot, boolean removePrev){ | |
if (removePrev){ | |
plot.removePlot(trendline); | |
} | |
double[] yEnd = new double[initial_data.x.length]; | |
for (int i=0; i<initial_data.x.length; i++) | |
yEnd[i] = hypothesisFunction(initial_data.x[i]); | |
trendline = plot.addLinePlot("final", initial_data.x, yEnd); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment