Scalar Class Reference

Scalar object contains class methods to work on rsf data. More...

List of all members.

Public Member Functions

def get_command
def __init__
def __call__
 only non classmethod calls methoc given by self._command_name
def __str__
def __repr__
def rms
 Returns the root mean square.
def max
 Returns the maximum value.
def min
 Returns the minimum value.
def mean
 Returns the mean value.
def var
 Returns the variance.
def sdt
 Returns the root.
def norm
 Returns the lval norm of the vector.
def attr_make_number
 call eval on atr if result is tuple make complex
def attr
 fetches various attributes of the vector.
def project
 returns threshold value that will threshold the vector to a 1-norm of lamb
def getitem

Static Public Attributes

tuple env = InstanceManager()
tuple re_float = re_compile( '[-+]?\d*\.\d*' )


Detailed Description

Scalar object contains class methods to work on rsf data.

Definition at line 52 of file rsfScalar.py.


Member Function Documentation

def get_command (   cls,
  cmd 
)

Definition at line 59 of file rsfScalar.py.

def __init__ (   self,
  cmd 
)

Definition at line 66 of file rsfScalar.py.

def __call__ (   self,
  container,
  scalar,
  args,
  kw 
)

only non classmethod calls methoc given by self._command_name

Definition at line 75 of file rsfScalar.py.

def __str__ (   self  ) 

Definition at line 85 of file rsfScalar.py.

def __repr__ (   self  ) 

Definition at line 88 of file rsfScalar.py.

def rms (   container,
  scalar 
)

Returns the root mean square.

Definition at line 94 of file rsfScalar.py.

def max (   container,
  scalar 
)

Returns the maximum value.

Definition at line 101 of file rsfScalar.py.

def min (   container,
  scalar 
)

Returns the minimum value.

Definition at line 109 of file rsfScalar.py.

def mean (   container,
  scalar 
)

Returns the mean value.

Definition at line 116 of file rsfScalar.py.

def var (   container,
  scalar 
)

Returns the variance.

Definition at line 123 of file rsfScalar.py.

def sdt (   container,
  scalar 
)

Returns the root.

Definition at line 130 of file rsfScalar.py.

def norm (   container,
  scalar,
  lval = 2 
)

Returns the lval norm of the vector.

Definition at line 137 of file rsfScalar.py.

def attr_make_number (   atr  ) 

call eval on atr if result is tuple make complex

Parameters:
atr,: string atr:str

Definition at line 159 of file rsfScalar.py.

def attr (   container,
  scalar,
  want = 'norm',
  lval = 2 
)

fetches various attributes of the vector.

vector will be flushed prior to the operation. TODO: make it so that the vector does not flush automatically.

Definition at line 173 of file rsfScalar.py.

def project (   container,
  scalar,
  lamb = None 
)

returns threshold value that will threshold the vector to a 1-norm of lamb

Definition at line 204 of file rsfScalar.py.

def getitem (   container,
  scalar,
  item 
)

Definition at line 230 of file rsfScalar.py.


Member Data Documentation

tuple env = InstanceManager() [static]

Definition at line 54 of file rsfScalar.py.

tuple re_float = re_compile( '[-+]?\d*\.\d*' ) [static]

Definition at line 56 of file rsfScalar.py.


The documentation for this class was generated from the following file:

Generated on Sun Aug 10 09:11:09 2008 for SLIMpy by  doxygen 1.5.6