在Minitab 17中对一个单元格的上部相邻单元格进行运算,可以吗?
Do operations with the upper adjacent cell of a cell in Minitab 17. Is it possible?
我一直在尝试制作TCP协议中估计RTT的图表,得到估计RTT的公式是:
EstimatedRTT1 = (1- α)*EstimatedRTT0 + α*RTT
其中EstimatedRTT1是RTT的当前估计值,EstimatedRTT0是先前估计的值,RTT是确定的数据包在精确时刻的往返时间,α只是一个典型值,等于0.125。我们假设 EstimatedRTT0 的第一个值等于 α*RTT,然后 EstimatedRTT0 是前一个 RTT 的 EstimatedRTT1。
Example:
RTT = 23ms
α = 0.125
EstimatedRTT0 = RTT*α = 23 * 0.125 = 2.875
EstimatedRTT1 = (1- α)*EstimatedRTT0 + α*RTT = (1-0.125)*2.875 + 0.125*23
EstimatedRTT1 = 5.390
then the next estimation goes like this:
RTT = 30ms
EstimatedRTT0 = 5.390 (last EstimatedRTT1)
EstimatedRTT1 = (1-0.125)* 5.390 + 0.125*30 = 8,466
and so on..
图形应如下所示:
我遇到的问题是我无法使用 Minitab 绘制图表,因为我找不到将此公式的结果应用于具有 RTT 值的列的列的方法。
如果我将第一个操作的结果放入 EstimatedRTT0 = α*RTT,那么列中的每个单元格都需要前一个单元格的值,以便计算其自身的值。
我一直在想是否可以用 Minitab 做这样的事情..
那么,可以吗?有没有软件可以做到这一点,或者我应该尝试制作一个小程序来输出带有一点功能的公式结果?
我正在添加带有 RTT 示例的 minitab 文件。
MPJ file
谢谢,
抱歉,如果我没有解释清楚。
找到了 Excel 的方法。
您只需在一个单元格中输入公式,然后将该单元格复制到下方的单元格中,它会复制公式,但会将 objective 单元格替换为与新单元格相关的单元格。
In this cell I input the formula
Then I copy the contents of the cell, and we can see how the parameters of the formula have changed
毕竟这很容易..这是一个尝试的问题。
您可以使用 DO ... ENDDO 并使用常量来完成。您必须在 ENDDO 之前切换常量值并将结果存储到单元格中(如 C1[k1]=EstimatedRTT;其中 k1 是您的 DO ENDDO 的常量)
例如:
let k2 = 23 'RTT=23ms
let k3=0.125 'α = 0.125
let k4= k2*k3 ' EstimatedRTT0 = 23 * 0.125 = 2.875
DO k1=1:10 ' 10 iterations
let k2 = C1[k1] ' k2=RTT and RTT values are stored into column C1
let k5=(1-k3)*k4+k3*k2 'EstimatedRTT1 = (1- α)*EstimatedRTT0 + α*RTT
let C2[k1]=k5 'you store your result in C2
let k4=k5 'you switch the constant value to use it in the next iteration
ENDDO
我一直在尝试制作TCP协议中估计RTT的图表,得到估计RTT的公式是:
EstimatedRTT1 = (1- α)*EstimatedRTT0 + α*RTT
其中EstimatedRTT1是RTT的当前估计值,EstimatedRTT0是先前估计的值,RTT是确定的数据包在精确时刻的往返时间,α只是一个典型值,等于0.125。我们假设 EstimatedRTT0 的第一个值等于 α*RTT,然后 EstimatedRTT0 是前一个 RTT 的 EstimatedRTT1。
Example:
RTT = 23ms
α = 0.125
EstimatedRTT0 = RTT*α = 23 * 0.125 = 2.875
EstimatedRTT1 = (1- α)*EstimatedRTT0 + α*RTT = (1-0.125)*2.875 + 0.125*23
EstimatedRTT1 = 5.390
then the next estimation goes like this:
RTT = 30ms
EstimatedRTT0 = 5.390 (last EstimatedRTT1)
EstimatedRTT1 = (1-0.125)* 5.390 + 0.125*30 = 8,466
and so on..
图形应如下所示:
我遇到的问题是我无法使用 Minitab 绘制图表,因为我找不到将此公式的结果应用于具有 RTT 值的列的列的方法。
如果我将第一个操作的结果放入 EstimatedRTT0 = α*RTT,那么列中的每个单元格都需要前一个单元格的值,以便计算其自身的值。
我一直在想是否可以用 Minitab 做这样的事情..
那么,可以吗?有没有软件可以做到这一点,或者我应该尝试制作一个小程序来输出带有一点功能的公式结果?
我正在添加带有 RTT 示例的 minitab 文件。 MPJ file
谢谢,
抱歉,如果我没有解释清楚。
找到了 Excel 的方法。
您只需在一个单元格中输入公式,然后将该单元格复制到下方的单元格中,它会复制公式,但会将 objective 单元格替换为与新单元格相关的单元格。
In this cell I input the formula
Then I copy the contents of the cell, and we can see how the parameters of the formula have changed
毕竟这很容易..这是一个尝试的问题。
您可以使用 DO ... ENDDO 并使用常量来完成。您必须在 ENDDO 之前切换常量值并将结果存储到单元格中(如 C1[k1]=EstimatedRTT;其中 k1 是您的 DO ENDDO 的常量) 例如:
let k2 = 23 'RTT=23ms
let k3=0.125 'α = 0.125
let k4= k2*k3 ' EstimatedRTT0 = 23 * 0.125 = 2.875
DO k1=1:10 ' 10 iterations
let k2 = C1[k1] ' k2=RTT and RTT values are stored into column C1
let k5=(1-k3)*k4+k3*k2 'EstimatedRTT1 = (1- α)*EstimatedRTT0 + α*RTT
let C2[k1]=k5 'you store your result in C2
let k4=k5 'you switch the constant value to use it in the next iteration
ENDDO