org.android.activityminer.logic.features
Class FeatureExtractorForDBRecordings
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<SensorObservationDimensions>
org.android.activityminer.logic.features.FeatureExtractorForDBRecordings
- All Implemented Interfaces:
- EventDispatcher<SensorObservationCutout<SensorObservationDimensions,Double>,FeatureVector>, EventObserver<FeatureVector>, ObservableEventSource<FeatureVector>, ObserverRegistration<FeatureVector>, WorkerThread, Runnable, ActivatableComponent
public class FeatureExtractorForDBRecordings
- extends AbstractFeatureExtractorForDBRecordings<SensorObservationDimensions>
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 |
FeatureExtractorForDBRecordings
public FeatureExtractorForDBRecordings(long windowSize,
int overlap,
long sampleRate,
Context context)
- Constructor
- Parameters:
windowSize
- the size of the window to extract features from, which is
moved over the raw time series streamoverlap
- the overlap in percent of continuous cut-outssampleRate
- the configured sample ratecontext
- the context
getFactory
protected final AbstractFeatureFactory<SensorObservationDimensions> getFactory(Context context)
- Description copied from class:
AbstractFeatureExtractor
- Getter for the feature factory
- Specified by:
getFactory
in class AbstractFeatureExtractor<SensorObservationDimensions>
- Parameters:
context
- the context
- Returns:
- the feature factory to use
createObservationFromCutOut
protected SensorObservation<SensorObservationDimensions,Double> createObservationFromCutOut(SensorObservationCutout<SensorObservationDimensions,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<SensorObservationDimensions>
- Parameters:
cutOut
- the cut-out to create the sensor observation fromi
- the indexts
- the time stamp
- Returns:
- the sensor observation created from recording