【Median_a】
[code]Inputs: MedianArray[size](NumericArrayRef), VArraySize(Numeric);Variables: var0(0), var1(0), var2(0);
var0 = size * .5;
var1 = IntPortion(var0);
var2 = SortUp_a(MedianArray, VArraySize);
IF FracPortion(var0) = 0 Then
Median_a = (MedianArray[var1] + MedianArray[var1 + 1]) * .5
Else
Median_a = MedianArray[var1 + 1];
[/code]
页:
[1]