示例#1
0
    public void LogAverage()
    {
        var defaultAvgDis = Distances.Average();

        UnityEngine.Debug.Log("Default average Distance: " + defaultAvgDis);
        var defaultAvgTime = Times.Average(avg => avg.Ticks);

        UnityEngine.Debug.Log("Default average Time: " + defaultAvgTime + " ms");
    }
示例#2
0
    public void LogAverage()
    {
        var PrimAvgDis = Distances.Average();

        UnityEngine.Debug.Log("Prim average Distance: " + PrimAvgDis);
        var PrimAvgTime = Times.Average(avg => avg.Ticks);

        UnityEngine.Debug.Log("Prim average Time: " + PrimAvgTime + " ms");
    }
示例#3
0
    public void LogAverage()
    {
        var KruskalAvgDis = Distances.Average();

        UnityEngine.Debug.Log("Kruskal average Distance: " + KruskalAvgDis);
        var KruskalAvgTime = Times.Average(avg => avg.Ticks);

        UnityEngine.Debug.Log("Kruskal average Time: " + KruskalAvgTime + " ms");
    }