normalization of methods

This commit is contained in:
Miha Kralj
2026-02-10 21:33:16 -08:00
parent 915d7a007b
commit 6d6259a47d
527 changed files with 10525 additions and 2123 deletions
+3 -3
View File
@@ -229,13 +229,13 @@ public class CvValidationTests
streamingCv.Update(new TValue(times[i], close[i]));
}
// Batch calculation using Calculate (TSeries -> TSeries)
// Batch calculation using Batch(TSeries -> TSeries)
var source = new TSeries();
for (int i = 0; i < bars.Count; i++)
{
source.Add(times[i], close[i]);
}
var batchResult = Cv.Calculate(source, 20, 0.2, 0.7);
var batchResult = Cv.Batch(source, 20, 0.2, 0.7);
// Compare last values
Assert.Equal(batchResult.Last.Value, streamingCv.Last.Value, 8);
@@ -266,7 +266,7 @@ public class CvValidationTests
}
// TSeries batch using Calculate
var batch = Cv.Calculate(source, 20, 0.2, 0.7);
var batch = Cv.Batch(source, 20, 0.2, 0.7);
// Compare
Assert.Equal(batch.Last.Value, streaming.Last.Value, 10);