mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 12:08:05 +00:00
normalization of methods
This commit is contained in:
@@ -472,7 +472,7 @@ public sealed class HtDcphase : AbstractBase
|
||||
}
|
||||
}
|
||||
|
||||
public static void Calculate(ReadOnlySpan<double> source, Span<double> output)
|
||||
public static void Batch(ReadOnlySpan<double> source, Span<double> output)
|
||||
{
|
||||
if (output.Length < source.Length)
|
||||
{
|
||||
@@ -486,9 +486,16 @@ public sealed class HtDcphase : AbstractBase
|
||||
}
|
||||
}
|
||||
|
||||
public static TSeries Calculate(TSeries source)
|
||||
public static TSeries Batch(TSeries source)
|
||||
{
|
||||
var ht = new HtDcphase();
|
||||
return ht.Update(source);
|
||||
}
|
||||
|
||||
public static (TSeries Results, HtDcphase Indicator) Calculate(TSeries source)
|
||||
{
|
||||
var indicator = new HtDcphase();
|
||||
TSeries results = indicator.Update(source);
|
||||
return (results, indicator);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user