Hallo zusammen!
Hat schon jemand eine lineare Interpolation aus einem Look-up Table am laufen?
(Aufsteigende x-Werte, dazu y-Werte ==> Interpolation von y für beliebige x-Werte)
Hätte eine Lösung von hier: http://search.cpan.org/~bzajac/Math-...Interpolate.pm
Bekomme aber diesen Fehler:
Sind diese Math Funktionen am WG nicht verfügbar?
lg
Robert
Hat schon jemand eine lineare Interpolation aus einem Look-up Table am laufen?
(Aufsteigende x-Werte, dazu y-Werte ==> Interpolation von y für beliebige x-Werte)
Hätte eine Lösung von hier: http://search.cpan.org/~bzajac/Math-...Interpolate.pm
Code:
use Math::Interpolate qw(derivatives constant_interpolate linear_interpolate robust_interpolate); my @x = (1..5); my @y = (5, 10, 13, -4.5, 3); my @dy = derivatives(\@x, \@y); my ($l_y, $l_dy) = linear_interpolate(3.4, \@x, \@y); my ($r_y, $r_dy) = robust_interpolate(3.4, \@x, \@y); ($r_y, $r_dy) = robust_interpolate(3.4, \@x, \@y, [-2, 3, 4, -1, 4]);
Code:
Can't locate Math/Interpolate.pm in @INC (@INC contains: /usr/lib/perl-wiregate /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 226381) line 5. BEGIN failed--compilation aborted at (eval 226381) line 5.
lg
Robert
Kommentar