Pelsser.SquaredGaussianModel.Populate C# (CSharp) Method

Populate() public method

Populate editable fields from name and value vectors specific to Pelsser.
public Populate ( string names, double values ) : void
names string /// An array with the names of the variable, /// will search for alpha1 (or a), sigma1 (or sigma) and lamba0. ///
values double The values associated to the parameters in names.
return void
        public void Populate(string[] names, double[] values)
        {
            bool found;
            this.a1 = new ModelParameter(PopulateHelper.GetValue("alpha1", "a", names, values, out found), a1Description);
            this.sigma1 = new ModelParameter(PopulateHelper.GetValue("sigma1", "sigma", names, values, out found), sigma1Description);
            this.lamda0 = new ModelParameter(PopulateHelper.GetValue("lambda0", "lambda", names, values, out found), lambda0Description);
        }