Hi all,
I have this data table (attached) that I am trying to analyze with a jsl script. I havn't gone very far... I am aware of the `Col Moving Average` function but couldn't get it to fit my needs. I'd appericaite your input!
The script should
1. Sort the the the "Minutes" column by "Group" column
2. Calculate the rolling slopes for the "Reading" by "Group".
The output should be two added columns:
1. The rolling slope, but only for rows that have enough rows before them to calculate the rolling slope. For example, if the window size is set to 5, then rolling slope should only start at row 5.
2. The distance between the two edge time points of the rolling window divided by 2. For example, if the first and last time points of the current window are 3 and 8, this value should be 2.5.
Thank you!!