public final class Feature1024 extends Feature
Modifier and Type | Field and Description |
---|---|
static int |
LENGTH
Length of feature vectors.
|
static int |
NUM_BYTES
Total number of bytes to represent
|
private byte[] |
vectorBytes
The feature vector.
|
Constructor and Description |
---|
Feature1024()
Create a feature with no data filled.
|
Feature1024(byte[] featureVector)
Create a feature with known feature vector.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
|
int |
getLength()
|
int |
getNumBytes()
|
float[] |
getVector()
|
public static final int LENGTH
public static final int NUM_BYTES
private byte[] vectorBytes
public Feature1024()
public Feature1024(byte[] featureVector)
featureVector
- The feature vector to fill into the new feature.
Its length
should be the same as the predefined length of the Feature
class.
public int getLength()
public int getNumBytes()
getNumBytes
in
class Feature
public float[] getVector()