Commit 30a60213 authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: minor changes to constructors

parent 48af5716
......@@ -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() {
......
......@@ -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;
......
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment