Good day,
I have two columns of data, 1st is time and the second are values, The time column is from 4.00am to 4.00am the next day increasing by 1hour intervals, the values increase to a max and then decline in a series of highs and lows. I want to calculate the change in value meaning the highest value - lowest value divided by the corresponding change in time. i dont want a simple max and min since the values are increasing and decreasing in a series of low to highs. i hope you can help, below is just an example of how the data set looks.
[TABLE="width: 200"]
<tbody>[TR]
[TD]time[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD]4am[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]5am[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6am[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]7am[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]8am[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]9am[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]10am[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]11am[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12pm[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
I have two columns of data, 1st is time and the second are values, The time column is from 4.00am to 4.00am the next day increasing by 1hour intervals, the values increase to a max and then decline in a series of highs and lows. I want to calculate the change in value meaning the highest value - lowest value divided by the corresponding change in time. i dont want a simple max and min since the values are increasing and decreasing in a series of low to highs. i hope you can help, below is just an example of how the data set looks.
[TABLE="width: 200"]
<tbody>[TR]
[TD]time[/TD]
[TD]value[/TD]
[/TR]
[TR]
[TD]4am[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]5am[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6am[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]7am[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]8am[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]9am[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]10am[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]11am[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12pm[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]