关于Array数组:
_Array1DToHistogram
变换 1D 数组元素值为直方图
#include <Array.au3>
_Array1DToHistogram ( $aArray [, $iSizing = 100] )
示例一
#include <Array.au3>
Local $aNEW[] = [0, -80, -49, -44, 80, 100, 8, 7, 6, 5, 4, 3, 2, 1]
Local $aArray = _Array1DToHistogram($aNEW, 125)
_ArrayDisplay($aArray, "_Array1DToHistogram")
示例二
#include <Array.au3>
Local $limit = 500
Local $values[51]
Local $t, $n
For $i = 1 To $limit
$t = TimerInit()
Sleep(10)
$n = Round(TimerDiff($t))
$values[$n] += 1
Next
Local $aArray = _Array1DToHistogram($values)
_ArrayDisplay($aArray, "_Array1DToHistogram", "10:20") |