Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
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
oscar
jfx_kalman_filter_src
Commits
97661d0e
Commit
97661d0e
authored
Dec 23, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
754406bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Component.cpp
common/Component.cpp
+14
-0
Component.h
common/Component.h
+1
-0
No files found.
common/Component.cpp
View file @
97661d0e
...
...
@@ -41,6 +41,20 @@ std::string GetMatrixStr(const std::vector<std::vector<float>>& data_ptr, int co
}
return
str
;
}
std
::
string
GetMatrixStr
(
const
std
::
vector
<
std
::
vector
<
double
>>&
data_ptr
,
int
col
,
int
row
)
{
std
::
string
str
;
for
(
int
i
=
0
;
i
<
col
;
i
++
)
{
for
(
int
j
=
0
;
j
<
row
;
j
++
)
{
char
log
[
128
]
=
{};
sprintf
(
log
,
"%f,"
,
data_ptr
[
i
][
j
]);
str
+=
log
;
}
}
return
str
;
}
std
::
string
GetMatrixStr
(
float
**
data_ptr
,
int
col
,
int
row
)
{
...
...
common/Component.h
View file @
97661d0e
...
...
@@ -10,4 +10,5 @@ std::string GetTimeStr(uint64_t timestamp);
std
::
string
GetMatrixStr
(
const
float
*
data_ptr
,
int
col
,
int
row
);
std
::
string
GetMatrixStr
(
const
std
::
vector
<
std
::
vector
<
float
>>&
data_ptr
,
int
col
,
int
row
);
std
::
string
GetMatrixStr
(
const
std
::
vector
<
std
::
vector
<
double
>>&
data_ptr
,
int
col
,
int
row
);
std
::
string
GetMatrixStr
(
float
**
data_ptr
,
int
col
,
int
row
);
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