跳去內容

熱圖

出自維基百科,自由嘅百科全書
熱地圖嘅例子:地圖上每點嘅色彩,表示研究緊嗰個變數嘅數值。

熱圖,粵音:jit6 tou4,參見英文:heat map,可以係地圖嘅一種。一幅熱圖會有個相應嘅變數 x,並且用色彩嘅光度,顯示該變數喺地圖上嘅每一點有幾高:地圖上每一點,嗰點嘅光度同嗰點嘅 x 數值成正比。

例碼

[編輯]

想像以下噉嘅碼[1]:

public struct HeatPoint // 每一個 heat point 都有 X、Y(兩個座標表示位置)同 intensity 三個數值。
{
    public int X;
    public int Y;
    public byte Intensity;
    public HeatPoint(int iX, int iY, byte bIntensity)
    {
        X = iX;
        Y = iY;
        Intensity = bIntensity;
    }
}

private Bitmap CreateIntensityMask(Bitmap bSurface, List<HeatPoint> aHeatPoints)
{
    Graphics DrawSurface = Graphics.FromImage(bSurface);
    DrawSurface.Clear(Color.White); // 將背景設做白色
    foreach (HeatPoint DataPoint in aHeatPoints) // Foreach heat point,畫一個點。
    {
        DrawHeatPoint(DrawSurface, DataPoint, 25); // DrawHeatPoint 呢個子程序大致上就係「按比例計出呢一點要有幾光」
    }
    return bSurface;
}

應用

[編輯]

例如有幅熱地圖,顯示某隻網上遊戲入便,每個區域嘅玩家死亡次數,會顯示出遊戲地圖每一忽有幾多玩家喺嗰個位死過,愈多玩家死亡嘅地點顏色會愈淺,睇嘅人一眼睇得出數據係點嘅樣。遊戲開發者可以籍此判斷遊戲世界邊啲區域比較難打[2]。

有啲類型嘅熱地圖,會一次過顯示幾個變數嘅數值,呢啲熱地圖可以用嚟分析一啲唔係單一變數可以反映到嘅嘢。例如將玩家移動軌跡同玩家死亡次數同時顯示喺熱地圖上,可以清楚噉顯示出玩家普遍嘅遊戲流程,好似係佢哋喺邊開始遊戲、經過邊啲地方同埋喺邊度死亡等等[3]。

另見

[編輯]

引咗

[編輯]
  1. ↑ Creating Heat Maps with C# .NET.
  2. ↑ Wilkinson, Leland; Friendly, Michael (May 2009). "The History of the Cluster Heat Map". The American Statistician. 63 (2): 179–184.
  3. ↑ Canossa, A., Drachen, A., & Sørensen, J. R. M. (2011, June). Arrrgghh!!! blending quantitative and qualitative methods to detect player frustration. In Proceedings of the 6th international conference on foundations of digital games (pp. 61-68).