public ParachutePlan(MechJebModuleLandingAutopilot _autopliot) { // Create the linear regression for storing previous prediction results this.regression = new LinearRegression(dataSetSize); // Store the previous however many predictions // Take a reference to the landing autopilot module that we are working for. this.autoPilot = _autopliot; // Take a note of which body this parachute plan is for. If we go to a different body, we will need a new plan! this.body = _autopliot.vessel.orbit.referenceBody; }
// Throw away any old data, and create a new empty dataset public void ClearData() { // Create the linear regression for storing previous prediction results this.regression = new LinearRegression(dataSetSize); // Stored the previous 20 predictions }