|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectclassifier.ANN
public class ANN
API for interface to ANN (Approximate Nearest Neighbor) classification. Copyright (c) 1999-2004, Michael Abramoff. All rights reserved.
| Constructor Summary | |
|---|---|
ANN()
|
|
| Method Summary | |
|---|---|
static int |
annkEstimates(float[] classes,
float[][] querypts,
int k,
int nrclasses,
double epsilon,
float[] estimates)
|
static int |
annkPriSearch(float[] querypt,
int k,
int[] indices,
float[] distances,
double epsilon)
|
static int |
bdtree(float[][] datapts)
|
static float[] |
estimate(float[][] querypts,
float[] trueclasses,
int k,
int nrclasses,
double epsilon)
Determine the ANN classification for an array of feature vectors. |
static int |
getvote(float[] classes,
int nrclasses)
|
static float[] |
kdhard(float[][] pts,
float[] trueclasses,
int nrclasses,
int k,
double epsilon)
Do a hard kd-tree knn classification. |
static int |
kdhard(float[] classes,
double[] matrix,
int nelements,
int k,
int nrclasses,
double epsilon,
int[] estimates)
|
static float[][] |
kdsoft(float[][] pts,
float[] trueclasses,
int nrclasses,
int k,
double epsilon)
Determine the ANN soft classification for an array of feature vectors. |
static int |
kdsoft(float[] classes,
double[] matrix,
int nelements,
int k,
int nrclasses,
double epsilon,
float[][] probs)
|
static int |
kdtree(float[][] datapts)
|
static java.lang.String |
version()
Train a ANN classifier (bd_tree). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ANN()
| Method Detail |
|---|
public static java.lang.String version()
public static int bdtree(float[][] datapts)
public static int kdtree(float[][] datapts)
public static int getvote(float[] classes,
int nrclasses)
public static int annkPriSearch(float[] querypt,
int k,
int[] indices,
float[] distances,
double epsilon)
public static int kdhard(float[] classes,
double[] matrix,
int nelements,
int k,
int nrclasses,
double epsilon,
int[] estimates)
public static int kdsoft(float[] classes,
double[] matrix,
int nelements,
int k,
int nrclasses,
double epsilon,
float[][] probs)
public static int annkEstimates(float[] classes,
float[][] querypts,
int k,
int nrclasses,
double epsilon,
float[] estimates)
public static float[] estimate(float[][] querypts,
float[] trueclasses,
int k,
int nrclasses,
double epsilon)
throws java.lang.Exception
querypts - float[][] the points to be queried as a vector of vectors.trueclasses - float[] the true classification for the current ANN training set (not for the querypts!)nrclasses - int the number of classes occuring in trueclassesk - int the numbe rof neighbors to consult.epsilon - double error term.
java.lang.Exception
public static float[][] kdsoft(float[][] pts,
float[] trueclasses,
int nrclasses,
int k,
double epsilon)
throws java.lang.Exception
pts - the point vectors to be queried, where ps[i][j] is the jth element of the feature vector i.trueclasses - the true classification for the current ANN training set (not for the querypts!)
java.lang.Exception
public static float[] kdhard(float[][] pts,
float[] trueclasses,
int nrclasses,
int k,
double epsilon)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||