This is a math question and not specific to electronics design. Any assistance (even high level) would be appreciated.
I have a series of data points that represent point in time and current drawn at that point. Data may have gaps in it. For example, the typical data point will be every 30 seconds but arbitrary points might not exist. Also, I may want total current over last 8 hours but there is only 6 hours worth of data.
How do I calculate total current draw over a time period?
I could probably average the current values and use total time difference but am not grasping the method used to utilize the full resolution of the data.
Thanks,
John