Files
workbook/tests/fixtures/goftest_functions.gnumeric
waozi e2d7f674b1 Add goodness-of-fit tests and float constants with 1:1 gnumeric parity
Port the normality tests: LKSTEST (Lilliefors/Kolmogorov-Smirnov with
both stages of the p-value approximation), SFTEST (Shapiro-Francia
with expected-normal-order scores and the population correlation),
CVMTEST (Cramer-von Mises), and ADTEST (Anderson-Darling via
gnumeric's range_adtest with log-probability sums), plus CHITEST
(paired-range chi-square with gnumeric's size/df rules) and CRONBACH
(population variance/covariance composition). The tests surface the
p-value row in scalar cells like gnumeric's array display.

Also add LOGISTIC (logistic density), FLT.RADIX/FLT.MIN/FLT.MAX/
FLT.NEXTAFTER (nextafter with the +/- direction strings), and
ODF.SUMPRODUCT as an alias. Getting the tests bit-exact fixed a
latent bug in pnorm's middle-range branch: the log upper-tail
companion value was guarded by y (the absolute value) instead of x,
so upper-tail log probabilities of negative inputs were never
computed. The tests use an accumulator-based range average matching
goffice's go_range_average exactly. New goftest_functions fixture
with 27 rows; 21 fixtures now 1:1 with ssconvert including
round-trips.
2026-09-05 10:15:03 -03:00

39 lines
3.5 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="8" gnm:Rows="32">Sheet1</gnm:SheetName></gnm:SheetNameIndex>
<gnm:Sheets><gnm:Sheet><gnm:Name>Sheet1</gnm:Name><gnm:MaxCol>7</gnm:MaxCol><gnm:MaxRow>31</gnm:MaxRow><gnm:Cells>
<gnm:Cell Row="0" Col="0" ValueType="30">-1.2</gnm:Cell><gnm:Cell Row="1" Col="0" ValueType="30">0.5</gnm:Cell><gnm:Cell Row="2" Col="0" ValueType="30">0.8</gnm:Cell><gnm:Cell Row="3" Col="0" ValueType="30">1.1</gnm:Cell><gnm:Cell Row="4" Col="0" ValueType="30">1.5</gnm:Cell><gnm:Cell Row="5" Col="0" ValueType="30">2.0</gnm:Cell><gnm:Cell Row="6" Col="0" ValueType="30">2.2</gnm:Cell><gnm:Cell Row="7" Col="0" ValueType="30">2.9</gnm:Cell><gnm:Cell Row="8" Col="0" ValueType="30">3.1</gnm:Cell><gnm:Cell Row="9" Col="0" ValueType="30">3.6</gnm:Cell>
<gnm:Cell Row="0" Col="1" ValueType="30">10</gnm:Cell><gnm:Cell Row="1" Col="1" ValueType="30">14</gnm:Cell><gnm:Cell Row="2" Col="1" ValueType="30">18</gnm:Cell><gnm:Cell Row="3" Col="1" ValueType="30">22</gnm:Cell><gnm:Cell Row="4" Col="1" ValueType="30">26</gnm:Cell><gnm:Cell Row="5" Col="1" ValueType="30">30</gnm:Cell><gnm:Cell Row="6" Col="1" ValueType="30">34</gnm:Cell><gnm:Cell Row="7" Col="1" ValueType="30">38</gnm:Cell><gnm:Cell Row="8" Col="1" ValueType="30">42</gnm:Cell><gnm:Cell Row="9" Col="1" ValueType="30">46</gnm:Cell>
<gnm:Cell Row="0" Col="2" ValueType="30">9</gnm:Cell><gnm:Cell Row="1" Col="2" ValueType="30">15</gnm:Cell><gnm:Cell Row="2" Col="2" ValueType="30">19</gnm:Cell><gnm:Cell Row="3" Col="2" ValueType="30">21</gnm:Cell><gnm:Cell Row="4" Col="2" ValueType="30">25</gnm:Cell><gnm:Cell Row="5" Col="2" ValueType="30">29</gnm:Cell><gnm:Cell Row="6" Col="2" ValueType="30">36</gnm:Cell><gnm:Cell Row="7" Col="2" ValueType="30">37</gnm:Cell><gnm:Cell Row="8" Col="2" ValueType="30">44</gnm:Cell><gnm:Cell Row="9" Col="2" ValueType="30">45</gnm:Cell>
<gnm:Cell Row="0" Col="4">=LKSTEST(A1:A10)</gnm:Cell>
<gnm:Cell Row="1" Col="4">=SFTEST(A1:A10)</gnm:Cell>
<gnm:Cell Row="2" Col="4">=CVMTEST(A1:A10)</gnm:Cell>
<gnm:Cell Row="3" Col="4">=ADTEST(A1:A10)</gnm:Cell>
<gnm:Cell Row="4" Col="4">=LKSTEST(B1:B10)</gnm:Cell>
<gnm:Cell Row="5" Col="4">=SFTEST(B1:B10)</gnm:Cell>
<gnm:Cell Row="6" Col="4">=CVMTEST(B1:B10)</gnm:Cell>
<gnm:Cell Row="7" Col="4">=ADTEST(B1:B10)</gnm:Cell>
<gnm:Cell Row="8" Col="4">=LKSTEST(C1:C10)</gnm:Cell>
<gnm:Cell Row="9" Col="4">=SFTEST(C1:C10)</gnm:Cell>
<gnm:Cell Row="10" Col="4">=CVMTEST(C1:C10)</gnm:Cell>
<gnm:Cell Row="11" Col="4">=ADTEST(C1:C10)</gnm:Cell>
<gnm:Cell Row="12" Col="4">=CHITEST(B1:B10,C1:C10)</gnm:Cell>
<gnm:Cell Row="13" Col="4">=CHITEST(B1:B1,C1:C1)</gnm:Cell>
<gnm:Cell Row="14" Col="4">=CHITEST(B1:B10,C1:C9)</gnm:Cell>
<gnm:Cell Row="15" Col="4">=CRONBACH(B1:B10,C1:C10)</gnm:Cell>
<gnm:Cell Row="16" Col="4">=CRONBACH(A1:A10,B1:B10,C1:C10)</gnm:Cell>
<gnm:Cell Row="17" Col="4">=LOGISTIC(0.4,1)</gnm:Cell>
<gnm:Cell Row="18" Col="4">=LOGISTIC(-2,1.5)</gnm:Cell>
<gnm:Cell Row="19" Col="4">=LOGISTIC(1,0)</gnm:Cell>
<gnm:Cell Row="20" Col="4">=FLT.RADIX()</gnm:Cell>
<gnm:Cell Row="21" Col="4">=FLT.MIN()</gnm:Cell>
<gnm:Cell Row="22" Col="4">=FLT.MAX()</gnm:Cell>
<gnm:Cell Row="23" Col="4">=FLT.NEXTAFTER(1,"+")</gnm:Cell>
<gnm:Cell Row="24" Col="4">=FLT.NEXTAFTER(1,0)</gnm:Cell>
<gnm:Cell Row="26" Col="4">=ODF.SUMPRODUCT(B1:B10,C1:C10)</gnm:Cell>
<gnm:Cell Row="27" Col="4">=LKSTEST(A1:A4)</gnm:Cell>
<gnm:Cell Row="28" Col="4">=ADTEST(A1:A7)</gnm:Cell>
</gnm:Cells></gnm:Sheet></gnm:Sheets>
</gnm:Workbook>