Returns the "predicted" y value associated with the supplied x value, based on the data that has been added to the model when this method is activated.
predict(x) = intercept + slope * x
Preconditions:
At least two observations (with at least two different x values) must have been added before invoking this method. If this method is invoked before a model can be estimated, Double,NaN is returned.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.