org.android.activityminer.logic.features
Class FeatureExtractorForAccDBRecordings

Package class diagram package FeatureExtractorForAccDBRecordings
java.lang.Object
  extended by java.lang.Thread
      extended by de.unikassel.android.sdcframework.util.AbstractWorkerThread
          extended by de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl<SensorObservationCutout<T,Double>,FeatureVector>
              extended by org.android.activityminer.logic.features.AbstractFeatureExtractor<T>
                  extended by org.android.activityminer.logic.features.AbstractCutoutFeatureExtractor<T>
                      extended by org.android.activityminer.logic.features.AbstractFeatureExtractorForDBRecordings<AccSensorObservationDimensions>
                          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.android.activityminer.logic.features.AbstractFeatureExtractorForDBRecordings
sensorObservationSource
 
Fields inherited from class de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl
collector
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FeatureExtractorForAccDBRecordings(long windowSize, int overlapSize, long sampleRate, Context context)
          Constructor
 
Method Summary
protected  SensorObservation<AccSensorObservationDimensions,Double> createObservationFromCutOut(SensorObservationCutout<AccSensorObservationDimensions,Double> cutOut, int i, Long ts)
          Does create a sensor observation from a cut-out window at a given index with a given time stamp
protected  AbstractFeatureFactory<AccSensorObservationDimensions> getFactory(Context context)
          Getter for the feature factory
 
Methods inherited from class org.android.activityminer.logic.features.AbstractFeatureExtractorForDBRecordings
continuousExtractFeatures, extractFeatures, hasNotDone, onActivationStateChange, onEvent, startContinuousFeatureExtraction, stopContinuousFeatureExtraction, waitUnitlDone
 
Methods inherited from class org.android.activityminer.logic.features.AbstractCutoutFeatureExtractor
attachSensorObservationSource, detachSensorObservationSource, getCutoutSource, getOverlapSize, getQueuedObservationCount, getWindowSize, onDestroy, setWindowSize
 
Methods inherited from class org.android.activityminer.logic.features.AbstractFeatureExtractor
doWork, featureTypeConfiguration, getExtractionTime, getQueuedCutoutCount, isActive, isEctracting, setActivationState
 
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractEventDispatcherImpl
doCleanUp, getCollector, getEventSource, hasObservers, notify, registerEventObserver, removeAllObservers, unregisterEventObserver
 
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractWorkerThread
doTerminate, hasTerminated, isLogging, isWorking, logMessage, run, setLogging, start, startWork, stopWork
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObservableEventSource
hasObservers, notify
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ObserverRegistration
registerEventObserver, removeAllObservers, unregisterEventObserver
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.WorkerThread
doTerminate, hasTerminated, isLogging, isWorking, setLogging, startWork, stopWork
 

Constructor Detail

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 stream
overlapSize - the count of samples by which a cutOut will overlap with the previous one
sampleRate - the configured sample rate
context - the context
Method Detail

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 from
i - the index
ts - the time stamp
Returns:
the sensor observation created from recording