public RegressionResult(ILevels independent_, DatedDataCollectionGen<double[]> regDataInput_, NMathStats.LinearRegression lin_, NMathStats.LinearRegressionAnova anova_)
 {
   m_independent = independent_;
   m_lin = lin_;
   m_regressionData = regDataInput_;
   m_anova = anova_;
 }
    public RegressionParameter(NMathStats.LinearRegressionParameter param_, DateTime endDate_, double[] dependents_, double[,] independents_, int paramIndex_)
    {
      m_param = param_;
      m_t_test_value = 0.05;
      //m_dateRange = dateRange_;
      EndDate = endDate_;

      m_sumOfDependents=0;
      m_sumOfIndependents=0;
      for (int i = 0; i < dependents_.Length;++i )
      {
        m_sumOfDependents += dependents_[i];
        m_sumOfIndependents += independents_[i, paramIndex_];
      }
    }