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

Class TrimTransform

Transformation --+
                 |
                TrimTransform


TrimTransform objects encapsulate the process of triming a pair of vectors, X and Y, to some range of X values.
Method Summary
  __init__(self, xName, yName, start, end)
Create a new TrimTransfrom object which will trim the X vector from column 'xName' and the Y vetor from column 'yName' to X values from 'start' to 'end', inclusive.
  apply(self, data)
Trim the X and Y columns from the object 'data' and return a new data object containing the trimmed columns.
    Inherited from Transformation
  __call__(self, data)
Apply this transformation to the xdp.Data object 'data'.

Method Details

__init__(self, xName, yName, start, end)
(Constructor)

Create a new TrimTransfrom object which will trim the X vector from column 'xName' and the Y vetor from column 'yName' to X values from 'start' to 'end', inclusive.

apply(self, data)

Trim the X and Y columns from the object 'data' and return a new data object containing the trimmed columns.

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