Exemplo n.º 1
0
        Dictionary <string, DataPerformer.Basic.Series> GetSeries(IComponentCollection collection)
        {
            IDataConsumer dataConsumer = collection.GetObject <IDataConsumer>(name);

            string[] ss = (values == null) ? series.Keys.ToArray() : values;
            return(dataConsumer.GetSeries(start, step, stepCount,
                                          argument, ss));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Calculates value of residual parameter
        /// </summary>
        /// <param name="collection">Collection of objects</param>
        /// <returns>Residual parameter</returns>
        double GetValue(IComponentCollection collection)
        {
            AliasRegression reg = collection.GetObject <AliasRegression>(name); // Regression component

            for (int i = 0; i < number; i++)
            {
                reg.FullIterate();                  // Iteration cylce
            }
            return(reg.SquareResidual);             // returns residual parameter
        }