예제 #1
0
 public Glm(GlmDistributionFamily distribution, double[][] A, double[] b, SingleTrajectoryContinuousSolver solver)
 {
     this.solver = solver;
     this.mDistributionFamily = distribution;
     this.mLinkFunc           = GetLinkFunction(distribution);
     this.A      = A;
     this.b      = b;
     this.mStats = new Statistics.GlmStatistics(A[0].Length, b.Length);
 }
예제 #2
0
 public Glm(GlmDistributionFamily distribution, double[,] A, double[] b, SingleTrajectoryContinuousSolver solver, int maxIters = -1)
 {
     this.solver = solver;
     this.mDistributionFamily = distribution;
     this.mLinkFunc           = GetLinkFunction(distribution);
     this.A = new double[A.GetLength(0)][];
     for (int i = 0; i < A.GetLength(0); i++)
     {
         this.A[i] = new double[A.GetLength(1)];
         for (int j = 0; j < A.GetLength(1); j++)
         {
             this.A[i][j] = A[i, j];
         }
     }
     this.b = b;
     if (maxIters > 0)
     {
         this.mMaxIters = maxIters;
     }
     this.mStats = new Statistics.GlmStatistics(A.GetLength(1), b.Length);
 }
예제 #3
0
 private void UpdateStatistics()
 {
     mStats = new GlmStatistics(A, b, mX);
 }