public void IGMNDataTest2() { IGMNData a = new IGMNData(igmn, new Vector(new double[] { 0, 0 })); a.Gaussian.Covariance.Covariance.WriteToFile("orig_full_cov.txt"); a.Gaussian.Covariance.InverseCovariance.WriteToFile("orig_full_invcov.txt"); a.Gaussian.Mean.WriteToFile("orig_full_mean.txt"); Console.Out.WriteLine(a.Gaussian.Covariance.Determinant); a.InputGaussian.Covariance.Covariance.WriteToFile("orig_inp_cov.txt"); a.InputGaussian.Covariance.InverseCovariance.WriteToFile("orig_inp_invcov.txt"); a.InputGaussian.Mean.WriteToFile("orig_inp_mean.txt"); Console.Out.WriteLine(a.InputGaussian.Covariance.Determinant); a.RefineWithData(new Vector(new double[] { 1, 1 }), 0.5); a.RefineWithData(new Vector(new double[] { 2, 2 }), 0.3333333333333333333); a.RefineWithData(new Vector(new double[] { 3, 3 }), 0.25); a.Gaussian.Covariance.Covariance.WriteToFile("mod_full_cov.txt"); a.Gaussian.Covariance.InverseCovariance.WriteToFile("mod_full_invcov.txt"); a.Gaussian.Mean.WriteToFile("mod_full_mean.txt"); Console.Out.WriteLine(a.Gaussian.Covariance.Determinant); a.InputGaussian.Covariance.Covariance.WriteToFile("mod_inp_cov.txt"); a.InputGaussian.Covariance.InverseCovariance.WriteToFile("mod_inp_invcov.txt"); a.InputGaussian.Mean.WriteToFile("mod_inp_mean.txt"); Console.Out.WriteLine(a.InputGaussian.Covariance.Determinant); }
public void IGMNDataTest() { IGMNData a = new IGMNData(null, new Vector(new double[] { 1, 2, 3, 4, 5, 4, 3, 2, 1 })); a.Gaussian.Covariance.Covariance.WriteToFile("orig_full_cov.txt"); a.Gaussian.Covariance.InverseCovariance.WriteToFile("orig_full_invcov.txt"); a.Gaussian.Mean.WriteToFile("orig_full_mean.txt"); Console.Out.WriteLine(a.Gaussian.Covariance.Determinant); a.InputGaussian.Covariance.Covariance.WriteToFile("orig_inp_cov.txt"); a.InputGaussian.Covariance.InverseCovariance.WriteToFile("orig_inp_invcov.txt"); a.InputGaussian.Mean.WriteToFile("orig_inp_mean.txt"); Console.Out.WriteLine(a.InputGaussian.Covariance.Determinant); a.RefineWithData(new Vector(new double[] { 4, 5, 1, 2, 8, 3, 3, 8, 1 }), 0.5); a.RefineWithData(new Vector(new double[] { 8, 3, 3, 1, 2, 8, 1, 4, 5 }), 0.5); a.Gaussian.Covariance.Covariance.WriteToFile("mod_full_cov.txt"); a.Gaussian.Covariance.InverseCovariance.WriteToFile("mod_full_invcov.txt"); a.Gaussian.Mean.WriteToFile("mod_full_mean.txt"); Console.Out.WriteLine(a.Gaussian.Covariance.Determinant); a.InputGaussian.Covariance.Covariance.WriteToFile("mod_inp_cov.txt"); a.InputGaussian.Covariance.InverseCovariance.WriteToFile("mod_inp_invcov.txt"); a.InputGaussian.Mean.WriteToFile("mod_inp_mean.txt"); Console.Out.WriteLine(a.InputGaussian.Covariance.Determinant); }