Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Frida
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
Container Registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
Frida
Commits
0f4c8a76
Commit
0f4c8a76
authored
15 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
msj
parent
244d0aaa
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pub/src/frida2.cpp
+4
-1
4 additions, 1 deletion
pub/src/frida2.cpp
pub/src/manip.cpp
+39
-0
39 additions, 0 deletions
pub/src/manip.cpp
pub/src/manip.h
+1
-0
1 addition, 0 deletions
pub/src/manip.h
with
44 additions
and
1 deletion
pub/src/frida2.cpp
+
4
−
1
View file @
0f4c8a76
...
...
@@ -302,8 +302,9 @@ int main()
" mpsym symmetrize: map -x -> x, then average
\n
"
"Per scan:
\n
"
" msd delete
\n
"
" msa average
(msz preferred)
\n
"
" msa average
\n
"
" msb break into files
\n
"
" msj join
\n
"
" ms* spawn scans
\n
"
" msx z_max <-> x
\n
"
" mso sort by expression
\n
"
...
...
@@ -345,6 +346,8 @@ int main()
NManip
::
ScaAvge
();
}
else
if
(
cmd
==
"msb"
)
{
NManip
::
ScaBreak
();
}
else
if
(
cmd
==
"msj"
)
{
NManip
::
ScaJoin
();
}
else
if
(
cmd
==
"ms*"
)
{
NManip
::
ScaSpawn
();
}
else
if
(
cmd
==
"msx"
)
{
...
...
This diff is collapsed.
Click to expand it.
pub/src/manip.cpp
+
39
−
0
View file @
0f4c8a76
...
...
@@ -699,6 +699,45 @@ void NManip::ScaAvge(void)
}
}
void
NManip
::
ScaJoin
(
void
)
{
CList
JSel
;
NOlm
::
JSelAsk
(
"Start groups at scans"
,
&
JSel
);
static
bool
skip_zero
=
false
;
const
COld
*
fin
;
COld
fout
;
CScan
Sout
;
vector
<
double
>
y
;
uint
ji
,
jf
,
i
,
n
,
mj
,
nz
;
double
ym
;
string
err
;
NOlm
::
IterateD
fiter
;
NOlm
::
SelNew
();
while
((
fin
=
fiter
()))
{
fout
=
*
fin
;
JSel
.
evaluate
(
0
,
fin
->
nScan
()
-
1
);
if
(
JSel
.
V
.
size
()
<
1
||
JSel
.
V
[
0
]
!=
0
)
throw
string
(
"scan selection must contain 0"
);
fout
.
lDoc
.
push_back
(
"msj "
+
JSel
.
str
());
fout
.
VS
.
clear
();
nz
=
fin
->
nZ
();
for
(
uint
iv
=
0
;
iv
<
JSel
.
size
();
iv
++
)
{
ji
=
JSel
.
V
[
iv
];
jf
=
(
iv
<
JSel
.
size
()
-
1
?
JSel
.
V
[
iv
+
1
]
:
fin
->
nScan
()
);
Sout
=
fin
->
VS
[
ji
];
n
=
fin
->
VS
[
ji
].
size
();
for
(
uint
jj
=
ji
+
1
;
jj
<
jf
;
jj
++
){
for
(
uint
i
=
0
;
i
<
fin
->
VS
[
jj
].
size
();
++
i
)
Sout
.
push_back
(
fin
->
VS
[
jj
].
x
[
i
],
fin
->
VS
[
jj
].
y
[
i
]
);
}
fout
.
VS
.
push_back
(
Sout
);
}
ScaRemoveConstantZ
(
&
fout
);
NOlm
::
OloAdd
(
&
fout
);
}
}
void
NManip
::
ScaSpawn
(
void
)
{
static
int
njj
=
2
;
...
...
This diff is collapsed.
Click to expand it.
pub/src/manip.h
+
1
−
0
View file @
0f4c8a76
...
...
@@ -9,6 +9,7 @@ namespace NManip {
void
PtsSymmetrize
();
void
ScaSelect
(
string
del_or_ret
);
void
ScaAvge
();
void
ScaJoin
();
void
ScaBreak
();
void
ScaSpawn
();
void
ZExchange
();
...
...
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