| 1 | #cxx . . $ `<file>/dwsys/Spline.h`/ifndef _Spline_h_ |
| 2 | #define _Spline_h_cxx . . $ `dwsys/Spline.h:2:9`! |
| 3 | /* Spline.h |
| 4 | * |
| 5 | * Copyright (C) 1993-2020 David Weenink |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #define Spline_MAXIMUM_DEGREEcxx . . $ `dwsys/Spline.h:21:9`! 20 |
| 22 | |
| 23 | #include "Graphics.h"cxx . . $ `<file>/sys/Graphics.h`/ |
| 24 | #include "Polynomial.h"cxx . . $ `<file>/dwsys/Polynomial.h`/ |
| 25 | #include "Spline_def.h"cxx . . $ `<file>/dwsys/Spline_def.h`/ |
| 26 | |
| 27 | void Spline_initcxx . . $ Spline_init(f073fd98e90187e7). (Splinecxx . . $ Spline# me, double xmin, double xmax, integercxx . . $ integer# degree, integercxx . . $ integer# numberOfCoefficients, integercxx . . $ integer# numberOfKnots); |
| 28 | |
| 29 | integercxx . . $ integer# Spline_getOrdercxx . . $ Spline_getOrder(2f548f04e48dca5d). (Splinecxx . . $ Spline# me); |
| 30 | |
| 31 | void Spline_drawKnotscxx . . $ Spline_drawKnots(611b748b5d94a18e). (Splinecxx . . $ Spline# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax, bool garnish); |
| 32 | |
| 33 | autoSplinecxx . . $ autoSpline# Spline_scaleXcxx . . $ Spline_scaleX(f3f28b3e9e2cb18d). (Splinecxx . . $ Spline# me, double xmin, double xmax); |
| 34 | /* scale domain and knots to new domain */ |
| 35 | |
| 36 | Thing_definecxx . . $ SomeThingHandle# (MSpline, Spline) { |
| 37 | // overridden methods: |
| 38 | public: |
| 39 | virtual double v_evaluatecxx . . $ structMSpline#v_evaluate(447c67c6676f75c3). (double x); |
| 40 | virtual void v_evaluateTermscxx . . $ structMSpline#v_evaluateTerms(c7d2ecbf502d4cf4). (double x, VECcxx . . $ VEC# terms); |
| 41 | }; |
| 42 | |
| 43 | autoMSplinecxx . . $ autoMSpline# MSpline_createcxx . . $ MSpline_create(db2f5f61c7969391). (double xmin, double xmax, integercxx . . $ integer# degree, integercxx . . $ integer# numberOfInteriorKnots); |
| 44 | |
| 45 | autoMSplinecxx . . $ autoMSpline# MSpline_createWithCoefficientscxx . . $ MSpline_createWithCoefficients(4292eb8c41728ac4). (double xmin, double xmax, integercxx . . $ integer# degree, constVECVUcxx . . $ constVECVU# const& coefficients, constVECVUcxx . . $ constVECVU# const& interiorKnots); |
| 46 | |
| 47 | Thing_definecxx . . $ ClassInfo# (ISpline, Spline) { |
| 48 | // overridden methods: |
| 49 | public: |
| 50 | virtual double v_evaluatecxx . . $ structISpline#v_evaluate(447c67c6676f75c3). (double x); |
| 51 | virtual void v_evaluateTermscxx . . $ structISpline#v_evaluateTerms(c7d2ecbf502d4cf4). (double x, VECcxx . . $ VEC# terms); |
| 52 | virtual integercxx . . $ integer# v_getOrdercxx . . $ structISpline#v_getOrder(da6335ded91d79c2). (); |
| 53 | }; |
| 54 | |
| 55 | autoISplinecxx . . $ autoISpline# ISpline_createcxx . . $ ISpline_create(b0a6a5feca49151c). (double xmin, double xmax, integercxx . . $ integer# degree, integercxx . . $ integer# numberOfInteriorKnots); |
| 56 | |
| 57 | autoISplinecxx . . $ autoISpline# ISpline_createWithCoefficientscxx . . $ ISpline_createWithCoefficients(da27888d5fcd717a). (double xmin, double xmax, integercxx . . $ integer# degree, constVECVUcxx . . $ constVECVU# const& coefficients, constVECVUcxx . . $ constVECVU# const& interiorKnots); |
| 58 | |
| 59 | #endif /* _Spline_h_ */ |