|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Feature>
features.Features
public class Features
Features defines a collection of features. Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.
| Constructor Summary | |
|---|---|
Features()
|
|
Features(float[][] fts,
int startindex,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
add(Feature[] newfeatures)
Add the elements in newfeatures to features. |
void |
add(java.util.Vector<Feature> newfeatures)
Add the elements in newfeatures to features. |
int |
length()
|
Features |
sample(int[] indices)
Return a new Features with all Feature element arrays containing only the elements in indices. |
float[][] |
subset(int[] indices)
Return a MxN float[][] matrix with a subset of the current Q features (each N in length), i.e. |
float[][] |
toMatrix()
|
java.lang.String |
toString(int i)
|
float[] |
toVector(int i)
|
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public Features()
public Features(float[][] fts,
int startindex,
java.lang.String name)
| Method Detail |
|---|
public float[][] toMatrix()
public void add(Feature[] newfeatures)
public void add(java.util.Vector<Feature> newfeatures)
public float[][] subset(int[] indices)
public Features sample(int[] indices)
public int length()
public java.lang.String toString(int i)
public float[] toVector(int i)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||