Hi Nick,
Thanks so much for explaining that! So, let me see if I've understood - if you have a DoD sequence [20,30,40,30,50,40,60,0,20,40], the rainflow counting finds:
1/2 cycle 40% (20 to 60)
2 cycles 10% (40-30-40, 50-40-50)
1/2 cycle 60% (60 to 0),
the running total of cycles goes
[0,0,0,0,1,1,2,2,3,3],
the running average of DoD goes
[0,0,0,0,15,15,15,15,70/3,70/3]?
Btw, I'm well excited about this open-source SAM being released in autumn! At the moment I'm trying to make a matlab version of SAM (actually, just the battery part) - though even when you release your official one, I might still hang on to mine but use the official one to check it, just because I find matlab easier to edit. Slightly random question - how much impact does the current US administration have on your work, since your funding is from the DoE? (When should this naive European start worrying, is what I mean!)