iamlikeme / rainflow

Implementation of the rainflow-counting algorythm in Python
MIT License
105 stars 34 forks source link

Binning arguments produce bins which include the right edge and exclude the left edge #43

Closed iamlikeme closed 4 years ago

iamlikeme commented 4 years ago

The binsize and nbins arguments to count_cycles used to produce inconsistent bins: all bins except the last one would include the left edge and exclude the right edge, while the last bin would include both edges. This PR changes this behavior so that all bins exclude the left edge and include the right one. See #42 for discussion and examples.

This change has no impact on most real life applications, since the probability of obtaining a load cycle which exactly equals to one of the bin edges is infinitely small.