Refactor and optimize TBar, TBarSeries, and TSeries notebooks; remove obsolete code

- Enhanced Alma class by simplifying the CalculateWeightedSum method and removing unnecessary comments.
- Removed SIMD-related methods from Conv class, replacing them with optimized DotProduct calls.
- Updated Sma and Wma classes to use source.ContainsNonFinite() for non-finite value checks, improving readability and performance.
This commit is contained in:
Miha Kralj
2025-12-10 15:03:58 -05:00
parent b26d5d7751
commit 47884bddab
9 changed files with 371 additions and 668 deletions
+9
View File
@@ -136,6 +136,15 @@ public sealed class RingBuffer : IEnumerable<double>
}
}
/// <summary>
/// Gets the index in the internal buffer where the oldest element is located.
/// </summary>
public int StartIndex
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _count == _capacity ? _head : 0;
}
/// <summary>
/// Gets a read-only span over the internal buffer array for direct SIMD access.
/// </summary>