Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SigerCalculation
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TCS-eConfigTool
SigerCalculation
Commits
12587b06
Commit
12587b06
authored
Dec 03, 2025
by
lvshi.gong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分类器优先级
parent
019a241a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
RamdomForestCalculate.cpp
SigerCalculation/RadomForestSAC/RamdomForestCalculate.cpp
+4
-3
SigerCalculation
SigerCalculation/package/E3/SigerCalculation
+0
-0
No files found.
SigerCalculation/RadomForestSAC/RamdomForestCalculate.cpp
View file @
12587b06
...
...
@@ -10,10 +10,10 @@ int pickPriorityValue(double xpred, double ypred, double zpred)
int
y
=
qRound
(
ypred
);
int
z
=
qRound
(
zpred
);
// 优先检查 1 → 2 → 3
if
(
x
==
1
||
y
==
1
||
z
==
1
)
return
1
;
if
(
x
==
2
||
y
==
2
||
z
==
2
)
return
2
;
// 优先检查 3 → 2 → 1
if
(
x
==
3
||
y
==
3
||
z
==
3
)
return
3
;
if
(
x
==
2
||
y
==
2
||
z
==
2
)
return
2
;
if
(
x
==
1
||
y
==
1
||
z
==
1
)
return
1
;
return
0
;
// 都没有
}
...
...
@@ -454,6 +454,7 @@ int RamdomForestCalculate::Save_SACDATA(const Dc_SacData &sacdata)
int
predRes
=
pickPriorityValue
(
xpred
,
ypred
,
zpred
);
SPDLOG_LOGGER_DEBUG
(
spdlog
::
get
(
"logger"
),
"报警类型: {}"
,
predRes
);
StreamInfo
info
(
predRes
,
sacdata
.
target
,
sacdata
.
startIds
,
sacdata
.
endIds
);
SendStreamAlarminfo
(
info
);
...
...
SigerCalculation/package/E3/SigerCalculation
View file @
12587b06
No preview for this file type
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