操作符
OperatorNumber of Occurrences
if1<1+=1-1+6*2/4%1return1dayray1int1n1=11N1=20
操作数
OperandNumber of Occurrences
month331121year5day11271261101416110014001n2=13N2=19
计算
词汇表长度(Program vocabulary ):n = n1+n2 = 24程序长度或简单长度(Program length ):N = N1+N2 = 39程序的预测长度(Calculated program length):N^ = 11log2(11)+13log2(13)=86.1594641399程序体积或容量(Volume ):V=Nlog2(n)= 39log2(24)= 178.8135375273程序级别(Level ):L^ = (2/n1)(n2/N2)= (2/11)(13/19)=0.1244019138755980861244019138756程序难度(Difficulty ):D = 1/L^ = 8.0384615384615384615384615384614编程工作量(Effort ):E = V*D = 1437.38574396945语言级别:L’ = LLV = 2.7672890128077379180879558618164编程时间(hours ):T^ = E/(S*F) = 0.02218187876496064814814814814815平均语句大小:N / 语句数 = 39/4 = 9.75程序中的错误数预测值:B = V / 3000 = 0.0596045125091