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(); }
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(); }
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(); }