/// <summary>
 ///   Creates a new GeneralizedLinearRegression that is a copy of the current instance.
 /// </summary>
 ///
 public object Clone()
 {
     return(new GeneralizedLinearRegression()
     {
         Link = (ILinkFunction)linkFunction.Clone(),
         Linear = (MultipleLinearRegression)this.Linear.Clone(),
         StandardErrors = (double[])this.StandardErrors.Clone()
     });
 }
Exemple #2
0
        /// <summary>
        ///   Creates a new GeneralizedLinearRegression that is a copy of the current instance.
        /// </summary>
        ///
        public object Clone()
        {
            ILinkFunction function = (ILinkFunction)linkFunction.Clone();

            var regression = new GeneralizedLinearRegression(function, coefficients.Length);

            regression.coefficients   = (double[])this.coefficients.Clone();
            regression.standardErrors = (double[])this.standardErrors.Clone();

            return(regression);
        }