public IScenarioUtilizedTimesResultElement Calculate( IScenarioUtilizedTimesResultElementFactory scenarioUtilizedTimesResultElementFactory, IΛIndexElement ΛIndexElement, Isrt srt, Ih h, In n, IxHat xHat) { return(scenarioUtilizedTimesResultElementFactory.Create( ΛIndexElement, srt.Value.Select(w => xHat.GetElementAtAsint( w.sIndexElement, w.rIndexElement, w.tIndexElement) * n.GetElementAtAsint( w.sIndexElement, ΛIndexElement) * h.GetElementAtAsdecimal( w.sIndexElement, ΛIndexElement)) .Sum())); }
public IScenarioTotalTimesResultElement Calculate( IScenarioTotalTimesResultElementFactory scenarioTotalTimesResultElementFactory, IΛIndexElement ΛIndexElement, Isrt srt, IH H, IxHat xHat) { return(scenarioTotalTimesResultElementFactory.Create( ΛIndexElement, srt.Value.Select(w => xHat.GetElementAtAsint( w.sIndexElement, w.rIndexElement, w.tIndexElement) * H.Value.Value.Value) .Sum())); }
public ISurgeonScenarioNumberPatientsResultElement Calculate( ISurgeonScenarioNumberPatientsResultElementFactory surgeonScenarioNumberPatientsResultElementFactory, IsIndexElement sIndexElement, IΛIndexElement ΛIndexElement, Irt rt, In n, IxHat xHat) { return(surgeonScenarioNumberPatientsResultElementFactory.Create( sIndexElement, ΛIndexElement, rt.Value .Select(a => xHat.GetElementAtAsint( sIndexElement, a.rIndexElement, a.tIndexElement) * n.GetElementAtAsint( sIndexElement, ΛIndexElement)) .Sum())); }