Пример #1
0
        public IItemInformationFunction Build(IModelParameters modelParameters)
        {
            if (modelParameters.GetType() == typeof (TwoParamModelParameters))
            {
                return new TwoParamItemInformationFunction((TwoParamModelParameters) modelParameters);
            }
            if (modelParameters.GetType() == typeof(ThreeParamModelParameters))
            {
                return new ThreeParamItemInformationFunction((ThreeParamModelParameters) modelParameters);
            }

            throw new NotImplementedException();
        }
Пример #2
0
        public IProbabilityFunction Build(IModelParameters parameters)
        {
            if (parameters.GetType() == typeof (ThreeParamModelParameters))
            {
                return new ThreeParamProbabilityFunction((ThreeParamModelParameters)parameters);
            }
            if (parameters.GetType() == typeof(TwoParamModelParameters))
            {
                return new TwoParamProbabilityFunction((TwoParamModelParameters)parameters);
            }

            throw new NotImplementedException();
        }
        public IItemInformationFunction Build(IModelParameters modelParameters)
        {
            if (modelParameters.GetType() == typeof(TwoParamModelParameters))
            {
                return(new TwoParamItemInformationFunction((TwoParamModelParameters)modelParameters));
            }
            if (modelParameters.GetType() == typeof(ThreeParamModelParameters))
            {
                return(new ThreeParamItemInformationFunction((ThreeParamModelParameters)modelParameters));
            }
            if (modelParameters.GetType() == typeof(FourParamModelParameters))
            {
                return(new FourParamItemInformationFunction((FourParamModelParameters)modelParameters));
            }

            throw new NotImplementedException();
        }
Пример #4
0
        public IProbabilityFunction Build(IModelParameters parameters)
        {
            if (parameters.GetType() == typeof(FourParamModelParameters))
            {
                return(new FourParamProbabilityFunction((FourParamModelParameters)parameters));
            }
            if (parameters.GetType() == typeof(ThreeParamModelParameters))
            {
                return(new ThreeParamProbabilityFunction((ThreeParamModelParameters)parameters));
            }
            if (parameters.GetType() == typeof(TwoParamModelParameters))
            {
                return(new TwoParamProbabilityFunction((TwoParamModelParameters)parameters));
            }

            throw new NotImplementedException();
        }