You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/czt.jl
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ The tuple `scale` defines the zoom factors in the Fourier domain. Each has to be
95
95
96
96
# Arguments:
97
97
+ `xin`: array to transform
98
-
+ `scale`: a tuple of factors (one for each dimension) to zoom into during the czt.
98
+
+ `scale`: a tuple of factors (one for each dimension) to zoom into during the czt. Note that a factor of nothing (or 1.0) needs to be provided, if a dimension is not transformed.
99
99
+ `dims`: a tuple of dimensions over which to apply the czt.
100
100
+ `remove_wrap`: if true, the wrapped places will be set to zero. Note that the `pad_value` argument is only allowed for 1d czts to not cause confusion.
error("Every of the $(ndims(xin)) dimension needs exactly one corresponding scale (zoom) factor, which should be equal to 1.0 for dimensions not contained in the dims argument.")
142
+
end
143
+
for d =1:ndims(xin)
144
+
if!(d in dims) && scale[d] !=1.0&&!isnothing(scale[d])
145
+
error("The scale factor $(scale[d]) needs to be nothing or 1.0, if this dimension is not in the list of dimensions to transform.")
@@ -153,7 +161,7 @@ The tuple `scale` defines the zoom factors in the Fourier domain. Each has to be
153
161
154
162
# Arguments:
155
163
+ `xin`: array to transform
156
-
+ `scale`: a tuple of factors (one for each dimension) of the the inverse czt.
164
+
+ `scale`: a tuple of factors (one for each dimension) of the the inverse czt. Note that a factor of nothing (or 1.0) needs to be provided, if a dimension is not transformed.
157
165
+ `dims`: a tuple of dimensions over which to apply the inverse czt.
158
166
+ `remove_wrap`: if true, the wrapped places will be set to zero.
159
167
Note that the `pad_value` argument is only allowed for 1d czts to not cause confusion.
0 commit comments