byte[] calculateCodes(float[] angles) {
		byte[] codes = new byte[monomerCount];
		for (int i = monomerCount - 1; --i >= 2;) {
			float degrees = angles[i];
			codes[i] = ((degrees >= 10 && degrees < 120) ? CODE_RIGHT_HELIX
					: ((degrees >= 120 || degrees < -90) ? CODE_BETA_SHEET
							: ((degrees >= -90 && degrees < 0) ? CODE_LEFT_HELIX : CODE_NADA)));
		}
		return codes;
	}