|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.classification.ActivityImpl
public class ActivityImpl
The activity representation for classification.
An activity does is an extended feature vector, which may also know its
class.
Field Summary | |
---|---|
private long |
classid
The class attribute value. |
protected FeatureVector |
featureVector
The feature vector. |
Constructor Summary | |
---|---|
ActivityImpl(FeatureVector featureVector)
Constructor |
|
ActivityImpl(FeatureVector featureVector,
long classid)
Constructor |
Method Summary | |
---|---|
long |
getActivityClass()
Getter for the class identifier. |
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. |
Long |
getTimeStamp()
Getter for the time stamp. |
Double |
getValue(int idxAttribute)
Getter for an attributes value. |
Double |
getValue(String attribute)
Getter for an attributes value. |
Double[] |
getValues()
Getter for the attribute values in the internal order of the attributes. |
boolean |
hasActivityClass()
Test method if class is set. |
void |
setActivityClass(long classId)
Setter for the class identifier |
void |
setValue(int idxAttribute,
Double value)
Does set a value at the given attribute index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final FeatureVector featureVector
private long classid
Constructor Detail |
---|
public ActivityImpl(FeatureVector featureVector, long classid)
featureVector
- the feature vector to create fromclassid
- the class identifier (-1 if unknown)public ActivityImpl(FeatureVector featureVector)
featureVector
- the feature vector to create fromMethod Detail |
---|
public final boolean hasActivityClass()
Activity
hasActivityClass
in interface Activity
public final long getActivityClass()
Activity
getActivityClass
in interface Activity
public final void setActivityClass(long classId)
classId
- the class identifier to setpublic final Long getTimeStamp()
Activity
getTimeStamp
in interface Activity
public final Double getValue(String attribute)
Activity
getValue
in interface Activity
attribute
- the attribute name
public void setValue(int idxAttribute, Double value)
Activity
setValue
in interface Activity
idxAttribute
- the attribute indexvalue
- the value to setpublic Double getValue(int idxAttribute)
Activity
getValue
in interface Activity
idxAttribute
- the attribute index
public String[] getAttributes()
Activity
getAttributes
in interface Activity
public double[] getPoint()
Activity
getPoint
in interface Activity
public int getAttributeCount()
Activity
getAttributeCount
in interface Activity
public Double[] getValues()
Activity
getValues
in interface Activity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |