Info
Version: | 0.9.0 |
Author(s): | Sergey Tarasov |
Last Update: | Thursday, May 11, 2017 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/RainFlow |
Install
Install-Package RainFlow
dotnet add package RainFlow
paket add RainFlow
RainFlow Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
Currently three variants of cycle counting algorithms are implemented: "RainFlow", "Rainflow simplified" and "Range pair" counting.
Usage:
---------------------------------
using static Fatigue.RainFlow;
double[] data = { -2, 1, -3, 5, -1, 3, -4, 4, -2 };
CycleCount[] res = RainFlow_Counting(data);
Console.WriteLine("RainFlow counting method");
Console.WriteLine(" Mean: Amplitude: Count:");
for (int i = res.GetLowerBound(0); i <= res.GetUpperBound(0); i++)
{
Console.WriteLine(" {0,10:g5} {1,10:g5} {2,6}", res[i].Mean, res[i].Amplitude, res[i].Count);
}
res = RainFlow_Simplified(data);
Console.WriteLine("RainFlow simplified counting method");
Console.WriteLine(PrintCycleCounts(res));
res = RangePair_Counting(data);
Console.WriteLine("Range pair counting method");
Console.WriteLine(PrintCycleCounts(res));
---------------------------------.