// Calculate X2, Y2 and Z2 values
        public static void Calc_X2_Y2_Z2(FileDataObject fdo, SevenParameters sp)
        {
            Matrix <double> XYZ1 = DenseMatrix.OfArray(new double[, ] {
                { fdo.Data_X_Calculated },
                { fdo.Data_Y_Calculated },
                { fdo.Data_Z_Calculated }
            });
            Matrix <double> RxMi = get_RxMi(sp.Epsilon_X, sp.Epsilon_Y, sp.Epsilon_Z, sp.Mi);
            Matrix <double> Tm   = DenseMatrix.OfArray(new double[, ] {
                { sp.T_X },
                { sp.T_Y },
                { sp.T_Z }
            });

            Matrix <double> SolutionMatrix = RxMi.Multiply(XYZ1).Add(Tm);

            fdo.Data_X2_Calculated = SolutionMatrix[0, 0];
            fdo.Data_Y2_Calculated = SolutionMatrix[1, 0];
            fdo.Data_Z2_Calculated = SolutionMatrix[2, 0];
        }
Esempio n. 2
0
 public void LoadSevenParameters(string paramsFilePath)
 {
     SevenParameters = new SevenParameters(paramsFilePath);
 }