|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.features.TimeSeriesUtil
public class TimeSeriesUtil
This class contains utility functions for dealing with time series.
| Constructor Summary | |
|---|---|
TimeSeriesUtil()
|
|
| Method Summary | |
|---|---|
static double[][] |
cutSegmentsToEqualLength(double[] segment1,
double[] segment2)
This method equalizes the length of two time series segments by cutting the longer to the length of the shorter. |
static int |
getMaxInd(int numFftPoints,
int samplerate,
int cutOffFrequency)
Compute the maximum index of a vector of FFT coefficients that needs to considered when using them only up to the specified cut-off frequency. |
static double[][] |
slice(double[] segment,
int maxSegmentLength,
int segmentSkip)
Slices a time series into multiple parts pf a specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeSeriesUtil()
| Method Detail |
|---|
public static double[][] cutSegmentsToEqualLength(double[] segment1,
double[] segment2)
segment1 - The first time series segment to use.segment2 - The second time series segment to use.
public static double[][] slice(double[] segment,
int maxSegmentLength,
int segmentSkip)
segment - The time series segment to slice.maxSegmentLength - The number of samples that the slices should
have. If set to -1, no slicing will happen.segmentSkip - How many samples to skip when generating the next
slice. Slices will overlap by (maxSegmentLength-segmentSkip)
samples.
public static int getMaxInd(int numFftPoints,
int samplerate,
int cutOffFrequency)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||