mirror of
https://github.com/gonum/gonum.git
synced 2025-10-07 16:11:03 +08:00
dsp/window: move complex sequence weighting onto Values
This simplifies the API and removes the NaN from Inf problem.
This commit is contained in:
@@ -202,7 +202,7 @@ func TestWindowsComplex(t *testing.T) {
|
||||
src[i] = complex(1, 1)
|
||||
}
|
||||
|
||||
dst = NewValuesComplex(test.fnCmplx, len(src)).Transform(src)
|
||||
dst = NewValues(test.fn, len(src)).TransformComplex(src)
|
||||
if !equalApprox(dst, test.want, tol) {
|
||||
t.Errorf("unexpected result for lookup window function %q:\ngot:%#.6v\nwant:%#.6v", test.name, dst, test.want)
|
||||
}
|
||||
|
Reference in New Issue
Block a user