Beispiel #1
0
        public void UpdateDistributedParameterTo3_1_3(IDistributedParameter distributedParameter)
        {
            var geoSDParameter  = distributedParameter.GetSingleChildByName <IParameter>(Constants.Distribution.GEOMETRIC_DEVIATION);
            var constantFormula = ((ConstantFormula)geoSDParameter.Formula);

            constantFormula.Value = Math.Exp(constantFormula.Value);
        }
        private DistributionParameterDTO getValueForDistrubutionPropertyFromChild(string childName, IDistributedParameter distributedParameter)
        {
            var parameter = distributedParameter.GetSingleChildByName <IParameter>(childName);

            if (parameter == null)
            {
                return new DistributionParameterDTO(dummyParameter())
                       {
                           Dimension = _dimensionFactory.Dimension(Constants.Dimension.DIMENSIONLESS)
                       }
            }
            ;

            return(mapFrom(parameter));
        }