mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +00:00
docs: add SVG signature wrapper .md pages, fix docsify links, minimize content margins
This commit is contained in:
@@ -228,7 +228,7 @@ public sealed class Nlma : AbstractBase
|
||||
/// <summary>
|
||||
/// Computes original Igorad two-phase kernel weights.
|
||||
/// Phase zone (i=0..period-2): t = i/(period-2), g = t≤0.5 ? 1 : 1/(3πt+1), w = g*cos(πt)
|
||||
/// Cycle zone (i=period-1..flen-2): t = 1 + (i-period+1)*(2*Cycle-1)/(Cycle*period-1), same g/w
|
||||
/// Cycle zone (i=period-1..flen-2): t = 1 + (i-phase)*(2*Cycle-1)/(Cycle*period-1), same g/w
|
||||
/// Last tap (i=flen-1): weight = 0.
|
||||
/// weights[0] = newest bar, weights[flen-1] = oldest bar.
|
||||
/// Returns the signed weight sum for normalization.
|
||||
@@ -263,7 +263,7 @@ public sealed class Nlma : AbstractBase
|
||||
else
|
||||
{
|
||||
// Cycle zone: t continues from 1 upward
|
||||
double numer = (double)(i - phase + 1) * (2 * Cycle - 1);
|
||||
double numer = (double)(i - phase) * (2 * Cycle - 1);
|
||||
double denom = (double)(Cycle * period - 1);
|
||||
t = 1.0 + (denom > 0 ? numer / denom : 0.0);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
| **Outputs** | Single series (Nlma) |
|
||||
| **Output range** | Tracks input |
|
||||
| **Warmup** | 1 bar |
|
||||
| **Signature** | [nlma_signature](nlma_signature) |
|
||||
|
||||
### TL;DR
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ nlma(series float source, simple int period) =>
|
||||
t := phase > 1 ? float(i) / float(phase - 1) : 0.0
|
||||
else
|
||||
// Cycle zone: t continues from 1 upward
|
||||
float numer = float(i - phase + 1) * float(2 * cycle - 1)
|
||||
float numer = float(i - phase) * float(2 * cycle - 1)
|
||||
float denom = float(cycle * period - 1)
|
||||
t := 1.0 + (denom > 0 ? numer / denom : 0.0)
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# NLMA Signature
|
||||
|
||||

|
||||
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 534 KiB |
Reference in New Issue
Block a user