Package xdp :: Module transformation :: Class LintTransform
[show private | hide private]
[frames | no frames]

Class LintTransform

Transformation --+
                 |
                LintTransform


LintTransform objects encapsulate the process of using linear interpolation to interplolate a pair of vectors, X and Y, to some abscissa.
Method Summary
  __init__(self, xName, yName, grid)
Create a new LintTransfrom object which will interpolate the X vector from column 'xName' and the Y vetor from column 'yName' to the abscissa 'grid', a one-dimensional Numeric array.
  apply(self, data)
Interpolate the X and Y columns from the object 'data' and return a new data object containing the abscissa in place of the X column and the intolpolated values in place of the Y column.
    Inherited from Transformation
  __call__(self, data)
Apply this transformation to the xdp.Data object 'data'.

Method Details

__init__(self, xName, yName, grid)
(Constructor)

Create a new LintTransfrom object which will interpolate the X vector from column 'xName' and the Y vetor from column 'yName' to the abscissa 'grid', a one-dimensional Numeric array.

apply(self, data)

Interpolate the X and Y columns from the object 'data' and return a new data object containing the abscissa in place of the X column and the intolpolated values in place of the Y column.

An xdp.ColumnNameError is raised if either of the source column names specified in the constructor are invalid.
Overrides:
xdp.transformation.Transformation.apply

Generated by Epydoc 2.1 on Wed Jul 20 11:51:06 2005 http://epydoc.sf.net