|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.features.FeatureVector
public class FeatureVector
The lightweight feature vector representation which does just hold the calculated feature values accessible by their types.
Field Summary | |
---|---|
private SparseArray<Double> |
mapValue2FeatureType
The map with the values per feature dimension. |
private Long |
timeStamp
The time stamp for the feature vector. |
Constructor Summary | |
---|---|
FeatureVector()
Constructor |
Method Summary | |
---|---|
Double |
get(FeatureTypes type)
Getter for the value of a specific feature type |
SparseArray<Double> |
getMapValue2FeatureDimension()
Getter for the map with the values per feature dimension. |
Long |
getTimeStamp()
Getter for the time stamp. |
FeatureTypes[] |
getTypes()
Getter for the feature types |
Double[] |
getValues()
Getter for the values. |
void |
set(FeatureTypes dim,
Double value)
Setter for the feature value of a specific feature type. |
void |
setMapValue2FeatureDimension(SparseArray<Double> mapValue2FeatureType)
Setter for the map with the values per feature type. |
void |
setTimeStamp(Long ts)
Setter for the time-stamp |
int |
size()
Getter for the size. |
String |
toXML()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SparseArray<Double> mapValue2FeatureType
private Long timeStamp
Constructor Detail |
---|
public FeatureVector()
Method Detail |
---|
public final void setMapValue2FeatureDimension(SparseArray<Double> mapValue2FeatureType)
mapValue2FeatureType
- the map with the feature value pairspublic final SparseArray<Double> getMapValue2FeatureDimension()
public final Long getTimeStamp()
public final void setTimeStamp(Long ts)
ts
- the time-stamp to setpublic final Double[] getValues()
public final FeatureTypes[] getTypes()
public final Double get(FeatureTypes type)
type
- the feature type identifier
public final void set(FeatureTypes dim, Double value)
dim
- the feature type to set the value forvalue
- the value to setpublic final String toXML() throws Exception
toXML
in interface SerializableData
Exception
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |