public PolCurve() { coeffs = new PolCoeffs(); xValues = new CombValues(); yValues = new CombValues(); }
//Function calculating the value resulting from the corresponding 2nd degree polynomial fit (the one defined by the input coefficients) public static double valueFromPol(PolCoeffs curCoeffs, double curX) { return curCoeffs.A + curCoeffs.B * curX + curCoeffs.C * curX * curX; }
public List<double> realVals; //Y (independent variable) values as read from the input file #endregion Fields #region Constructors public ValidCombination() { realVals = new List<double>(); calcVals = new List<RowVal>(); errors = new List<double>(); coeffs = new PolCoeffs(); dependentVars = new Combination(); independentVar = new Variable(); assessment = new Assessment(); }