| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package brain :: Module ravq |
|
| Classes | |
|---|---|
ARAVQ |
Extends RAVQ as described in Linaker and Niklasson. |
ModelList |
|
RAVQ |
Implements RAVQ algorithm as described in Linaker and Niklasson. |
| Function Summary | |
|---|---|
Determines the average vector of a set of vectors V. | |
A decimal to binary converter. | |
Takes two Numeric vectors as arguments. | |
d(V, X) = (1/|X|) Sum[i = 1 to |X|]{ min[j = 1 to |V|] {|| x_i - v_j||} } where x_i is in X and v_j is in V. | |
Returns integer ceil of log_2 of value. | |
This version is much more flexible as it relies on a general function that takes any number and converts it to binary. | |
Returns a noisy version of the given list, and assumes a range of values between 0.0 and 1.0. | |
Returns a noisy version of the given sequence, with each item repeated the number of times designated by the repeat variable. | |
String form of an array (any sequence of floats, really) to the screen. | |
tooSmall(v)
| |
| Variable Summary | |
|---|---|
str |
__author__ = 'Jeremy Stober'
|
str |
__version__ = '$Revision: 1.51 $'
|
| Function Details |
|---|
averageVector(V)Determines the average vector of a set of vectors V. |
dec2bin(val, maxbits=8)A decimal to binary converter. Returns bits in a list. |
euclideanDistance(x, y, mask)
Takes two Numeric vectors as arguments.
d(x, y) = sqrt(Sum[i = 1 to |x|]{(x_i - y_i) ^ 2 * mask_i})
|
getDistance(V, X, mask)
d(V, X) = (1/|X|) Sum[i = 1 to |X|]{ min[j = 1 to |V|] {|| x_i - v_j||} }
where x_i is in X and v_j is in V.
|
logBaseTwo(value)Returns integer ceil of log_2 of value. Python 2.3 should support different log bases. |
makeBitList(maxbits=8)This version is much more flexible as it relies on a general function that takes any number and converts it to binary. You can make any size bit representation that you want: makeBitList(2) will give you: [[0, 0], [0, 1], [1, 0], [1, 1]] for example. Defaults to 8 bits. |
makeNoisyList(ls, percentNoise=0.10000000000000001, minVal=0.0, maxVal=1.0)Returns a noisy version of the given list, and assumes a range of values between 0.0 and 1.0. |
makeNoisySequence(sequence, repeat, percentNoise=0.10000000000000001)Returns a noisy version of the given sequence, with each item repeated the number of times designated by the repeat variable. |
stringArray(a, newline=1, width=0, format='%4.4f ')String form of an array (any sequence of floats, really) to the screen. |
| Variable Details |
|---|
__author__
|
__version__
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:27 2005 | http://epydoc.sf.net |