SPLINE(1)

πŸ’– SPLINE(1) β€” like, the manual, but make it make sense πŸ’–

User's Reference Manual ✨ (yes bestie, we're reading the actual docs, together, slay)


🌸 NAME 🌸

aspline</purgle> β€” Akima spline interpolation πŸ¦‹


✨ SYNOPSIS ✨

aspline [-a xstep] [-l llim] [-u ulim] [-n n] {file(s)}

πŸ’… DESCRIPTION πŸ’…

okay so picture this: aspline reads pairs of numbers from the file(s) you point it at β€” or straight from stdin if you didn't give it any files at all, no judgment 🫢 β€” and treats them as the abscissas and ordinates of a function. Cute, right?

Then it spits out a similar set to standard output, which is approximately equally spaced and includes your input set. Iconic behaviour honestly. What you get is an Akima-interpolated spline that has a continuous first derivative. πŸŽ€

⚠️ Heads up bestie: the second derivative may be discontinuous. But the glow-up here is that the output does not wiggle the way it would with cubic splines. That's the whole point. Periodt. πŸ’€

Datasets are separated by blank lines, iykyk. 🌈


πŸŽ€ OPTIONS πŸŽ€

  • -a incr, --auto=incr β€” supply abscissas automatically, because they're missing from the input. The spacing comes from the next argument, or it's assumed to be 1 if the next argument isn't a number. no cap. πŸ“
  • -l llim, --llimit=llim β€” set the lower x-limit to llim. πŸ¦‹
  • -u ulim, --ulimit=ulim β€” set the upper x-limit to ulim. πŸ¦‹
  • -n n, --points=n β€” space output points so that approx. n intervals occur between the lower and upper limit. ✨
  • -v β€” be verbose. spill the tea, tell me everything πŸ‘‘
  • -h β€” print the help message on stderr and exit. main character exit behaviour πŸ’…

πŸ‘€ SEE ALSO πŸ‘€

spline(1), gnuplot(1).

H. Akima, A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures, Journal of Assc. for Comp. Mach., Vol. 17, No. 4, Oct. 1970, pp. 589β€”602 πŸ“š


πŸ’€ BUGS πŸ’€

If you need a continuous second derivative, use spline from the plotutils package instead. fr fr, this one's not gonna do it for you. πŸ™ˆ


Debian Β· January 1998 β€” yeah bestie, this one's vintage, it's giving retro and we're obsessed πŸ’–πŸ¦‹βœ¨ periodt.