Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

GEGU_linear Class Reference

EGU class for performing linear conversions. More...

Inheritance diagram for GEGU_linear:

Inheritance graph
[legend]
Collaboration diagram for GEGU_linear:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __init__ (slope, intercept, units="")
 egu (rawValue)
 raw (eguValue)

Detailed Description

EGU class for performing linear conversions.

Definition at line 44 of file gEGU.py.


Member Function Documentation

__init__ slope  ,
intercept  ,
units  = ""
 

Initialize a raw/EGU linear conversion object.

Parameters:
slope Number of engineering unit counts per raw value tick
intercept Offset in units of the engineering unit
units The engineering units name, e.g. 'cm'

egu rawValue   ) 
 

Convert a value in raw units to engineering units

Parameters:
rawValue Value in raw units.
Returns:
Engineering units value after the conversion.

raw eguValue   ) 
 

Convert a value in engineering units to raw units

Parameters:
eguValue Value in engineering units.
Returns:
Raw value after the conversion.


The documentation for this class was generated from the following file:
Generated on Fri Jul 21 13:26:52 2006 for LATTE R04-12-00 by doxygen 1.4.3