I discovered a bug which is replicate using following example:
import numpy as np
import rainflow # https://pypi.org/project/rainflow/
x = np.linspace(0, (4.0)*np.pi, num=19)
y = [np.cos(i) for i in x]
RFC_output = rainflow.count_cycles(y, binsize=0.5)
I discovered a bug which is replicate using following example:
As the example is two periods of the cosine function, the output should be the following:
I checked with other functions as well and found out that in general the first and last half circle are neglected in the rainflow algorithm.