public IActionResult Result(NumberTable numTable) { for (int i = 0; i >= numTable.UserMax; i++) { MaxList.Add(i); } return(View(numTable)); }
void ShowMatrix(float[][] M) { double[][] m = MathUtil.NewMatrix(M.Length, M[0].Length); for (int row = 0; row < M.Length; row++) { Array.Copy(M[row], m[row], M[0].Length); } var nt = NumberTable.CreateFromMatrix(m); var hm = new HeatMap(nt); Root.FormMgr.ShowForm(hm); }
void ShowNeighbors(Neighbor[][] nbList) { var M = MathUtil.NewMatrix(nbList.Length, nbList[0].Length, (i, j) => nbList[i][j].distance); var nt = NumberTable.CreateFromMatrix(M); var csList = Root.Data.ColumnSpecList; if (M.Length == csList.Count) { for (int row = 0; row < M.Length; row++) { nt.RowSpecList[row].Id = csList[row].Id; } } else // M.Length == Root.Data.Columns. { for (int row = 0; row < M.Length; row++) { nt.RowSpecList[row].Id = Root.Data.BodyList[row].Id; } } Root.FormMgr.ShowForm(new HeatMap(nt)); }