|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RealTransformer
Interface for one-dimensional data sets transformations producing real results.
Such transforms include sine transform,
cosine transform or Hadamard transform. Fourier transform is of a different kind and does not implement this
interface since it produces Complex
results instead of real ones.
| Method Summary | |
|---|---|
double[] |
transform(double[] f,
TransformType type)
Returns the (forward, inverse) transform of the specified real data set. |
double[] |
transform(UnivariateFunction f,
double min,
double max,
int n,
TransformType type)
Returns the (forward, inverse) transform of the specified real function, sampled on the specified interval. |
| Method Detail |
|---|
double[] transform(double[] f,
TransformType type)
throws MathIllegalArgumentException
f - the real data array to be transformed (signal)type - the type of transform (forward, inverse) to be performed
MathIllegalArgumentException - if the array cannot be transformed
with the given type (this may be for example due to array size, which is
constrained in some transforms)
double[] transform(UnivariateFunction f,
double min,
double max,
int n,
TransformType type)
throws NonMonotonicSequenceException,
NotStrictlyPositiveException,
MathIllegalArgumentException
f - the function to be sampled and transformedmin - the (inclusive) lower bound for the intervalmax - the (exclusive) upper bound for the intervaln - the number of sample pointstype - the type of transform (forward, inverse) to be performed
NonMonotonicSequenceException - if the lower bound is greater than, or equal to the upper bound
NotStrictlyPositiveException - if the number of sample points is negative
MathIllegalArgumentException - if the sample cannot be transformed
with the given type (this may be for example due to sample size, which is
constrained in some transforms)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||