public class ArrayFloatFeatureVector extends java.lang.Object implements FloatFeatureVector
| Constructor and Description |
|---|
ArrayFloatFeatureVector(int[] features,
double[] weights,
int dim) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDim() |
double |
getDotProduct(FloatWeights weights,
int tag_index,
int offset) |
int[] |
getFeatures() |
double[] |
getWeights() |
void |
setDim(int dim) |
void |
updateFloatWeight(FloatWeights weights,
int tag_index,
int offset,
double value) |
public ArrayFloatFeatureVector(int[] features,
double[] weights,
int dim)
public int getDim()
getDim in interface FloatFeatureVectorpublic void setDim(int dim)
public void updateFloatWeight(FloatWeights weights, int tag_index, int offset, double value)
updateFloatWeight in interface FloatFeatureVectorpublic double getDotProduct(FloatWeights weights, int tag_index, int offset)
getDotProduct in interface FloatFeatureVectorpublic double[] getWeights()
public int[] getFeatures()