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*' ) |
Definition at line 52 of file rsfScalar.py.
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 | ||||
) |
def max | ( | container, | ||
scalar | ||||
) |
def min | ( | container, | ||
scalar | ||||
) |
def mean | ( | container, | ||
scalar | ||||
) |
def var | ( | container, | ||
scalar | ||||
) |
def sdt | ( | container, | ||
scalar | ||||
) |
def norm | ( | container, | ||
scalar, | ||||
lval = 2 | ||||
) |
def attr_make_number | ( | atr | ) |
call eval on atr if result is tuple make complex
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.
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.