コード例 #1
0
    // Update is called once per frame
    private void Update()
    {
        if (!Input.GetKeyDown(KeyCode.Return))
        {
            return;
        }

        IntArray(ref data, size, type, maxValue);
        if (printArray)
        {
            LogUtils.PrintArray(data, histogram.GetType().Name + " In: ");
        }

        var sw    = Stopwatch.StartNew();
        var histo = histogram.Process(data, binsValue);

        sw.Stop();

        LogUtils.PrintArray(histo, histogram.GetType().Name + "(" + sw.ElapsedMilliseconds + "ms):");
        if (printArray)
        {
            LogUtils.PrintArray(Utils.Histogram(data, binsValue), histogram.GetType().Name + "Serial:");
        }
    }