Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
30a60213
Commit
30a60213
authored
Jun 21, 2019
by
Alessio Netti
Browse files
Analytics: minor changes to constructors
parent
48af5716
Changes
3
Hide whitespace changes
Inline
Side-by-side
analytics/analyzers/aggregator/AggregatorAnalyzer.cpp
View file @
30a60213
...
...
@@ -28,10 +28,12 @@
AggregatorAnalyzer
::
AggregatorAnalyzer
(
const
std
::
string
&
name
)
:
AnalyzerTemplate
(
name
)
{
_window
=
0
;
_buffer
=
nullptr
;
}
AggregatorAnalyzer
::
AggregatorAnalyzer
(
const
AggregatorAnalyzer
&
other
)
:
AnalyzerTemplate
(
other
)
{
_window
=
other
.
_window
;
_buffer
=
nullptr
;
}
AggregatorAnalyzer
::~
AggregatorAnalyzer
()
{
...
...
analytics/analyzers/aggregator/AggregatorAnalyzer.h
View file @
30a60213
...
...
@@ -66,7 +66,7 @@ protected:
int64_t
computeStd
(
vector
<
reading_t
>
*
buffer
);
vector
<
int64_t
>
computeQuantiles
(
vector
<
reading_t
>
*
buffer
);
vector
<
reading_t
>
*
_buffer
=
NULL
;
vector
<
reading_t
>
*
_buffer
;
vector
<
AggregatorSBPtr
>
_quantileSensors
;
unsigned
long
long
_window
;
...
...
analytics/analyzers/regressor/RegressorAnalyzer.cpp
View file @
30a60213
...
...
@@ -41,10 +41,15 @@ RegressorAnalyzer::RegressorAnalyzer(const std::string& name) : AnalyzerTemplate
RegressorAnalyzer
::
RegressorAnalyzer
(
const
RegressorAnalyzer
&
other
)
:
AnalyzerTemplate
(
other
)
{
_modelIn
=
other
.
_modelIn
;
//
_modelOut =
other._modelOut
;
_modelOut
=
""
;
_aggregationWindow
=
other
.
_aggregationWindow
;
_targetDistance
=
other
.
_targetDistance
;
_trainingSamples
=
other
.
_trainingSamples
;
_trainingPending
=
true
;
_trainingSet
=
nullptr
;
_responseSet
=
nullptr
;
_currentfVector
=
nullptr
;
_buffer
=
nullptr
;
}
RegressorAnalyzer
::~
RegressorAnalyzer
()
{
...
...
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