Thanks. That's clear now. What you want is (assuming your signal is in a variable called signal ): iinteg(signal)/xval(signal) This assumes that the signal starts at X=0. If not, you could use the abFirstX function defined in this COS article and use: iinteg(signal)/(xval(signal)-abFirstX(signal)) or if you had the signal not in a variable: iinteg(VT("/OUT"))/(xval(VT("/OUTM")-abFirstX(VT("/OUTM"))) The normal average is defined as the definite integral ( integ ) divided by the difference between the last and first X point; in this case we just use the indefinite integral ( iinteg ) and divide by the difference between the current X point and the first X point (for each point). Regards, Andrew.
↧