|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.ksu.cis.kdd.tiler.CMAC
Adaptation of Rich Sutton's CMAC tiler v2.0. See:
http://www-anw.cs.umass.edu/~rich/tiles2.html
Basic version.
| Field Summary | |
static CMAC |
v
|
| Constructor Summary | |
CMAC()
Default constructor with 2048 entries of random numbers |
|
CMAC(int randomsize)
|
|
| Method Summary | |
int[] |
getTiles(int numTile,
int maxVarSize,
double[] nums)
|
int[] |
getTiles(int numTile,
int maxVarSize,
double[] nums,
int h1)
|
int[] |
getTiles(int numTile,
int maxVarSize,
double[] nums,
int[] hashModifier)
Do the CMAC tiling. |
protected int |
hash(int[] num,
int maxValue,
int incr)
UNH hashing procedure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static CMAC v
| Constructor Detail |
public CMAC()
Object.Object()public CMAC(int randomsize)
| Method Detail |
public int[] getTiles(int numTile,
int maxVarSize,
double[] nums)
getTiles(int, int, double[], int[])
public int[] getTiles(int numTile,
int maxVarSize,
double[] nums,
int h1)
getTiles(int, int, double[], int[])
public int[] getTiles(int numTile,
int maxVarSize,
double[] nums,
int[] hashModifier)
numTile - The number of tile elements to output (corresponds to the
num_tilings)maxVarSize - The maximum number elements if there were no tilings
(corresponds to the memory_size), try to make it a power of two if
possible.nums - The numbers to tile (corresponds to floats)hashModifier - An array of integers to modify the hashing
procedures. If null, then we do the default hashing. (corresponds to
ints).
protected int hash(int[] num,
int maxValue,
int incr)
num - The number arrays to determine the hashingmaxValue - The maximum value of the resultincr - The increment parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||