@@ -32,7 +32,7 @@ namespace maths {
3232// !
3333// ! DESCRIPTION:\n
3434// ! See CAdaptiveBucketing for details.
35- class MATHS_EXPORT CSeasonalComponentAdaptiveBucketing : public CAdaptiveBucketing {
35+ class MATHS_EXPORT CSeasonalComponentAdaptiveBucketing final : public CAdaptiveBucketing {
3636public:
3737 using CAdaptiveBucketing::TFloatMeanAccumulatorVec;
3838 using TDoubleRegression = CRegression::CLeastSquaresOnline<1 , double >;
@@ -130,6 +130,9 @@ class MATHS_EXPORT CSeasonalComponentAdaptiveBucketing : public CAdaptiveBucketi
130130 // ! Get the memory used by this component
131131 std::size_t memoryUsage () const ;
132132
133+ // ! Name of component
134+ std::string name () const override ;
135+
133136private:
134137 using TSeasonalTimePtr = std::unique_ptr<CSeasonalTime>;
135138
@@ -163,28 +166,28 @@ class MATHS_EXPORT CSeasonalComponentAdaptiveBucketing : public CAdaptiveBucketi
163166 // ! bucket configuration.
164167 // !
165168 // ! \param[in] endpoints The old end points.
166- void refresh (const TFloatVec& endpoints);
169+ void refresh (const TFloatVec& endpoints) override ;
167170
168171 // ! Check if \p time is in the this component's window.
169- virtual bool inWindow (core_t ::TTime time) const ;
172+ bool inWindow (core_t ::TTime time) const override ;
170173
171174 // ! Add the function value at \p time.
172- virtual void add (std::size_t bucket, core_t ::TTime time, double value, double weight);
175+ void add (std::size_t bucket, core_t ::TTime time, double value, double weight) override ;
173176
174177 // ! Get the offset w.r.t. the start of the bucketing of \p time.
175- virtual double offset (core_t ::TTime time) const ;
178+ double offset (core_t ::TTime time) const override ;
176179
177180 // ! The count in \p bucket.
178- virtual double bucketCount (std::size_t bucket) const ;
181+ double bucketCount (std::size_t bucket) const override ;
179182
180183 // ! Get the predicted value for \p bucket at \p time.
181- virtual double predict (std::size_t bucket, core_t ::TTime time, double offset) const ;
184+ double predict (std::size_t bucket, core_t ::TTime time, double offset) const override ;
182185
183186 // ! Get the variance of \p bucket.
184- virtual double variance (std::size_t bucket) const ;
187+ double variance (std::size_t bucket) const override ;
185188
186189 // ! Split \p bucket.
187- virtual void split (std::size_t bucket);
190+ void split (std::size_t bucket) override ;
188191
189192 // ! Get the interval which has been observed at \p time.
190193 double observedInterval (core_t ::TTime time) const ;
0 commit comments