1 // -*- C++ -*- 2 /** 3 * @brief Fourier function factory 4 * 5 * Copyright 2005-2021 Airbus-EDF-IMACS-ONERA-Phimeca 6 * 7 * This library is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU Lesser General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public License 18 * along with this library. If not, see <http://www.gnu.org/licenses/>. 19 * 20 */ 21 #ifndef OPENTURNS_FOURIERSERIESFACTORY_HXX 22 #define OPENTURNS_FOURIERSERIESFACTORY_HXX 23 24 #include "openturns/OrthogonalUniVariateFunctionFactory.hxx" 25 26 BEGIN_NAMESPACE_OPENTURNS 27 28 29 30 /** 31 * @class FourierSeriesFactory 32 * 33 * Fourier function factory 34 */ 35 36 class OT_API FourierSeriesFactory 37 : public OrthogonalUniVariateFunctionFactory 38 { 39 CLASSNAME 40 public: 41 42 43 /** Default constructor */ 44 FourierSeriesFactory(); 45 46 /** Virtual constructor */ 47 FourierSeriesFactory * clone() const override; 48 49 /** String converter */ 50 String __repr__() const override; 51 52 /** The method to get the function of any order. */ 53 UniVariateFunction build(const UnsignedInteger order) const override; 54 55 /** Method save() stores the object through the StorageManager */ 56 void save(Advocate & adv) const override; 57 58 /** Method load() reloads the object from the StorageManager */ 59 void load(Advocate & adv) override; 60 61 protected: 62 63 } ; /* class FourierSeriesFactory */ 64 65 66 END_NAMESPACE_OPENTURNS 67 68 #endif /* OPENTURNS_FOURIERSERIESFACTORY_HXX */ 69