feat: add USI (Ehlers Ultimate Strength Index) - TASC Nov 2024

This commit is contained in:
Miha Kralj
2026-03-17 16:44:48 -07:00
parent d3cb9d2513
commit 84d12e5706
14 changed files with 1318 additions and 0 deletions
+10
View File
@@ -517,6 +517,16 @@ public static unsafe partial class Exports
catch { return StatusCodes.QTL_ERR_INTERNAL; }
}
// Usi: Pattern A (src, out, int period)
[UnmanagedCallersOnly(EntryPoint = "qtl_usi")]
public static int QtlUsi(double* src, int n, double* dst, int period)
{
int v = Chk1(src, dst, n); if (v != 0) return v;
v = ChkPeriod(period); if (v != 0) return v;
try { Usi.Batch(Src(src, n), Dst(dst, n), period); return StatusCodes.QTL_OK; }
catch { return StatusCodes.QTL_ERR_INTERNAL; }
}
// ═══════════════════════════════════════════════════════════════════════
// §8.4 Trends — FIR
// ═══════════════════════════════════════════════════════════════════════