public ItIndexElement Calculate( INormalFactory normalFactory, IRNBCalculation RNBCalculation, IΛIndexElement ΛIndexElement, It t, IExpectedValueI expectedValueI, IVarianceI varianceI, Iυ2 υ2) { return(t.Value .Select(i => KeyValuePair.Create( i, RNBCalculation.Calculate( normalFactory, i, ΛIndexElement, expectedValueI, varianceI, υ2.GetElementAtAsdecimal( ΛIndexElement)))) .OrderBy(i => i.Value) .LastOrDefault() .Key); }
public int Calculate( INormalFactory normalFactory, IRNBCalculation RNBCalculation, IΛIndexElement ΛIndexElement, It t, IExpectedValueI expectedValueI, IVarianceI varianceI, decimal υ2) { return((int)Math.Ceiling( t.Value .Select(i => RNBCalculation.Calculate( normalFactory, i, ΛIndexElement, expectedValueI, varianceI, υ2)) .Max())); }