public class DenseArrayFloatFeatureVector extends java.lang.Object implements FloatFeatureVector
| Constructor and Description |
|---|
DenseArrayFloatFeatureVector(double[] weights) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDim() |
double |
getDotProduct(FloatWeights weights,
int tag_index,
int offset) |
double[] |
getValues() |
void |
updateFloatWeight(FloatWeights weights,
int tag_index,
int offset,
double value) |
public DenseArrayFloatFeatureVector(double[] weights)
public int getDim()
getDim in interface FloatFeatureVectorpublic 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[] getValues()