🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.math.num-analysis
2 messages
2 total messages Started by Randall Julian Wed, 08 Apr 1992 13:59
3D Regression
#256
Author: Randall Julian
Date: Wed, 08 Apr 1992 13:59
14 lines
1142 bytes
I am interested in fitting a 3D data set to a user specified equation.  The
equation is linear (Legrendre Polynomials) in the coefficients.  _Numerical
Recipes in C_ has no routines of this type, quitting at 2D, as most references
do.  If anyone has a reference to some C code for this please post, or
e-mail me.

Thanks.

+---------------------------------------------+-------------------------------+
|   Randy Julian                              |   Purdue University           |
|   Aston Laboratory for Mass Spectrometry    |   Department of Chemistry     |
|   vbl@mace.cc.purdue.edu                    |   Chemistry Box 519           |
|   (317)494-6898                             |   West Lafayette IN, 47907    |
+---------------------------------------------+-------------------------------+
Re: 3D Regression
#275
Author: W.A.B.Evans
Date: Sat, 11 Apr 1992 11:39
22 lines
1461 bytes
In article <44424@mentor.cc.purdue.edu> vbl@mace.cc.purdue.edu (Randall Julian) writes:
>I am interested in fitting a 3D data set to a user specified equation.  The
>equation is linear (Legrendre Polynomials) in the coefficients.  _Numerical
>Recipes in C_ has no routines of this type, quitting at 2D, as most references
>do.  If anyone has a reference to some C code for this please post, or
>e-mail me.
>
>|   Randy Julian                              |   Purdue University           |


	Surely, what you need here is EXACTLY the usual LINEAR regression
code but with the (trivial) modification that the fitfunction be defined as
a function of NV variables (2 or 3 in your case) rather than 1. All other
aspects are (I believe) unaltered.

	My own codes for (Linear and Nonlinear) Regressions (in FORTRAN)
have this option built in (the default being NV=1) - and have served me
perfectly well for the odd occasions when I needed a least squares fit to
a function of more than 1 variable.

						W. Alan B. Evans
						[ wabe@ukc.ac.uk ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads