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
8d1b776c
Commit
8d1b776c
authored
Dec 01, 2025
by
lvshi.gong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库处理方法
parent
ea5b7910
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
196 additions
and
44 deletions
+196
-44
RamdomForestCalculate.cpp
SigerCalculation/RadomForestSAC/RamdomForestCalculate.cpp
+190
-40
RamdomForestCalculate.h
SigerCalculation/RadomForestSAC/RamdomForestCalculate.h
+6
-4
No files found.
SigerCalculation/RadomForestSAC/RamdomForestCalculate.cpp
View file @
8d1b776c
This diff is collapsed.
Click to expand it.
SigerCalculation/RadomForestSAC/RamdomForestCalculate.h
View file @
8d1b776c
...
...
@@ -39,9 +39,10 @@ struct StreamInfo
QString
target
;
QString
startIds
;
QString
endIds
;
QString
powerdatas
;
StreamInfo
(
int
a
=
0
,
const
QString
&
t
=
""
,
const
QString
&
s
=
""
,
const
QString
&
e
=
""
)
:
alarmtype
(
a
),
target
(
t
),
startIds
(
s
),
endIds
(
e
)
StreamInfo
(
int
a
=
0
,
const
QString
&
t
=
""
,
const
QString
&
s
=
""
,
const
QString
&
e
=
""
,
const
QString
&
p
=
""
)
:
alarmtype
(
a
),
target
(
t
),
startIds
(
s
),
endIds
(
e
)
,
powerdatas
(
p
)
{
}
...
...
@@ -56,7 +57,8 @@ class RamdomForestCalculate : public QObject
public
:
explicit
RamdomForestCalculate
(
QObject
*
parent
=
nullptr
);
//1.
//1.查询功率样本(废弃函数)
QString
QueryPowerData
(
const
StreamInfo
&
alarmInfo
);
//2.发送给流式的消息
void
SendStreamAlarminfo
(
const
StreamInfo
&
alarmInfo
);
...
...
@@ -82,7 +84,7 @@ signals:
private
:
//QString m_name;
DBFunc
*
dbFunc
;
//
DBFunc *dbFunc;
TcpServerManager
*
m_tcpServerManager
;
RandomForestClassifier
*
Classifier
;
...
...
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