geraldfournier
1c0bc1d5c9
make fft scaling independent from rounding behaviour for odd data
2026-03-06 16:34:20 +01:00
Holger Vogt
32e0d5f12f
Revert "make fft scaling independent from rounding behaviour for odd data"
...
This reverts commit a31ac54200 .
2026-03-06 16:31:29 +01:00
dwarning
a31ac54200
make fft scaling independent from rounding behaviour for odd data
2026-03-05 09:30:55 +01:00
dwarning
b522bcc6c0
correct Nyquist bin scaling for Green branch
2026-03-03 20:39:08 +01:00
dwarning
ad44b4ff4c
let nyquist bin not empty for odd vector
2026-03-03 18:32:32 +01:00
dwarning
a0dc0bb608
Special Nyquist scaling only for even length
2026-03-03 09:55:57 +01:00
dwarning
6ae057b3ea
revert commit 5e82b63
2026-03-03 08:54:03 +01:00
dwarning
d2b1ecbb23
correct fft scaling at Nyquist freq. in fft cmd and vector operation
2026-03-01 16:18:24 +01:00
dwarning
5e82b63f62
adapt FFT point number for real input vectors in fft cmd and vector operation wrt. bug #829
2026-03-01 16:14:04 +01:00
Holger Vogt
26c86841df
Remove compiler warnings
2026-02-03 15:20:05 +01:00
Holger Vogt
14363ba45a
Moving window filtering with function 'newvec = mtimeavg(vec)'
...
Window of fixed time width given by 'set mtimeavgwindow=400u'
Length and scale of newvec resembles the original vetor vec.
Large vec and large mtimeavgwindow take their time.
OpenMP is used if available.
2026-01-20 15:24:52 +01:00
dwarning
adaa3d39fc
no use for grouping in cx_fft and cx_ifft
2024-02-16 13:56:43 +01:00
dwarning
794a37339a
ifft: in case input array is smaller then output array - fill in the rest with zero to prevent uninitialzed plot variables
2023-07-15 11:32:11 +02:00
dwarning
42b803e5c2
same array size for in- and output in inverse fft function from fftw3
2023-07-15 11:31:59 +02:00
dwarning
45e6d319f3
partly revert last commit: only real input vector get special scaling for dc component
2023-03-18 14:31:31 +01:00
dwarning
bccaee4821
correct fft dc scaling bug #620
2023-03-18 14:31:24 +01:00
Holger Vogt
70f38ec25f
Update for doxygen: add function names to \brief
2022-10-22 19:51:06 +02:00
Holger Vogt
b6d2a50e42
Update to comments for doxygen
2022-10-22 19:50:40 +02:00
Holger Vogt
3288d5ac99
Test for doxygen documentation
2022-10-22 19:48:12 +02:00
Holger Vogt
d46b4030fb
Avoid jump in phase when crossing 90° boundaries.
...
Code similar to cx_cph in cmath1.c
2022-10-07 13:00:02 +02:00
Holger Vogt
26c50de68b
function deriv: This is just a preliminary fix: prevent a crash
...
when base > 0.
But when is base supposed to be > 0 ? More invetigation is needed.
2022-04-25 21:34:41 +02:00
Holger Vogt
1605d293d0
Add function integ to control language
...
Trapezoidal rule for integrating a vector.
2021-12-13 21:49:45 +01:00
Carsten Schoenert
2c2e21a80c
Smal typo fixup s/currntly/currently
2021-08-08 11:56:30 +02:00
Holger Vogt
4dbd8b7f9a
Preliminary fix for the 'interpolate' function.
...
Interpolation of 1D vectors is o.k. now,
multi-dimensional vectors are not (yet) supported.
2021-07-22 20:37:57 +02:00
Holger Vogt
09c876550f
prevent string overflow by adding the string length
...
to the cp_getvar parameters. Used only with CP_STRING
2018-07-22 14:57:49 +02:00
dwarning
b8a9ca9df4
correct the fft scaling for real input and complex output vector
2017-08-16 21:35:41 +02:00
h_vogt
fca8ab3146
cmath4.c, cx_deriv(), remove a memory leak
2016-07-20 18:09:18 +02:00
rlar
9d32a0a5a9
simplify complex assignments
2015-12-29 18:15:06 +01:00
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
8a4a37b5bb
dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation
2015-12-28 20:34:42 +01:00
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
2015-12-28 20:34:42 +01:00
rlar
d98c5c90f3
src/maths/cmaths/cmath4.c, bug fix, cx_fft, cx_ifft, cx_derive
...
incorrect check for VF_COMPLEX in field v_type instead of v_flags
2015-03-10 20:09:20 +01:00
dwarning
2e79c16f55
cmath4.c, drop unused doubledouble()
2014-01-02 09:53:51 +01:00
dwarning
2671aef5cd
cmath4.c, correct array size and relay to specific array order for r2c transformation
2014-01-02 09:53:49 +01:00
dwarning
dc398f1387
cmath4.c, correct scale for ifft
2014-01-02 09:53:48 +01:00
dwarning
51c7f17186
cmath4.c, use FFTW3 for cx_fft() and cx_ifft()
2014-01-02 09:53:47 +01:00
dwarning
cd8aa1ee04
cmath4.c, com_fft.c, cleanup
2014-01-02 09:51:41 +01:00
dwarning
f989219f6f
cmath4.c, com_fft.c, rename `size' --> `N' and `mm' --> `M'
2014-01-02 09:51:39 +01:00
dwarning
68da03f9de
preserve vector length for fft by interpolation, window by default: none
2013-12-31 16:13:15 +01:00
dwarning
6a3da0105b
fft and ifft as vector functions
2013-12-31 16:13:08 +01:00
dwarning
e1fa276ddc
whitespace
2013-12-31 16:13:06 +01:00
rlar
a056ea3065
#3/4 switch realpart() and imagpart() args from ngcomplex* to ngcomplex
2012-02-07 19:53:12 +00:00
rlar
94e3abd847
#2/4 switch cph() and cmag() args from ngcomplex* to ngcomplex
2012-02-07 19:49:31 +00:00
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
2011-12-11 18:05:00 +00:00
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
2011-08-20 17:27:09 +00:00
rlar
55638c8023
various cleanups
2011-04-30 12:29:19 +00:00
rlar
4622d0876e
ngcomplex_t instead of complex, #1/2
2010-10-24 12:45:05 +00:00
rlar
a76cd1e104
textual replacement VT_* to CP_*, to avoid conflict in the windows world
2010-07-17 20:48:20 +00:00
rlar
0aa1c09d73
consolidate enum cp_types and enum vt_types .
...
use this enum for some function arguments and struct members .
drop some include "variable.h" which are no longer needed ,
propably many more could be droped .
drop #define VT_* which have been used as workaround for the type mess .
2010-07-17 15:14:45 +00:00
pnenzi
f543aa8c06
Improvements in vector derivative computation and new functions to
...
compute group delay and moving average. From espice (A. Roldan).
2009-01-15 21:08:09 +00:00