/// <summary> /// Add intensity and mass error (if needed) to the given chromatogram. /// </summary> public void AddPoint(int chromatogramIndex, float intensity, float?massError, BlockWriter writer) { if (MassErrors != null) { // ReSharper disable once PossibleInvalidOperationException MassErrors.Add(chromatogramIndex, massError.Value, writer); // If massError is required, this won't be null (and if it is, we want to hear about it) } Intensities.Add(chromatogramIndex, intensity, writer); }
/// <summary> /// Add an intensity value to the given chromatogram. /// </summary> public void AddIntensity(int chromatogramIndex, float intensity, BlockWriter writer) { Intensities.Add(chromatogramIndex, intensity, writer); }