CURVS2(3NCARG)

✨ CURVS2 ✨ (from the 3NCARG manual, bestie πŸ’–)

okay so picture this: you've already got a smoothing spline under tension all set up, and now you need the actual interpolated value at one specific point. that's literally what CURVS2 does. it's giving "the finishing touch". πŸŽ€


🌸 NAME 🌸

CURVS2 β€” calculates an interpolated value for a smoothing spline under tension at a given point. no cap, that's the whole job. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

FUNCTION CURVS2(T,N,PARAM,X,Y,XP,YP,SIGMA,XO,YO)

so here's the tea: this subroutine is a companion to CURV1S, and CURV1S must be called before you call this one. like, that's not optional, that's the law. 🫢 once you've done that, CURV2S calculates an interpolated value for a smoothing spline under tension at a given point.


πŸ’œ DESCRIPTION πŸ’œ

  • T β€” (real, input) a real value that gets mapped onto the interpolating curve. values of T between zero and one interpolate the original data; any values of T outside that range? extrapolation, bestie. you're off the map. πŸ—ΊοΈ
  • N β€” (integer, input) the number of points that were specified to determine the curve back in CURVS1.
  • PARAM β€” (real, input) the arc lengths, as computed by CURVS1. it already did the math, you just carry it over. πŸ’–
  • X β€” (real, input) an array holding the X-coordinate values of the specified points.
  • Y β€” (real, input) an array holding the Y-coordinate values of the specified points.
  • XP β€” (real, input) an array of second derivative values, as calculated by CURVS1.
  • YP β€” (real, input) an array of second derivative values, as calculated by CURVS1.
  • SIGMA β€” (real, input) the tension factor, the moment of truth πŸŽ€. values near zero give you a cubic spline; large values (like, e.g. 50) give you nearly a polygonal line. a typical value is 1.
  • XO β€” (real, output) the interpolated X value. that's the one you came for. ✨
  • YO β€” (real, output) the interpolated Y value. its bestie. 🫢

🌈 ACCESS 🌈

to use CURV2, load the NCAR Graphics library ngmath. that's it, that's the whole vibe check. πŸ‘‘


⭐ SEE ALSO ⭐

  • curvs1
  • fitgrid_params

complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β€” go read it, iykyk. πŸ“š


Copyright (C) 2000 University Corporation for Atmospheric Research

the use of this Software is governed by a License Agreement. (yes, actually governed. read it. πŸ™ˆ)


ok that's the whole page, you ate that fr fr πŸ”₯

signing off from the NCAR GRAPHICS corner of the UNIX manual, dated August 2002 β€” slay, periodt. πŸ’…βœ¨