Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eisgenerator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Klemm, Carl Philipp
Eisgenerator
Commits
668ed121
Commit
668ed121
authored
3 years ago
by
Carl Philipp Klemm
Browse files
Options
Downloads
Patches
Plain Diff
improve rescale test
parent
f98f3188
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
test.cpp
+6
-5
6 additions, 5 deletions
test.cpp
with
6 additions
and
5 deletions
test.cpp
+
6
−
5
View file @
668ed121
...
...
@@ -163,11 +163,11 @@ void runSweepByIndex()
eis
::
Log
(
eis
::
Log
::
INFO
)
<<
"time taken: "
<<
duration
.
count
()
<<
" ms"
;
}
void
runRescale
()
bool
runRescale
()
{
std
::
cout
<<
__func__
<<
'\n'
;
std
::
vector
<
eis
::
DataPoint
>
data
;
for
(
size_t
i
=
0
;
i
<
10
;
++
i
)
for
(
size_t
i
=
0
;
i
<
22
;
++
i
)
{
eis
::
DataPoint
point
;
point
.
im
=
std
::
complex
<
fvalue
>
(
i
,
i
);
...
...
@@ -178,10 +178,11 @@ void runRescale()
std
::
cout
<<
"original:
\n
"
;
printDataVect
(
data
);
data
=
eis
::
rescale
(
data
,
5
);
data
=
eis
::
rescale
(
data
,
5
0
);
std
::
cout
<<
"rescaled
:
\n
"
;
std
::
cout
<<
"rescaled
size: "
<<
data
.
size
()
<<
" rescale data:
\n
"
;
printDataVect
(
data
);
return
data
.
size
()
==
50
;
}
void
runReduce
()
...
...
@@ -238,7 +239,7 @@ int main(int argc, char** argv)
//runSingle();
//runSweepByIndex();
//runSweep();
//
runRescale();
runRescale
();
runNormalize
();
//runEraseSingularities();
runReduce
();
...
...
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