Freeze SmoothLife model contract and fixtures

This commit is contained in:
2026-07-14 18:26:55 +02:00
parent 51cff7b0f3
commit d587f542eb
25 changed files with 30612 additions and 38 deletions

View File

@@ -0,0 +1,971 @@
{
"format_version": 1,
"description": "Asymmetric f64 fields with complete sampled kernels and direct circular convolutions.",
"convolution_sign": "out[x] = sum_offset field[x-offset] * kernel[offset] with every axis periodic",
"cases": [
{
"rank": 1,
"shape": [
8
],
"field": [
0.0,
0.17,
0.91,
0.26,
0.73,
0.42,
0.08,
0.64
],
"kernel": {
"shape": [
8
],
"ra": 1.45,
"rr": 3.0,
"rb": 5.0,
"ri": 0.48333333333333334,
"width": 0.29,
"raw_disk": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"raw_ring": [
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
],
"disk_sum": 1.0,
"ring_sum": 2.0,
"normalized_disk": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"normalized_ring": [
0.0,
0.5,
0.0,
0.0,
0.0,
0.0,
0.0,
0.5
],
"support": [
{
"coords": [
0
],
"offset": [
0
],
"radius": 0.0,
"disk": 1.0,
"ring": 0.0
},
{
"coords": [
1
],
"offset": [
1
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
7
],
"offset": [
-1
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
}
],
"warnings": []
},
"direct_disk_convolution_raw": [
0.0,
0.17,
0.91,
0.26,
0.73,
0.42,
0.08,
0.64
],
"direct_ring_convolution_raw": [
0.81,
0.91,
0.43000000000000005,
1.6400000000000001,
0.6799999999999999,
0.8099999999999999,
1.06,
0.08
],
"M_disk_normalized": [
0.0,
0.17,
0.91,
0.26,
0.73,
0.42,
0.08,
0.64
],
"N_ring_normalized": [
0.405,
0.455,
0.21500000000000002,
0.8200000000000001,
0.33999999999999997,
0.40499999999999997,
0.53,
0.04
]
},
{
"rank": 2,
"shape": [
5,
4
],
"field": [
0.10714285714285714,
0.5,
0.8928571428571429,
0.25,
0.6428571428571429,
0.0,
0.39285714285714285,
0.7857142857142857,
0.14285714285714285,
0.5357142857142857,
0.9285714285714286,
0.2857142857142857,
0.6785714285714286,
0.03571428571428571,
0.42857142857142855,
0.8214285714285714,
0.17857142857142858,
0.5714285714285714,
0.9642857142857143,
0.32142857142857145
],
"kernel": {
"shape": [
5,
4
],
"ra": 1.45,
"rr": 3.0,
"rb": 5.0,
"ri": 0.48333333333333334,
"width": 0.29,
"raw_disk": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"raw_ring": [
0.0,
1.0,
0.0,
0.0,
1.0,
1.0,
0.6234015090582925,
0.0,
0.0,
0.6234015090582925,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.6234015090582925,
0.0,
0.0,
0.6234015090582925
],
"disk_sum": 1.0,
"ring_sum": 6.49360603623317,
"normalized_disk": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"normalized_ring": [
0.0,
0.15399763928088298,
0.0,
0.0,
0.15399763928088298,
0.15399763928088298,
0.09600236071911702,
0.0,
0.0,
0.09600236071911702,
0.0,
0.0,
0.0,
0.0,
0.0,
0.15399763928088298,
0.09600236071911702,
0.0,
0.0,
0.09600236071911702
],
"support": [
{
"coords": [
0,
0
],
"offset": [
0,
0
],
"radius": 0.0,
"disk": 1.0,
"ring": 0.0
},
{
"coords": [
1,
0
],
"offset": [
1,
0
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
4,
0
],
"offset": [
-1,
0
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
0,
1
],
"offset": [
0,
1
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
1,
1
],
"offset": [
1,
1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
4,
1
],
"offset": [
-1,
1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
0,
3
],
"offset": [
0,
-1
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
1,
3
],
"offset": [
1,
-1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
4,
3
],
"offset": [
-1,
-1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
}
],
"warnings": []
},
"direct_disk_convolution_raw": [
0.10714285714285714,
0.5,
0.8928571428571429,
0.25,
0.6428571428571429,
0.0,
0.39285714285714285,
0.7857142857142857,
0.14285714285714285,
0.5357142857142857,
0.9285714285714286,
0.2857142857142857,
0.6785714285714286,
0.03571428571428571,
0.42857142857142855,
0.8214285714285714,
0.17857142857142858,
0.5714285714285714,
0.9642857142857143,
0.32142857142857145
],
"direct_ring_convolution_raw": [
2.854859298654704,
2.92955328759128,
3.153566818776419,
4.023246198629076,
2.41656005318385,
3.1220313739654,
3.1967253629019767,
2.775073045419599,
3.2547039882254873,
2.0380662798270297,
2.4262878700832746,
3.536696144734137,
2.7249953902049913,
3.594674770057648,
3.023702910326707,
2.693459945393972,
3.8038682200448344,
3.382215902562456,
2.8261325596540585,
3.6809234226841716
],
"M_disk_normalized": [
0.10714285714285714,
0.5,
0.8928571428571429,
0.25,
0.6428571428571429,
0.0,
0.39285714285714285,
0.7857142857142857,
0.14285714285714285,
0.5357142857142857,
0.9285714285714286,
0.2857142857142857,
0.6785714285714286,
0.03571428571428571,
0.42857142857142855,
0.8214285714285714,
0.17857142857142858,
0.5714285714285714,
0.9642857142857143,
0.32142857142857145
],
"N_ring_normalized": [
0.43964159247190165,
0.45114429043660675,
0.4856418454060926,
0.6195704168346641,
0.3721445433707979,
0.48078546135152317,
0.4922881593162283,
0.42735469782662877,
0.5012167307447998,
0.31385739579133404,
0.37364260420866596,
0.5446428571428571,
0.4196428571428572,
0.5535714285714286,
0.4656431100770483,
0.41478647308828764,
0.5857867260224788,
0.5208532645328791,
0.4352177424815642,
0.5668535174670701
]
},
{
"rank": 3,
"shape": [
4,
3,
2
],
"field": [
0.1388888888888889,
0.5,
0.8611111111111112,
0.19444444444444445,
0.5555555555555556,
0.9166666666666666,
0.25,
0.6111111111111112,
0.9722222222222222,
0.3055555555555556,
0.6666666666666666,
0.0,
0.3611111111111111,
0.7222222222222222,
0.05555555555555555,
0.4166666666666667,
0.7777777777777778,
0.1111111111111111,
0.4722222222222222,
0.8333333333333334,
0.16666666666666666,
0.5277777777777778,
0.8888888888888888,
0.2222222222222222
],
"kernel": {
"shape": [
4,
3,
2
],
"ra": 1.45,
"rr": 3.0,
"rb": 5.0,
"ri": 0.48333333333333334,
"width": 0.29,
"raw_disk": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"raw_ring": [
0.0,
1.0,
0.0,
1.0,
1.0,
0.6234015090582925,
0.0,
0.6234015090582925,
1.0,
0.6234015090582925,
0.0,
0.6234015090582925,
1.0,
0.6234015090582925,
0.0,
0.6234015090582925,
0.6234015090582925,
0.0,
0.0,
0.0,
0.6234015090582925,
0.0,
0.0,
0.0
],
"disk_sum": 1.0,
"ring_sum": 9.98721207246634,
"normalized_disk": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"normalized_ring": [
0.0,
0.10012804301581735,
0.0,
0.10012804301581735,
0.10012804301581735,
0.06241997311511416,
0.0,
0.06241997311511416,
0.10012804301581735,
0.06241997311511416,
0.0,
0.06241997311511416,
0.10012804301581735,
0.06241997311511416,
0.0,
0.06241997311511416,
0.06241997311511416,
0.0,
0.0,
0.0,
0.06241997311511416,
0.0,
0.0,
0.0
],
"support": [
{
"coords": [
0,
0,
0
],
"offset": [
0,
0,
0
],
"radius": 0.0,
"disk": 1.0,
"ring": 0.0
},
{
"coords": [
1,
0,
0
],
"offset": [
1,
0,
0
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
3,
0,
0
],
"offset": [
-1,
0,
0
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
0,
1,
0
],
"offset": [
0,
1,
0
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
1,
1,
0
],
"offset": [
1,
1,
0
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
3,
1,
0
],
"offset": [
-1,
1,
0
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
0,
2,
0
],
"offset": [
0,
-1,
0
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
1,
2,
0
],
"offset": [
1,
-1,
0
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
3,
2,
0
],
"offset": [
-1,
-1,
0
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
0,
0,
1
],
"offset": [
0,
0,
-1
],
"radius": 1.0,
"disk": 0.0,
"ring": 1.0
},
{
"coords": [
1,
0,
1
],
"offset": [
1,
0,
-1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
3,
0,
1
],
"offset": [
-1,
0,
-1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
0,
1,
1
],
"offset": [
0,
1,
-1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
},
{
"coords": [
0,
2,
1
],
"offset": [
0,
-1,
-1
],
"radius": 1.4142135623730951,
"disk": 0.0,
"ring": 0.6234015090582925
}
],
"warnings": [
"nonzero support touches periodic Nyquist offset on axis 2"
]
},
"direct_disk_convolution_raw": [
0.1388888888888889,
0.5,
0.8611111111111112,
0.19444444444444445,
0.5555555555555556,
0.9166666666666666,
0.25,
0.6111111111111112,
0.9722222222222222,
0.3055555555555556,
0.6666666666666666,
0.0,
0.3611111111111111,
0.7222222222222222,
0.05555555555555555,
0.4166666666666667,
0.7777777777777778,
0.1111111111111111,
0.4722222222222222,
0.8333333333333334,
0.16666666666666666,
0.5277777777777778,
0.8888888888888888,
0.2222222222222222
],
"direct_ring_convolution_raw": [
5.024989243811645,
5.126349726148468,
4.368073205919266,
4.46943368825609,
4.957853730727446,
4.925813310438447,
5.3287154706128455,
4.655956832680603,
3.729539537239647,
5.886455575132025,
4.4874608372595794,
5.229539537239647,
4.6638781327005345,
4.378179054902825,
5.4217994327204675,
4.108322577144979,
4.850401277125047,
5.338821319596402,
5.221263017010446,
4.041187064060779,
4.783265764040847,
5.138284903886381,
4.126349726148468,
4.868428426128536
],
"M_disk_normalized": [
0.1388888888888889,
0.5,
0.8611111111111112,
0.19444444444444445,
0.5555555555555556,
0.9166666666666666,
0.25,
0.6111111111111112,
0.9722222222222222,
0.3055555555555556,
0.6666666666666666,
0.0,
0.3611111111111111,
0.7222222222222222,
0.05555555555555555,
0.4166666666666667,
0.7777777777777778,
0.1111111111111111,
0.4722222222222222,
0.8333333333333334,
0.16666666666666666,
0.5277777777777778,
0.8888888888888888,
0.2222222222222222
],
"N_ring_normalized": [
0.5031423391583919,
0.5132913658939172,
0.4373666218585235,
0.44751564859404896,
0.4964201916164082,
0.4932120470354665,
0.5335538518605744,
0.46619184602243213,
0.3734314952139229,
0.5893992770375173,
0.4493206717449229,
0.523623559737649,
0.466984990291569,
0.4383785007402606,
0.5428741668225691,
0.41135829972722604,
0.4856611877199521,
0.5345657307423113,
0.5227948479641182,
0.4046361521852423,
0.47893904017796834,
0.5144864118838605,
0.4131633228780999,
0.487466210870826
]
}
],
"known_2d_check": {
"shape": [
64,
64
],
"ra": 10.0,
"rr": 3.0,
"rb": 10.0,
"ring_sum": 279.21631227194473,
"disk_sum": 35.52403518160772
}
}