public void setInterpolationMethod(int interpolationMethod) {
		switch(interpolationMethod) {
			case INTERPOLATE_REGRESSION:
				calculateBestFitLine();
			case INTERPOLATE_LEFT:
			case INTERPOLATE_RIGHT:
			case INTERPOLATE_LINEAR:
				this.interpolationMethod = interpolationMethod;
				break;
			default:
				this.interpolationMethod = INTERPOLATE_LINEAR;
		}
	}