USArmy-Corps-of-Engineers-RMC / Numerics

Numerics is a free and open-source library for .NET developed by USACE-RMC, providing a comprehensive set of methods and algorithms for numerical computations and statistical analysis.
Other
21 stars 2 forks source link

TimeIntervalInHours - option for Month, Quarter, Year? #75

Closed sadie-niblett closed 3 months ago

sadie-niblett commented 3 months ago

In TimeSeries.cs there's a method to convert a given time interval to hours. But it only goes up to seven days. Not sure if we'd ever have a need to convert months, quarters, or years to hours, but as of right now these time intervals would all return NaN.

HadenSmith commented 3 months ago

We cannot get an exact time interval in hours for months, quarters, and years since they can each have a variable number of days.

This method is really just used for flood routing, where time steps are never greater than 1 day.

Its fine for now.