【AvgDeviation_a】
[code]Inputs: AvgDevArray[size](NumericArrayRef), ArraySize(Numeric);Variables: var0(0), var1(0), var2(0);
var1 = Average_a(AvgDevArray, ArraySize);
var0 = 0;
var2 = 0;
For value1 = 1 To ArraySize Begin
var0 = var0 + AbsValue(AvgDevArray[value1] - var1);
var2 = var2 + 1;
End;
If var2 <> 0 Then
AvgDeviation_a = var0 / var2
Else
AvgDeviation_a = -1
[/code]
页:
[1]