|
|
◆ WSint1f()
| Function WSint1f |
( |
N As |
Long, |
|
|
R As |
Variant |
|
) |
| |
One-dimensional sine transform
- Purpose
- WSint1f computes the one-dimensional Fourier transform of an odd sequence within a real array. This is referred to as the forward transform or Fourier analysis, transforming the sequence from physical to spectral space.
R(k) = (2/(N+1))ΣR(j)sin(π(j+1)(k+1)/(N+1)) (Σ for j = 0 to N-1) (k = 0 to N-1)
This transform is normalized since a call to WSint1f followed by a call to WSint1b (or vice-versa) reproduces the original array subject to algorithmic constraints, roundoff error, etc.
- Returns
- N x 1
| Column 1 |
| Rows 1 to N | Sine transformed data sequence |
- Parameters
-
| [in] | N | The length of the sequence to be transformed. (N >= 1)
The transform is most efficient when N + 1 is a product of small primes. |
| [in] | R | (N) The sequence to be transformed. |
- Reference
- FFTPACK
- Example
- Compute the sine transform of the data sequence by WSint1f. Then compute its backward transform by WSint1b and confirm that the original data sequence is restored.
|