Interface RealTransform
-
- All Superinterfaces:
Function<double[],double[]>
,UnaryOperator<double[]>
- All Known Implementing Classes:
FastCosineTransform
,FastHadamardTransform
,FastSineTransform
public interface RealTransform extends UnaryOperator<double[]>
Real transforms.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double[]
apply(double[] f)
Returns the transform of the specified data set.default double[]
apply(DoubleUnaryOperator f, double min, double max, int n)
Returns the transform of the specified function.
-
-
-
Method Detail
-
apply
double[] apply(double[] f)
Returns the transform of the specified data set.- Specified by:
apply
in interfaceFunction<double[],double[]>
- Parameters:
f
- the data array to be transformed (signal).- Returns:
- the transformed array (spectrum).
- Throws:
IllegalArgumentException
- if the transform cannot be performed.
-
apply
default double[] 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.
-
-