From ea5e7522fe77af7cffdd81c8b37d3d5c03ff1920 Mon Sep 17 00:00:00 2001 From: Daniel Uber Date: Fri, 8 Jun 2012 11:50:17 -0500 Subject: [PATCH] comments --- .../DhbLagrangeInterpolator.class/README.md | 5 +++++ .../DhbLagrangeInterpolator.class/properties.json | 2 +- .../DhbNewtonInterpolator.class/README.md | 7 +++++++ .../DhbNewtonInterpolator.class/properties.json | 2 +- Math-DHB-Numerical.package/monticello.meta/version | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/README.md b/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/README.md index e69de29..2dd8d92 100644 --- a/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/README.md +++ b/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/README.md @@ -0,0 +1,5 @@ +A DhbLagrangeInterpolator takes a set of points (include each with #add:) and interpolates values using the Lagrange Interpolation Polynomial. This is the polynomial of minimum degree through all points in the pointCollection. + +This is appropriate for interpolation only (interior to the region of the set of values), and sensitive to several conditions. + +The method value: yields an approximation at a given value of the independent variable. Calculation is deferred until value is sent. If the set of points is fixed, NewtonInterpolator precomputes the value function. If the set of points is likely to change more often than interpolated values are needed, this is a fair choice. \ No newline at end of file diff --git a/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/properties.json b/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/properties.json index 7fad0c3..d7d290a 100644 --- a/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/properties.json +++ b/Math-DHB-Numerical.package/DhbLagrangeInterpolator.class/properties.json @@ -5,7 +5,7 @@ "classtraitcomposition" : "{}", "classvars" : [ ], - "commentStamp" : "", + "commentStamp" : "", "instvars" : [ "pointCollection" ], "name" : "DhbLagrangeInterpolator", diff --git a/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/README.md b/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/README.md index e69de29..cac3164 100644 --- a/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/README.md +++ b/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/README.md @@ -0,0 +1,7 @@ +A DhbNewtonInterpolator is a specialized Lagrange Interpolator which precomputes the polynomial to be evaluated when interpolating. This is twice as expensive as direct evaluation, but produces a linear time (in the number of points) evaluation method for fixed points. + +add: resets the coefficients + +value: lazily initializes the coefficients and yields an interpolated value. + +computeCoefficients and resetCoefficients should be considered private. \ No newline at end of file diff --git a/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/properties.json b/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/properties.json index f60d991..41e5fec 100644 --- a/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/properties.json +++ b/Math-DHB-Numerical.package/DhbNewtonInterpolator.class/properties.json @@ -5,7 +5,7 @@ "classtraitcomposition" : "{}", "classvars" : [ ], - "commentStamp" : "", + "commentStamp" : "", "instvars" : [ "coefficients" ], "name" : "DhbNewtonInterpolator", diff --git a/Math-DHB-Numerical.package/monticello.meta/version b/Math-DHB-Numerical.package/monticello.meta/version index f3ccdb1..fcb38f7 100644 --- a/Math-DHB-Numerical.package/monticello.meta/version +++ b/Math-DHB-Numerical.package/monticello.meta/version @@ -1 +1 @@ -(name 'Math-DHB-Numerical-DanielUber.19' message 'changed extension package name.' id '37c7dfdd-a5aa-4303-a255-64380871d9e2' date '5 June 2012' time '4:51:09.814 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.18' message 'removed extensions' id '7fa25da2-1332-48ec-8afd-7e54ddfd15ec' date '5 June 2012' time '4:45:27.408 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.17' message 'after separation of Extensions.' id '3c6217ed-4ffb-4042-a9db-311e1bd2b5cf' date '5 June 2012' time '1:01:34.398 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.16' message 'added lost method OrderedCollection>>removeAtIndex: This was causing tests to fail in a fresh load.' id '5d73d59a-cc3d-4d6f-a57f-0d2ae45cb311' date '1 June 2012' time '5:25:25.211 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.15' message 'removed unnecessary Matrix double dispatch methods which were nowhere called.' id 'be507fed-8af0-4ad4-8411-c39c9d0936e3' date '31 May 2012' time '12:05:19.968 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.14' message 'removed polynomial conversion methods which were nowhere used.' id '541b395f-bfa5-48c7-9933-f59670078473' date '31 May 2012' time '11:04:17.904 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.13' message 'updated Polynomial methods.' id '585cbad7-83f3-4449-bf88-e5291b16ab1a' date '31 May 2012' time '9:59:35.856 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.12' message 'added Polynomial methods for quaternions. Added polynomial reciprical, isZero, and fixed bug in division.' id '23474f81-03b4-4f40-a8ee-c14ef36fba19' date '31 May 2012' time '9:56:36.998 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.11' message 'reorganized DhbNumericalTestCases. Want to have tests grouped by classes' id 'e931838a-4e42-46a5-85ca-ac886ac649e1' date '23 May 2012' time '2:30:02.71 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.10' message 'testing with changed Random-Tests and Numerical-Tests to RandomTests and NumericalTests.' id 'e3285517-5a90-40f1-8920-9344c3af7614' date '22 May 2012' time '7:52:00.716 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.9' message 'corrected formatting of DhbGeneticOptimizer>>randomScale which was badly formatted after a copy paste. Also, prep version 8 for Metacello ConfigurationOfSciSmalltalk version 101 (first update).' id 'dde5a5ba-af6c-411d-9b0e-3201d2030708' date '20 May 2012' time '2:41:00.346 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.8' message 'incorporating bugfix in DhbGeneticOptimizer from Werner.' id 'ab4413e3-bb5d-4c6b-a4dd-57409358092c' date '20 May 2012' time '1:12:50.25 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.7' message 'added ga corrections from Werner Kassens.' id 'd0967089-0192-46b2-a00b-295d9029ac3f' date '20 May 2012' time '10:19:06.062 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.6' message 'added tests to DHB-Numerical' id '05bfad9d-f427-4a2a-8fd4-c3efb19ccc1a' date '19 May 2012' time '7:37:36.904 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.5' message 'added some tests to DHBNumerical, and fixed an out of bounds error in atColumn:put:statingAt: and atRow:put:startingAt in DhbMatrix (extensions).' id '33fa8b4a-2330-4e58-8031-1487e76370f1' date '19 May 2012' time '12:49:25.004 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.4' message 'moved to top-level' id 'cb602553-7666-43e3-a3b5-4f809b61e699' date '17 May 2012' time '12:25:56.424 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.3' message 'comments for DhbErfApproximation and DhbLanczosFormula.' id '6f06adbc-f108-4a0f-9c0c-26c6ca57dd86' date '16 May 2012' time '6:29:58.916 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.2' message 'cleaned up protocols.' id '494ec785-1582-4a24-9090-37c98e6224c7' date '16 May 2012' time '1:15:58.476 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.1' message 'separated DHB-Numerical' id '01acceda-b8c2-481c-a5cf-5b81083cffb6' date '13 May 2012' time '2:59:41.442 pm' author 'DanielUber' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ()) \ No newline at end of file +(name 'Math-DHB-Numerical-DanielUber.20' message 'added announcements/watchers to ODESolver ' id '7376153c-9049-4b33-b616-a8292abfe35e' date '8 June 2012' time '11:43:19.012 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.19' message 'changed extension package name.' id '37c7dfdd-a5aa-4303-a255-64380871d9e2' date '5 June 2012' time '4:51:09.814 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.18' message 'removed extensions' id '7fa25da2-1332-48ec-8afd-7e54ddfd15ec' date '5 June 2012' time '4:45:27.408 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.17' message 'after separation of Extensions.' id '3c6217ed-4ffb-4042-a9db-311e1bd2b5cf' date '5 June 2012' time '1:01:34.398 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.16' message 'added lost method OrderedCollection>>removeAtIndex: This was causing tests to fail in a fresh load.' id '5d73d59a-cc3d-4d6f-a57f-0d2ae45cb311' date '1 June 2012' time '5:25:25.211 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.15' message 'removed unnecessary Matrix double dispatch methods which were nowhere called.' id 'be507fed-8af0-4ad4-8411-c39c9d0936e3' date '31 May 2012' time '12:05:19.968 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.14' message 'removed polynomial conversion methods which were nowhere used.' id '541b395f-bfa5-48c7-9933-f59670078473' date '31 May 2012' time '11:04:17.904 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.13' message 'updated Polynomial methods.' id '585cbad7-83f3-4449-bf88-e5291b16ab1a' date '31 May 2012' time '9:59:35.856 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.12' message 'added Polynomial methods for quaternions. Added polynomial reciprical, isZero, and fixed bug in division.' id '23474f81-03b4-4f40-a8ee-c14ef36fba19' date '31 May 2012' time '9:56:36.998 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.11' message 'reorganized DhbNumericalTestCases. Want to have tests grouped by classes' id 'e931838a-4e42-46a5-85ca-ac886ac649e1' date '23 May 2012' time '2:30:02.71 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.10' message 'testing with changed Random-Tests and Numerical-Tests to RandomTests and NumericalTests.' id 'e3285517-5a90-40f1-8920-9344c3af7614' date '22 May 2012' time '7:52:00.716 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.9' message 'corrected formatting of DhbGeneticOptimizer>>randomScale which was badly formatted after a copy paste. Also, prep version 8 for Metacello ConfigurationOfSciSmalltalk version 101 (first update).' id 'dde5a5ba-af6c-411d-9b0e-3201d2030708' date '20 May 2012' time '2:41:00.346 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.8' message 'incorporating bugfix in DhbGeneticOptimizer from Werner.' id 'ab4413e3-bb5d-4c6b-a4dd-57409358092c' date '20 May 2012' time '1:12:50.25 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.7' message 'added ga corrections from Werner Kassens.' id 'd0967089-0192-46b2-a00b-295d9029ac3f' date '20 May 2012' time '10:19:06.062 am' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.6' message 'added tests to DHB-Numerical' id '05bfad9d-f427-4a2a-8fd4-c3efb19ccc1a' date '19 May 2012' time '7:37:36.904 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.5' message 'added some tests to DHBNumerical, and fixed an out of bounds error in atColumn:put:statingAt: and atRow:put:startingAt in DhbMatrix (extensions).' id '33fa8b4a-2330-4e58-8031-1487e76370f1' date '19 May 2012' time '12:49:25.004 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.4' message 'moved to top-level' id 'cb602553-7666-43e3-a3b5-4f809b61e699' date '17 May 2012' time '12:25:56.424 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.3' message 'comments for DhbErfApproximation and DhbLanczosFormula.' id '6f06adbc-f108-4a0f-9c0c-26c6ca57dd86' date '16 May 2012' time '6:29:58.916 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.2' message 'cleaned up protocols.' id '494ec785-1582-4a24-9090-37c98e6224c7' date '16 May 2012' time '1:15:58.476 pm' author 'DanielUber' ancestors ((name 'Math-DHB-Numerical-DanielUber.1' message 'separated DHB-Numerical' id '01acceda-b8c2-481c-a5cf-5b81083cffb6' date '13 May 2012' time '2:59:41.442 pm' author 'DanielUber' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ()) \ No newline at end of file