Files
workbook/tests/fixtures/tsa_functions.gnumeric
waozi f2201d3f95 Add Fourier transform and Hodrick-Prescott filter with 1:1 gnumeric parity
FOURIER ports fn-tsa's recursive complex FFT (power-of-two padding,
forward/inverse argument step, and the 0.5-scaled butterfly), emitting
the complex string form like gnumeric's default array display or the
real part when separate columns are requested. HPFILTER ports the
pentadiagonal cyclic-tridiagonal solver from fn-tsa with the same
DIV0 detection, surfacing the first filtered value in scalar cells.

New tsa_functions fixture with 10 rows covering forward/inverse,
padding, separate-columns, and error shapes; 22 fixtures now 1:1 with
ssconvert including round-trips.
2026-09-05 10:21:50 -03:00

18 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<gnm:Workbook xmlns:gnm="http://www.gnumeric.org/v10.dtd">
<gnm:SheetNameIndex><gnm:SheetName gnm:Cols="6" gnm:Rows="24">Sheet1</gnm:SheetName></gnm:SheetNameIndex>
<gnm:Sheets><gnm:Sheet><gnm:Name>Sheet1</gnm:Name><gnm:MaxCol>5</gnm:MaxCol><gnm:MaxRow>23</gnm:MaxRow><gnm:Cells>
<gnm:Cell Row="0" Col="0" ValueType="30">3</gnm:Cell><gnm:Cell Row="1" Col="0" ValueType="30">1</gnm:Cell><gnm:Cell Row="2" Col="0" ValueType="30">4</gnm:Cell><gnm:Cell Row="3" Col="0" ValueType="30">1</gnm:Cell><gnm:Cell Row="4" Col="0" ValueType="30">5</gnm:Cell><gnm:Cell Row="5" Col="0" ValueType="30">9</gnm:Cell><gnm:Cell Row="6" Col="0" ValueType="30">2</gnm:Cell><gnm:Cell Row="7" Col="0" ValueType="30">6</gnm:Cell>
<gnm:Cell Row="0" Col="4">=FOURIER(A1:A8)</gnm:Cell>
<gnm:Cell Row="1" Col="4">=FOURIER(A1:A8,1)</gnm:Cell>
<gnm:Cell Row="2" Col="4">=FOURIER(A1:A8,0,1)</gnm:Cell>
<gnm:Cell Row="3" Col="4">=FOURIER(A1:A8,1,1)</gnm:Cell>
<gnm:Cell Row="4" Col="4">=FOURIER(A1:A5)</gnm:Cell>
<gnm:Cell Row="5" Col="4">=HPFILTER(A1:A8)</gnm:Cell>
<gnm:Cell Row="6" Col="4">=HPFILTER(A1:A8,100)</gnm:Cell>
<gnm:Cell Row="7" Col="4">=HPFILTER(A1:A5)</gnm:Cell>
<gnm:Cell Row="8" Col="4">=FOURIER(A1:B4)</gnm:Cell>
<gnm:Cell Row="9" Col="4">=HPFILTER(A1:B4)</gnm:Cell>
</gnm:Cells></gnm:Sheet></gnm:Sheets>
</gnm:Workbook>