class SimplifiedTimeSeriesLoader {

	@SuppressWarnings("unchecked")
	public static Pair<TimeSeriesDataset2, ClassMapper> loadArff(final File arffFile) throws TimeSeriesLoadingException {
		if (arffFile == null) {
			throw new IllegalArgumentException("Parameter 'arffFile' must not be null!");
		}

		Object[] tsTargetClassNames = loadTimeSeriesWithTargetFromArffFile(arffFile);

		ArrayList<double[][]> matrices = new ArrayList<>();
		matrices.add((double[][]) tsTargetClassNames[0]);

		ClassMapper cm = null;
		if (tsTargetClassNames[2] != null) {
			cm = new ClassMapper((List<String>) tsTargetClassNames[2]);
		}

		return new Pair<>(new TimeSeriesDataset2(matrices, new ArrayList<double[][]>(), (int[]) tsTargetClassNames[1]), cm);
	}

	private  SimplifiedTimeSeriesLoader();

}