Inheritance: MonoBehaviour
Example #1
0
 public IActionResult Result(NumberTable numTable)
 {
     for (int i = 0; i >= numTable.UserMax; i++)
     {
         MaxList.Add(i);
     }
     return(View(numTable));
 }
Example #2
0
        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);
        }
Example #3
0
        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));
        }