Files
workbook/tests/fixtures/logreg_functions.gnumeric
waozi 45b84dcd8e Add LOGREG with 1:1 gnumeric parity
LOGREG (logarithmic regression) fits y against ln(x) using the
existing quad-precision general linear regression core, mirroring
go_logarithmic_regression: log-transformed known-xs with the same
vertical/horizontal/rectangular layouts and affine constant column,
rejecting non-positive x values like gnumeric's invalid-data path,
and surfacing the top-left array coefficient in scalar cells. New
logreg_functions fixture with 4 rows; 25 fixtures now 1:1 with
ssconvert including round-trips.
2026-09-05 10:42:04 -03:00

13 lines
1.2 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="4">Sheet1</gnm:SheetName></gnm:SheetNameIndex>
<gnm:Sheets><gnm:Sheet><gnm:Name>Sheet1</gnm:Name><gnm:MaxCol>5</gnm:MaxCol><gnm:MaxRow>3</gnm:MaxRow><gnm:Cells>
<gnm:Cell Row="0" Col="0" ValueType="30">1</gnm:Cell><gnm:Cell Row="1" Col="0" ValueType="30">2</gnm:Cell><gnm:Cell Row="2" Col="0" ValueType="30">3</gnm:Cell><gnm:Cell Row="3" Col="0" ValueType="30">4</gnm:Cell><gnm:Cell Row="4" Col="0" ValueType="30">5</gnm:Cell><gnm:Cell Row="5" Col="0" ValueType="30">6</gnm:Cell>
<gnm:Cell Row="0" Col="1" ValueType="30">0.5</gnm:Cell><gnm:Cell Row="1" Col="1" ValueType="30">1.3</gnm:Cell><gnm:Cell Row="2" Col="1" ValueType="30">1.9</gnm:Cell><gnm:Cell Row="3" Col="1" ValueType="30">2.4</gnm:Cell><gnm:Cell Row="4" Col="1" ValueType="30">2.7</gnm:Cell><gnm:Cell Row="5" Col="1" ValueType="30">2.95</gnm:Cell>
<gnm:Cell Row="0" Col="4">=LOGREG(B1:B6)</gnm:Cell>
<gnm:Cell Row="1" Col="4">=LOGREG(B1:B6,A1:A6)</gnm:Cell>
<gnm:Cell Row="2" Col="4">=LOGREG(B1:B6,A1:A6,FALSE)</gnm:Cell>
<gnm:Cell Row="3" Col="4">=LOGREG(B1:B4)</gnm:Cell>
</gnm:Cells></gnm:Sheet></gnm:Sheets>
</gnm:Workbook>