I don't know exactly how to describe what I'm looking for, but I will try to make some examples. Let's take three different data series:
- Series A: 1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2,1
- Series B: 1,2,1,2,1,2,1,2,1,2,1,2,1,2,1
- Series C: 1,2,3,2,1,2,3,2,1,2,3,2,1
The change from point to point is:
- Series A: +1,+1,+1,+1,+1,+1,+1,+1,...,-1,-1,-1,-1,-1,-1,-1,-1...
- Series B: +1,-1,+1,-1,+1,-1,...
- Series C: +1,+1,-1,-1,+1,+1,...
Or simplified in binary format 1 for +1 and 0 for -1:
- Series A: 11111111111111...00000000000...
- Series B: 10101010101010...
- Series C: 11001100110011...
I'm looking for a function that returns the
- highest Value for Series A (incrementing data is the same like the previous increment)
- lowest Value for Series B (data change is always different than the previous)
- something in between for Series C (data change sometimes same, sometimes different)