public class SimplifiedTimeSeriesLoader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CHARSET
Default charset used when extracting from files.
|
| Constructor and Description |
|---|
SimplifiedTimeSeriesLoader() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countFileLines(java.io.File file)
Counts the lines of the given File object in a very efficient way (thanks to
https://stackoverflow.com/a/453067).
|
static ai.libs.jaicore.basic.sets.Pair<TimeSeriesDataset,ClassMapper> |
loadArff(java.io.File arffFile)
Loads a univariate time series dataset from the given arff file.
|
static ai.libs.jaicore.basic.sets.Pair<TimeSeriesDataset,ClassMapper> |
loadArffs(java.io.File... arffFiles)
Loads a multivariate time series dataset from multiple arff files (each for
one series).
|
public static final java.lang.String DEFAULT_CHARSET
public static ai.libs.jaicore.basic.sets.Pair<TimeSeriesDataset,ClassMapper> loadArff(java.io.File arffFile) throws TimeSeriesLoadingException
arffFile - The arff file which is readTimeSeriesLoadingException - Throws an exception when the TimeSeriesDataset could not be
created from the given file.public static ai.libs.jaicore.basic.sets.Pair<TimeSeriesDataset,ClassMapper> loadArffs(java.io.File... arffFiles) throws TimeSeriesLoadingException
arffFiles - A sequence of arff files each containing one time series per
instanceTimeSeriesLoadingException - Throws an exception when the TimeSeriesDataset could not be
created from the given files.public static int countFileLines(java.io.File file)
throws java.io.IOException
filename - File which lines of code are countedjava.io.IOException - Throws exception when the given file could not be read