public final class FeatureVector
extends de.julielab.gnu.trove.TLinkedList
Also, in order to avoid copies, the second of these internal FeatureVector instances can be negated, so that it has the effect of subtracting any values rather than adding them.
Created: Sat Nov 10 15:25:10 2001
Feature,
Serialized FormmodCount| Constructor and Description |
|---|
FeatureVector() |
FeatureVector(FeatureVector fv1) |
FeatureVector(FeatureVector fv1,
FeatureVector fv2) |
FeatureVector(FeatureVector fv1,
FeatureVector fv2,
boolean negSecond) |
FeatureVector(int[] keys) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
double value) |
FeatureVector |
cat(FeatureVector fl2) |
double |
dotProduct(FeatureVector fl2) |
FeatureVector |
getDistVector(FeatureVector fl2) |
double |
getScore(double[] parameters) |
int[] |
keys() |
String |
toString() |
void |
update(double[] parameters,
double[] total,
double alpha_k,
double upd) |
add, add, addBefore, addFirst, addLast, clear, contains, getFirst, getLast, insert, listIterator, remove, removeFirst, removeLast, size, toArray, toUnlinkedArrayequals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListaddAll, containsAll, isEmpty, removeAll, retainAll, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArrayparallelStream, removeIf, streampublic FeatureVector()
public FeatureVector(FeatureVector fv1)
public FeatureVector(FeatureVector fv1, FeatureVector fv2)
public FeatureVector(FeatureVector fv1, FeatureVector fv2, boolean negSecond)
public FeatureVector(int[] keys)
public void add(int index,
double value)
public int[] keys()
public final FeatureVector cat(FeatureVector fl2)
public FeatureVector getDistVector(FeatureVector fl2)
public final double getScore(double[] parameters)
public void update(double[] parameters,
double[] total,
double alpha_k,
double upd)
public double dotProduct(FeatureVector fl2)
public final String toString()
toString in class AbstractCollectionCopyright © 2018 JULIE Lab Jena, Germany. All rights reserved.