public void Read() { var ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { m_stat.Setd(ofd.FileName); m_stat.CalcMainParams(); } }
internal STAT[] MGKBackTransition() { var originalDataMatrix = GetOriginalDataMatrix(); List <double[]> transitionMatrixArrList = MGKInfo.Where(v => v.includeInMGK).Select(v => v.eigenVector.GetCloneOfData()).ToList(); Matrix transitionMatrix = Matrix.Create.JoinVectors(transitionMatrixArrList); Matrix backTransitionMatrix = transitionMatrix.Transpose(); Matrix MGKBackTransitionResult = originalDataMatrix * backTransitionMatrix; STAT[] BackTransiotionStats = GetTransiotionStats(MGKBackTransitionResult); for (int i = 0; i < BackTransiotionStats.Length; i++) { var data = BackTransiotionStats[i].d.Select(v => v + centers[i]).ToArray(); var s = new STAT(); s.Setd(data); BackTransiotionStats[i] = s; } return(BackTransiotionStats); }