org.android.activityminer.logic.features
Class FeatureExtractorForAccDBRecordings
java.lang.Object
java.lang.Thread
de.unikassel.android.sdcframework.util.AbstractWorkerThread
de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl<SensorObservationCutout<T,Double>,FeatureVector>
org.android.activityminer.logic.features.AbstractFeatureExtractor<T>
org.android.activityminer.logic.features.AbstractCutoutFeatureExtractor<T>
org.android.activityminer.logic.features.AbstractFeatureExtractorForDBRecordings<AccSensorObservationDimensions>
org.android.activityminer.logic.features.FeatureExtractorForAccDBRecordings
- All Implemented Interfaces:
- EventDispatcher<SensorObservationCutout<AccSensorObservationDimensions,Double>,FeatureVector>, EventObserver<FeatureVector>, ObservableEventSource<FeatureVector>, ObserverRegistration<FeatureVector>, WorkerThread, Runnable, ActivatableComponent
public class FeatureExtractorForAccDBRecordings
- extends AbstractFeatureExtractorForDBRecordings<AccSensorObservationDimensions>
A special feature extractor extension to extract features from the labeled
time series
recordings.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
FeatureExtractorForAccDBRecordings
public FeatureExtractorForAccDBRecordings(long windowSize,
int overlapSize,
long sampleRate,
Context context)
- Constructor
- Parameters:
windowSize
- the fixed size of the cutOut to extract features from, which is
moved over the raw time series streamoverlapSize
- the count of samples by which a cutOut will overlap with the
previous onesampleRate
- the configured sample ratecontext
- the context
getFactory
protected AbstractFeatureFactory<AccSensorObservationDimensions> getFactory(Context context)
- Description copied from class:
AbstractFeatureExtractor
- Getter for the feature factory
- Specified by:
getFactory
in class AbstractFeatureExtractor<AccSensorObservationDimensions>
- Parameters:
context
- the context
- Returns:
- the feature factory to use
createObservationFromCutOut
protected SensorObservation<AccSensorObservationDimensions,Double> createObservationFromCutOut(SensorObservationCutout<AccSensorObservationDimensions,Double> cutOut,
int i,
Long ts)
- Description copied from class:
AbstractFeatureExtractorForDBRecordings
- Does create a sensor observation from a cut-out window at a given index
with a given time stamp
- Specified by:
createObservationFromCutOut
in class AbstractFeatureExtractorForDBRecordings<AccSensorObservationDimensions>
- Parameters:
cutOut
- the cut-out to create the sensor observation fromi
- the indexts
- the time stamp
- Returns:
- the sensor observation created from recording