尝试使用R
绘制伽马分布直方图所以我有
Sub Test()
Dim A As Variant, B As Variant, C As Variant
Dim i As Long
B = Sheets(lookupSheet).Range("B2:B12000").Value2
C = Sheets(lookupSheet).Range("D2:D12000").Value2
ReDim A(1 To 11999, 1 To 2)
For i = 1 To 11999
A(i, 1) = B(i, 1)
A(i, 2) = C(i, 2)
Next i
'do stuff with A
End Sub
我之前计算过的平均值是
gam(10, 0.5)
所以我应该用10* 0.5 = 5
所以我试过了
scale = 10 and shape = 0.5
我得到了
这是错误的,因为平均值应为5但我的情节不会产生5
我哪里错了?