Andrew Main (Zefram) > Math-Interpolator > Math::Interpolator::Linear

Download:
Math-Interpolator-0.005.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.005   Source  

NAME ^

Math::Interpolator::Linear - lazy linear interpolation

SYNOPSIS ^

        use Math::Interpolator::Linear;

        $ipl = Math::Interpolator::Linear->new(@points);

        $y = $ipl->y($x);
        $x = $ipl->x($y);

DESCRIPTION ^

This is a subclass of the lazy interpolator class Math::Interpolator. This class implements linear interpolation. See Math::Interpolator for the interface.

This code is neutral as to numeric type. The coordinate values used in interpolation may be native Perl numbers, Math::BigRat objects, or possibly other types. Mixing types within a single interpolation is not recommended.

METHODS ^

$ipl->y(X)
$ipl->x(Y)

These methods are part of the standard Math::Interpolator interface.

SEE ALSO ^

Math::Interpolator

AUTHOR ^

Andrew Main (Zefram) <zefram@fysh.org>

COPYRIGHT ^

Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram) <zefram@fysh.org>

LICENSE ^

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: