|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFaDe.FeatureCalculator
public class FeatureCalculator
The FeatureCalculator class is used to calculate features describing user's behaviour in using mouse and keyboard.
First the class has to be filled with data by calling either the collectData
or the useDataFromLogger(logger)
methods.
Than any feature can be obtained with the getFeature(feature)
method, or the whole set of features can be obtained with the getFeatureSet()
method.
Constructor Summary | |
---|---|
FeatureCalculator()
Class constructor. |
Method Summary | |
---|---|
void |
collectData()
Causes the class to collect user input data for the default time. |
void |
collectData(int minutes)
Causes the class to collect user input data for the specified minutes. |
java.lang.Double |
getFeature(FeatureSet.Feature feature)
Calculates and returns the specified feature value. |
FeatureSet |
getFeatureSet()
Calculate and returns the entire FeatureSet. |
void |
useDataFromLogger(Logger logger)
Adds a previously collected log to be used for feature calculation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureCalculator()
Method Detail |
---|
public void collectData()
public void collectData(int minutes)
minutes
- the minutes to collect data forpublic void useDataFromLogger(Logger logger)
collectData
.
logger
- the previously collected logpublic java.lang.Double getFeature(FeatureSet.Feature feature)
feature
- the feature to return
public FeatureSet getFeatureSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |