Index: Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilProfile.cs =================================================================== diff -u -rbe4427a66ef77dfa213048b0a823824ea679bce3 -r76aba900dac58a4328145a2946b774ebd4a37aa5 --- Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilProfile.cs (.../StochasticSoilProfile.cs) (revision be4427a66ef77dfa213048b0a823824ea679bce3) +++ Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilProfile.cs (.../StochasticSoilProfile.cs) (revision 76aba900dac58a4328145a2946b774ebd4a37aa5) @@ -74,13 +74,26 @@ if (!probabilityValidityRange.InRange(value)) { throw new ArgumentOutOfRangeException( - nameof(value), + null, string.Format( Resources.StochasticSoilProfile_Probability_Should_be_in_range_0_, probabilityValidityRange.ToString(FormattableConstants.ShowAtLeastOneDecimal, CultureInfo.CurrentCulture))); } probability = value; } } + + /// + /// Updates the probability of the + /// by adding . + /// + /// The amount to increase the + /// with. + /// Thrown when the + /// is outside the range [0, 1]. + public void AddProbability(double probabilityToAdd) + { + Probability += probabilityToAdd; + } } } \ No newline at end of file