|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.classification.ActivityImpl
org.android.activityminer.model.classification.TrainingActivity
public final class TrainingActivity
The special activity representation for training with a reduced feature set.
It does allow to hide attributes in the context of an evaluation run.
Field Summary | |
---|---|
private SortedSet<FeatureTypes> |
visibleAttributes
The set with the visible features; |
Fields inherited from class org.android.activityminer.model.classification.ActivityImpl |
---|
featureVector |
Constructor Summary | |
---|---|
TrainingActivity(DBFeatureVector dbFeatureVector)
Constructor |
Method Summary | |
---|---|
int |
getAttributeCount()
Getter for the attribute count. |
String[] |
getAttributes()
Getter for the attributes in its internal natural order. |
double[] |
getPoint()
Getter for the attribute values (unboxed from the double type) in the internal order of the attributes. |
Double[] |
getValues()
Getter for the attribute values in the internal order of the attributes. |
void |
setVisibleAttributes(Set<FeatureTypes> visibleAttributes)
Setter for the visible attributes |
TrainingActivity |
withActivityClass(long activityId)
|
Methods inherited from class org.android.activityminer.model.classification.ActivityImpl |
---|
getActivityClass, getTimeStamp, getValue, getValue, hasActivityClass, setActivityClass, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SortedSet<FeatureTypes> visibleAttributes
Constructor Detail |
---|
public TrainingActivity(DBFeatureVector dbFeatureVector) throws Exception
dbFeatureVector
- the database representation of a feature vector
Exception
- in case of serialization errorsMethod Detail |
---|
public final TrainingActivity withActivityClass(long activityId)
activityId
- the activity class identifer
public final void setVisibleAttributes(Set<FeatureTypes> visibleAttributes)
visibleAttributes
- the visible attributes to setpublic final String[] getAttributes()
Activity
getAttributes
in interface Activity
getAttributes
in class ActivityImpl
public final double[] getPoint()
Activity
getPoint
in interface Activity
getPoint
in class ActivityImpl
public final Double[] getValues()
Activity
getValues
in interface Activity
getValues
in class ActivityImpl
public final int getAttributeCount()
Activity
getAttributeCount
in interface Activity
getAttributeCount
in class ActivityImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |