Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5aea06a
commit cc494e1
Showing
3 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import numpy as np | ||
import psdr | ||
|
||
|
||
def test_initial(): | ||
np.random.seed(0) | ||
m = 5 | ||
L = np.random.randn(1,m) | ||
domain = psdr.BoxDomain(-np.ones(m), np.ones(m)) | ||
|
||
X0 = psdr.initial_sample(domain, L, 10) | ||
print(X0) | ||
|
||
|
||
if __name__ == '__main__': | ||
test_initial() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters