Example #1
0
 public static Matrix Avg(ICollection<Matrix> set)
 {
     Matrix average = new Matrix();
     average.Set(0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f);
     float hist = 0;
     foreach (Matrix matrix3d  in  set) {
         if (matrix3d.IsFloatValid()) {
             average.Add(matrix3d);
             hist++;
         }
     }
     average.Mul(1f / hist);
     return average;
 }
Example #2
0
 public Matrix MulEqual(Matrix m)
 {
     if (m == null)
     {
         m = new Matrix();
     }
     Matrix result_0 = new Matrix(this.matrixs);
     result_0.Mul(m);
     return result_0;
 }