org.android.activityminer.model.features
Class LabeledSample

Package class diagram package LabeledSample
java.lang.Object
  extended by org.android.activityminer.model.features.LabeledSample

public class LabeledSample
extends Object

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

id

public long id
the unique record identifier of the samples feature vector in the database.


activityLabel

public final ActivityLabel activityLabel
The activity label.


features

public final FeatureVector features
The frame with the raw time series data.

Constructor Detail

LabeledSample

public LabeledSample(FeatureVector features,
                     ActivityLabel activityLabel)
Constructor

Parameters:
features - the features of this sample
activityLabel - the activity label associated with the recorded time series frames

LabeledSample

public LabeledSample(DBFeatureVector dbRecord)
              throws Exception
Constructor

Parameters:
dbRecord - the database representation of this sample
Throws:
Exception
Method Detail

toDBFeatureVector

public final DBFeatureVector toDBFeatureVector()
                                        throws Exception
Method to create a database representation from this sample.

Returns:
a database frame representation
Throws:
Exception