Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psrdada_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPIfR-BDG
psrdada_cpp
Commits
66c561af
Commit
66c561af
authored
5 years ago
by
spriyas
Browse files
Options
Downloads
Patches
Plain Diff
updated with norm_dist
parent
a388ead4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
psrdada_cpp/effelsberg/edd/test/src/SKTestVector.cpp
+2
-5
2 additions, 5 deletions
psrdada_cpp/effelsberg/edd/test/src/SKTestVector.cpp
with
2 additions
and
5 deletions
psrdada_cpp/effelsberg/edd/test/src/SKTestVector.cpp
+
2
−
5
View file @
66c561af
...
...
@@ -31,13 +31,10 @@ void SKTestVector::generate_normal_distribution_vector(std::vector<std::complex<
//generating normal distribution samples
BOOST_LOG_TRIVIAL
(
debug
)
<<
"generating normal distribution samples for mean: "
<<
_mean
<<
" and standard deviation: "
<<
_std
<<
"
\n
"
;
std
::
normal_distribution
<
float
>
real_dist
(
_mean
,
_std
);
std
::
normal_distribution
<
float
>
imag_dist
(
_mean
,
_std
);
std
::
normal_distribution
<
float
>
norm_dist
(
_mean
,
_std
);
//Complex vector
for
(
std
::
size_t
index
=
0
;
index
<
_sample_size
;
index
++
){
float
real
=
real_dist
(
gen
);
float
imag
=
imag_dist
(
gen
);
samples
[
index
]
=
std
::
complex
<
float
>
(
real
,
imag
);
samples
[
index
]
=
std
::
complex
<
float
>
(
norm_dist
(
gen
),
norm_dist
(
gen
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment