Added a Gaussian noise generator

This commit is contained in:
Christian Risi
2024-12-01 12:10:19 +00:00
parent 0c82f284e8
commit 44d6d9a84f
8 changed files with 83 additions and 5 deletions

View File

@@ -1,6 +1,13 @@
import Testing
import RandomCpp
@testable import IoT_Simulator_Core
@Test func example() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
var a = GaussianRNG(10, 0.5)
for _ in 0...10 {
print(a.generate())
}
}