Why MATLAB has a confusing function name such as griddata (or griddatan)?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Peng Liu
am 1 Feb. 2017
Bearbeitet: Peng Liu
am 2 Feb. 2017
I am really confused by the function names griddata and griddatan, because these function names are prefixed by grid whereas the functions are actually doing scattered data interpolation, rather than gridded data interpolation.
In contrast, interpolant class names such as griddedInterpolant (gridded data interpolation) and scatteredInterpolant (scattered data interpolation) have no confusion at all, because these names are consistent with their functional behaviors.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 1 Feb. 2017
griddata is a verb and noun. It puts the data into a grid, which is the verb "grid"
griddedInterpolant is an adjective and a noun.
2 Kommentare
Walter Roberson
am 1 Feb. 2017
griddata has existed since R13 or before, and the emphasis was on querying at grids of points. The name probably seemed like a good idea at the time, which was long before the *Interpolant routines.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!