Added a Gaussian noise generator
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user