Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
multiTraj
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangdawei
multiTraj
Commits
a017e493
Commit
a017e493
authored
Apr 19, 2022
by
limingbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test mergemulti traj at one place
parent
60333e15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
multi_traj_functions.cpp
apps/function/multi_traj_functions.cpp
+4
-4
No files found.
apps/function/multi_traj_functions.cpp
View file @
a017e493
...
...
@@ -220,11 +220,11 @@ void filterByPosition(
}
}
}
pair
<
size_t
,
size_t
>
longestIndex
;
uint32_t
longestPeriod
=
0
;
pair
<
size_t
,
size_t
>
longestIndex
=
period
;
uint32_t
longestPeriod
=
period
.
second
-
period
.
first
;
for
(
auto
index
:
aroundIndexVec
){
auto
p
eriod
=
ret
.
at
(
index
.
first
).
periods
.
at
(
index
.
second
);
uint32_t
periodDuration
=
period
.
second
-
p
eriod
.
first
;
auto
aroundP
eriod
=
ret
.
at
(
index
.
first
).
periods
.
at
(
index
.
second
);
uint32_t
periodDuration
=
aroundPeriod
.
second
-
aroundP
eriod
.
first
;
if
(
periodDuration
>
longestPeriod
){
longestPeriod
=
periodDuration
;
longestIndex
=
index
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment