Interface ComplexTransform
-
- All Superinterfaces:
Function<org.apache.commons.numbers.complex.Complex[],org.apache.commons.numbers.complex.Complex[]>,UnaryOperator<org.apache.commons.numbers.complex.Complex[]>
- All Known Implementing Classes:
FastFourierTransform
public interface ComplexTransform extends UnaryOperator<org.apache.commons.numbers.complex.Complex[]>
Complextransform.Such transforms include
sine transform,cosine transformorHadamard transform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.apache.commons.numbers.complex.Complex[]apply(double[] f)Returns the transform of the specified data set.default org.apache.commons.numbers.complex.Complex[]apply(DoubleUnaryOperator f, double min, double max, int n)Returns the transform of the specified function.org.apache.commons.numbers.complex.Complex[]apply(org.apache.commons.numbers.complex.Complex[] f)Returns the transform of the specified data set.
-
-
-
Method Detail
-
apply
org.apache.commons.numbers.complex.Complex[] apply(org.apache.commons.numbers.complex.Complex[] f)
Returns the transform of the specified data set.- Specified by:
applyin interfaceFunction<org.apache.commons.numbers.complex.Complex[],org.apache.commons.numbers.complex.Complex[]>- Parameters:
f- the data array to be transformed (signal).- Returns:
- the transformed array (spectrum).
- Throws:
IllegalArgumentException- if the transform cannot be performed.
-
apply
org.apache.commons.numbers.complex.Complex[] apply(double[] f)
Returns the transform of the specified data set.- Parameters:
f- the data array to be transformed (signal).- Returns:
- the transformed array (spectrum).
- Throws:
IllegalArgumentException- if the transform cannot be performed.
-
apply
default org.apache.commons.numbers.complex.Complex[] apply(DoubleUnaryOperator f, double min, double max, int n)
Returns the transform of the specified function.- Parameters:
f- Function to be sampled and transformed.min- Lower bound (inclusive) of the interval.max- Upper bound (exclusive) of the interval.n- Number of sample points.- Returns:
- the result.
- Throws:
IllegalArgumentException- if the transform cannot be performed.
-
-