c_ftcurvp(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ NAME ✨

c_ftcurvp β€” it's a 1D interpolation situation but make it periodic, bestie πŸ’– (like, the function loops back around, she's giving circular, she's giving no beginning no end πŸŒ€)

This one lives in the NCAR GRAPHICS manual, and honestly? she's a little icon. πŸ‘‘


🌸 FUNCTION PROTOTYPE 🌸

int c_ftcurvp (int, float [], float [], float, int, float [], float []);

look at her. seven args. absolutely unbothered. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int c_ftcurvp (n, xi, yi, p, m, xo, yo);

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the whole cast, no skips, we're covering everyone:

  • n β€” the number of input data points. and heads up: n > 1, like she needs at least two points to function, we don't do solos here πŸ™…β€β™€οΈ
  • xi β€” an array holding the abscissae for the input function. that's the x-values, the "where" of it all.
  • yi β€” an array with the input functional values. so y(k) is the functional value at x(k) for k=0,n. literally the y-values, matching up with xi, one-to-one, slay.
  • p β€” the period of the function ✨ and this is important, bestie: p must not be less than xi[n-1] - xi[0]. like that's a whole rule, don't try it.
  • m β€” how many interpolated points you want. you're ordering m of them.
  • xo β€” an array with the abscissae for the interpolated values. your new x's, freshly computed.
  • yo β€” an array with the interpolated functional values, where yo(k) is the functional value at xo(k) for k=0,n. your new y's. matching set. periodt. 🫢

πŸ’€ RETURN VALUE πŸ’€

c_ftcurvp hands you back an error value, and it's very "here's the tea" about it:

  • = 0 β€” no error. we ate. πŸ”₯
  • = 1 β€” if n is less than 2. (girl needed more points 😭)
  • = 2 β€” if the period is strictly less than the span of the abscissae. (the p situation from before. she noticed. πŸ‘€)

🌈 USAGE 🌈

so the move is: you call c_ftcurvp after you've already set all the control parameter values you want, using these three besties:

  • c_ftseti
  • c_ftsetr
  • c_ftsetc

and the control parameter that actually applies to c_ftcurvp? that's just sig. that's the one. iykyk.


🧚 ACCESS 🧚

to use c_ftcurvp, you load the NCAR Graphics library ngmath. that's the one. that's where she lives. 🏠


⭐ SEE ALSO ⭐

go check out her friends, they're all so valid:

  • fitgrid_params
  • c_ftseti
  • c_ftsetr
  • c_ftsetc

and if you want the complete documentation for Fitgrid, it's literally right here, go look, no cap:

http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html


Copyright (C) 2000 University Corporation for Atmospheric Research

and fr fr, read this part: the use of this Software is governed by a License Agreement. that's not a vibe, that's a legal thing. πŸ™ˆ


and that's the whole page, bestie! this was the UNIX manual page for c_ftcurvp, from the NCAR GRAPHICS crew, dated March 1998 β€” yes, she's vintage, she's an elder, and she still serves πŸ’œβœ¨ bye!! πŸŽ€

πŸ“¦ where this page comes from