class DFT extends AFilter {

	@Override
	public void fit(final TimeSeriesDataset2 input) {

		if (input.isEmpty()) {
			throw new IllegalArgumentException("This method can not work with an empty dataset.");
		}
		this.dftCoefficients.clear();

		for (int matrix = 0; matrix < input.getNumberOfVariables(); matrix++) {
			this.fitTransform(input.getValues(matrix));
			this.fittedMatrix = false;
			this.dftCoefficients.add(this.dftCoefficientsMatrix);
		}

		this.fitted = true;
	}

}