private IResidualCalculator createCalculator(LLOQMode lloqMode) { // in case of log scale can arise problems, therefore different LLOQMode methods are available if (lloqMode == LLOQModes.OnlyObservedData) { return(_container.Resolve <ResidualCalculatorForOnlyObservedData>()); } if (lloqMode == LLOQModes.SimulationOutputAsObservedDataLLOQ) { return(_container.Resolve <ResidualCalculatorForSimulationOutputAsObservedDataLLOQ>()); } throw new ArgumentOutOfRangeException(nameof(lloqMode)); }
public override string Convert(LLOQMode valueToConvert, TSerializationContext context) { return(valueToConvert?.Name); }