TransWikia.com

Variable order in InterpolatingFunction

Mathematica Asked by logosintegralis on September 30, 2021

I’m attempting to deal with a interpolating a function $f[x,t]$ on an unevenly spaced grid of $n$ points. My x-variable is continuous, so there’s no difficulty in fitting a cubic spline to it with InterpolationOrder$to$3 for $f[x,1]$, but because I can’t violate causality and fit using future data, I need to ensure that InterpolationOrder$to$0 for $f[1,t]$.

Is it possible to do this nativley in any way using the Interpolate command? Or would the best way be to set up $n$ different univariate $x$-Interpolations at each of my measured $t=t_i$ coordinates and connect them with some messy If statement?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP