CURVS(3NCARG)
π NAME π
CURVS β bestie, this one calculates values for a smoothing spline. That's it, that's the whole job. β¨
Oh and hey, real quick, the manual name is NCARG, in case you were wondering which shelf this lives on. π
π SYNOPSIS π
CALL CURVS (N, X, Y, D, ISW, S, EPS, YS, YSP, SIGMA, TEMP, IER)
okay so here's the tea β β this subroutine does not draw the curve for you. It calculates certain values that are used by CURV2 in order to compute an interpolatory smoothing spline under tension through a sequence of functional values. The actual computation of the interpolated values must be done using CURV2. So CURVS is the prep girlie, CURV2 is the one who shows up to the party. π«Ά
Three parameters are used to control the degree of smoothness β D, S, and EPS. Let's meet them:
The parameter D is a value indicating the degree of confidence in the accuracy of the input function values β it should be an approximation of the standard deviation of error. Effectively the value of D controls how close the smoothed curve comes to the input data points. If D is small then the interpolated curve will pass close to the input data. The larger the value of D, the more freedom the smooth curve has in how close it comes to the input data values. it's giving "how much do we trust you, bestie" π
S is a more subtle global smoothing parameter. S must be non-negative. For small values of S, the interpolated curve approximates the tension spline and for larger values of S, the curve is smoother. A reasonable value for S is REAL(N). lowkey the vibes knob πΈ
EPS controls the precision to which S is interpreted; EPS must be between 0. and 1. inclusive. A reasonable value for EPS is SQRT(2./REAL(N)). slay, precision queen π
β¨ DESCRIPTION β¨
Here's the whole cast, one by one, no skipping, we do not cut anyone from the group chat. π
Nβ (integer, input) The number of input data values. (N > 1) like, more than one, okay?? πXβ (integer, input) An array containing the abscissae for the input function. These must be increasing values. keep it climbing bestie πYβ (integer, input) An array containing the functional values for the input function βY(K)is the functional value atX(K)forK=1,N.Dβ (integer, input) A user-specified value containing the observed weights.Dmay be either an array or a scalar, depending on the value ofISW(as described below). πISWβ (integer, input) A switch for interpreting the value ofD. IfISW=0, thenDis an array of lengthN(Dcontains an individual error estimate for each input data value); ifISW=1, thenDis a scalar that serves as an error estimate for every single data item. one for all or all for one, pick your era π«Sβ (integer, input) Contains the value for smoothing.Smust be non-negative. Larger values forSyield greater smoothing. A reasonable value isREAL(N).EPSβ (integer, input) Contains a tolerance value for the relative precision to whichSshould be interpreted.EPSmust be between0.and1.inclusive. A reasonable value isSQRT(2./REAL(N)).YSβ (integer, input) An array of lengthN.YSPβ (integer, input) An array of lengthN.SIGMAβ (integer, input) Tension factor. Values near zero result in a cubic spline; large values (e.g.50) result in nearly a polygonal line. A typical value is1. tension!! we love a little drama in the geometry π₯TEMPβ (integer, input) Scratch space. it's the notebook paper of the operation πIERβ (integer, output) An error return value. IfIERis returned as0, then no errors were detected. π
= 1 if N is less than 2.
= 2 if S is negative.
= 3 if EPS is negative or greater than 1.
= 4 if X values are not strictly increasing.
= 5 if D is negative.
β οΈ bestie please actually checkIER.0is the slay outcome, anything else means something in your inputs said "not today" and you need to go fix it. π
π ACCESS π
To use CURVS, load the NCAR Graphics library ngmath. that's the whole ritual, no cap π§
π¦ SEE ALSO π¦
curv2fitgrid_params
Complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β go read it, it's giving required reading πβ¨
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement. fr fr, read the agreement, it's not optional π
okay that's the whole page bestie!! π this was the UNIX flavor of the CURVS(3NCARG) page, dated March 1998 β yes she's vintage, yes she still ate π
πΈ mwah, go smooth those splines, you got this π«Ά
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms