Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
test_real_cpp_rng Namespace Reference

Functions

np.ndarray equicorr (int n, float rho)
 
np.ndarray load_matrix_txt (Path path)
 
str matrix_to_stdin_payload (np.ndarray R)
 
None compile_cpp_if_needed (Path bin_path, Path cpp_path)
 
np.ndarray run_cpp_once (Path bin_path, np.ndarray R, str dist="gaussian", int seed=None)
 
np.ndarray sample_many (Path bin_path, np.ndarray R, int n_samples, int seed_base, str dist="gaussian")
 
Dict[str, float] compute_stats (np.ndarray Y, np.ndarray R)
 
 plot_case (Path save_dir, str name, np.ndarray Y, np.ndarray R)
 
List[Tuple[str, np.ndarray]] build_cases (args)
 
 main ()
 

Function Documentation

◆ build_cases()

List[Tuple[str, np.ndarray]] test_real_cpp_rng.build_cases (   args)

Definition at line 143 of file test_real_cpp_rng.py.

◆ compile_cpp_if_needed()

None test_real_cpp_rng.compile_cpp_if_needed ( Path  bin_path,
Path  cpp_path 
)

Definition at line 40 of file test_real_cpp_rng.py.

◆ compute_stats()

Dict[str, float] test_real_cpp_rng.compute_stats ( np.ndarray  Y,
np.ndarray  R 
)

Definition at line 84 of file test_real_cpp_rng.py.

◆ equicorr()

np.ndarray test_real_cpp_rng.equicorr ( int  n,
float  rho 
)

Definition at line 16 of file test_real_cpp_rng.py.

◆ load_matrix_txt()

np.ndarray test_real_cpp_rng.load_matrix_txt ( Path  path)

Definition at line 22 of file test_real_cpp_rng.py.

◆ main()

test_real_cpp_rng.main ( )

Definition at line 171 of file test_real_cpp_rng.py.

◆ matrix_to_stdin_payload()

str test_real_cpp_rng.matrix_to_stdin_payload ( np.ndarray  R)

Definition at line 31 of file test_real_cpp_rng.py.

◆ plot_case()

test_real_cpp_rng.plot_case ( Path  save_dir,
str  name,
np.ndarray  Y,
np.ndarray  R 
)

Definition at line 99 of file test_real_cpp_rng.py.

◆ run_cpp_once()

np.ndarray test_real_cpp_rng.run_cpp_once ( Path  bin_path,
np.ndarray  R,
str   dist = "gaussian",
int   seed = None 
)

Definition at line 58 of file test_real_cpp_rng.py.

◆ sample_many()

np.ndarray test_real_cpp_rng.sample_many ( Path  bin_path,
np.ndarray  R,
int  n_samples,
int  seed_base,
str   dist = "gaussian" 
)
Appelle le binaire n_samples fois (seed = seed_base + i) et empile les réalisations.

Definition at line 75 of file test_real_cpp_rng.py.