|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Neuro.Classify
public final class Classify
This class defines methods used to solve a classification problem.
| Constructor Summary | |
|---|---|
Classify()
|
|
| Method Summary | |
|---|---|
static int |
checkValidClassify(vector y)
Classify a pattern y by the check valid method |
static void |
chooseKRowsRandomly(matrix m,
integerVector rowIndexes,
int k)
Choose randomly k rows of the matrix m. |
static int |
classify(vector y,
int type)
Classify a pattern y |
static integerVector[] |
kMeanClustering(int k,
matrix m,
matrix cs)
Compute a matrix that contains k clustering patterns |
static int |
nearest(vector x,
matrix m)
Find the row index of the matrix m that has minimum distance to x. |
static int |
nearestClassify(vector y)
Classify a pattern y by the nearest method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Classify()
| Method Detail |
|---|
public static int classify(vector y,
int type)
y - A vector, the patterntype - An integer value,
0 for the nearest neighbor method
1 for the CheckValid method
public static int nearestClassify(vector y)
y - A vector, the pattern
public static int checkValidClassify(vector y)
y - A vector, the pattern
public static int nearest(vector x,
matrix m)
x - A vectorm - A matrix
public static void chooseKRowsRandomly(matrix m,
integerVector rowIndexes,
int k)
m - A matrixrowIndexes - An integerVectork - An integer
public static integerVector[] kMeanClustering(int k,
matrix m,
matrix cs)
k - An integerm - A matrixcs - A matrix
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||