|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.features.LabeledSample
public class LabeledSample
A LabeldSample does represent the features extracted from a cutOut of the
multivariate time series data. It is associated with the activity
label of the recording it was generated from.
This type is used for exchange with the persistence layer.
Field Summary | |
---|---|
ActivityLabel |
activityLabel
The activity label. |
FeatureVector |
features
The frame with the raw time series data. |
long |
id
the unique record identifier of the samples feature vector in the database. |
Constructor Summary | |
---|---|
LabeledSample(DBFeatureVector dbRecord)
Constructor |
|
LabeledSample(FeatureVector features,
ActivityLabel activityLabel)
Constructor |
Method Summary | |
---|---|
DBFeatureVector |
toDBFeatureVector()
Method to create a database representation from this sample. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long id
public final ActivityLabel activityLabel
public final FeatureVector features
Constructor Detail |
---|
public LabeledSample(FeatureVector features, ActivityLabel activityLabel)
features
- the features of this sampleactivityLabel
- the activity label associated with the recorded time
series framespublic LabeledSample(DBFeatureVector dbRecord) throws Exception
dbRecord
- the database representation of this sample
Exception
Method Detail |
---|
public final DBFeatureVector toDBFeatureVector() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |