Index: Ringtoets/Common/src/Ringtoets.Common.Service/ProbabilityAssessmentService.cs =================================================================== diff -u -r678dc8c8dbb01fd889a082ae88c9f9d42f597a10 -r1957c54820f55f8de15e34add4577a78b2e96850 --- Ringtoets/Common/src/Ringtoets.Common.Service/ProbabilityAssessmentService.cs (.../ProbabilityAssessmentService.cs) (revision 678dc8c8dbb01fd889a082ae88c9f9d42f597a10) +++ Ringtoets/Common/src/Ringtoets.Common.Service/ProbabilityAssessmentService.cs (.../ProbabilityAssessmentService.cs) (revision 1957c54820f55f8de15e34add4577a78b2e96850) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using MathNet.Numerics.Distributions; using Ringtoets.Common.Data.Probability; @@ -31,19 +30,16 @@ public static class ProbabilityAssessmentService { /// - /// Calculates the given and . + /// Calculates based on the provided parameters. /// - /// The probability assesment input to use for the calculation. + /// The return period to assess for. + /// The contribution of the failure mechanism as a percentage (0-100) + /// to the total of the failure probability of the assessment section. + /// The 'N' parameter used to factor in the 'length effect'. /// The reliability to use for the calculation. - /// Thrown when is null. - public static ProbabilityAssessmentOutput Calculate(ProbabilityAssessmentInput probabilityAssessmentInput, double reliability) + public static ProbabilityAssessmentOutput Calculate(double norm, double contribution, double lengthEffectN, double reliability) { - if (probabilityAssessmentInput == null) - { - throw new ArgumentNullException("probabilityAssessmentInput"); - } - - var requiredProbability = RequiredProbability(probabilityAssessmentInput.Contribution / 100.0, probabilityAssessmentInput.Norm, probabilityAssessmentInput.N); + var requiredProbability = RequiredProbability(contribution / 100.0, norm, lengthEffectN); var probability = ReliabilityToProbability(reliability); var requiredReliability = ProbabilityToReliability(requiredProbability); var factorOfSafety = FactorOfSafety(reliability, requiredReliability);