0% found this document useful (0 votes)
26 views3 pages

Wedge Tabla Formulas

The document describes various mathematical and statistical calculations that can be performed on time series data including addition, subtraction, moving averages, smoothing, interpolation, differentiation, integration, thresholds, and filtering. Parameters for window sizes and lag times are provided for related calculations.

Uploaded by

Gisell Teran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

Wedge Tabla Formulas

The document describes various mathematical and statistical calculations that can be performed on time series data including addition, subtraction, moving averages, smoothing, interpolation, differentiation, integration, thresholds, and filtering. Parameters for window sizes and lag times are provided for related calculations.

Uploaded by

Gisell Teran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Calculation Formula (copy here and paste)

Addition x1+x2+100
Subtraction x1-x2-100
Multiplication (note a dot before the multiplication x1.*x2.*100
sign .*)
Division (note a dot before the division sign .*) x1./x2./100

Delay the measurement by 4 hour delay(x1,4*60*60,dT)


2 hour moving average (non-causal) smooth(x1,ones(2*60*60/dT,1))
2 hour moving average (causal) wmoving_mean(x1, 2*60*60/dT)
2 hour moving standard deviation wmoving_std(x1,2*60*60/dT)
2 hour moving maximum wmoving_max(x1, 2*60*60/dT)
2 hour moving minimum wmoving_min(x1, 2*60*60/dT)
Average for each 15 minute intervals wmean(x1,mod(T,15*60)==0)

Screening, show values greater than 30 wscreen(x1, x1>30)


Screening, show values between 30 and 40 wscreen(x1, (x1>30) & (x1<40))
Screening based on another measurement, show x1 wscreen(x1, x2>200)
values if x2 is greater than 200

Status: value is 1, if x1 is 20 or greater than 20 x1>=20

Status: value is 1, if x1 is between 10 and 22.5 (x1>10) & (x1<22.5)


Status: value is 1, if x1 > 10 or x2 > 15 (x1>10) | (x2>15)
Status: value is 1, if x1 is 4 and x2 > 20 (x1==4) & (x2>20)
Status: value is 1, if x1 is not 1 and x2 > 20 (x1~=1) & (x2>20)

Cumulative sum of x1 cumsum(x1)*dT

Piecewise cumulative sum, value is reset when cumsum2(x1, x1<10)*dT


x1<10
Piecewise total sum, value is reset when x1<10 cumsum3(x1, x1<10)*dT
Piecewise total sum, value is reset when x1<10, cumsum4(x1, x1<10)*dT
shows the value only in one point
Piecewise average, calculation is reset when x2 wmean(x1, x2)
differs from zero
Piecewise minimum, calculation is reset when x2 wmin(x1, x2)
differs from zero
Piecewise maximum, calculation is reset when x2 wmax(x1, x2)
differs from zero
Piecewise standard deviation, calculation is reset wstd(x1, x2)
when x2 differs from zero

Change speed value/s (derivate) wdiff(x1)./dT


Interpolation foh(x1NaN)
Show value only in points of change (interpolated defoh(x1)
trend)
Show value only in points of change (piecewise dezoh(x1)
trend)

Widen signal, (e.g. add 20minutes before and 30min widen_bin(x1, 20*60/dT, 30*60/dT)
after the break signal)
Limits from a selected measurement (upper limit, x1high, x1low, x1target
lower limit, target value)
Grade-specific sum sum_state(x1,x2).*dT ,where x2=grade

You might also like