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

310
tests/fixtures/contract/curves.json vendored Normal file
View File

@@ -0,0 +1,310 @@
{
"format_version": 1,
"description": "Boundary samples for every scalar curve and explicit overshoot samples.",
"rising": {
"center": 0.5,
"width": 0.2,
"x": [
0.3,
0.39999999999900004,
0.4,
0.5,
0.6,
0.600000000001,
0.7
],
"curves": [
{
"type": 0,
"values": [
0.0,
0.0,
0.0,
1.0,
1.0,
1.0,
1.0
]
},
{
"type": 1,
"values": [
0.0,
0.0,
1.3877787807814457e-16,
0.5,
0.9999999999999999,
1.0,
1.0
]
},
{
"type": 2,
"values": [
0.0,
0.0,
5.777789833161706e-32,
0.5,
1.0,
1.0,
1.0
]
},
{
"type": 3,
"values": [
0.0,
0.0,
0.0,
0.5,
1.0,
1.0,
1.0
]
},
{
"type": 4,
"values": [
0.017986209962091555,
0.1192029220200178,
0.1192029220221176,
0.5,
0.8807970779778823,
0.8807970779799822,
0.9820137900379085
]
},
{
"type": 5,
"values": [
0.09809326195229362,
0.18045353661261226,
0.18045353661405417,
0.5,
0.8195464633859458,
0.8195464633873877,
0.9019067380477064
]
},
{
"type": 6,
"values": [
0.23570975446453796,
0.3392463751246173,
0.3392463751259724,
0.5,
0.6607536248740276,
0.6607536248753827,
0.7642902455354621
]
},
{
"type": 7,
"values": [
-0.15933675375398315,
-0.1773621405006125,
-0.17736214049836008,
0.5,
1.17736214049836,
1.1773621405006125,
1.1593367537539834
]
}
]
},
"windows": {
"a": 0.3,
"b": 0.7,
"width": 0.1,
"x": [
0.249999999999,
0.25,
0.3,
0.5,
0.7,
0.75,
0.750000000001
],
"curves": [
{
"type": 0,
"values": [
0.0,
0.0,
1.0,
1.0,
0.0,
0.0,
0.0
]
},
{
"type": 1,
"values": [
0.0,
1.3877787807814457e-16,
0.5,
1.0,
0.5,
-4.440892098500626e-16,
0.0
]
},
{
"type": 2,
"values": [
0.0,
5.777789833161706e-32,
0.5,
1.0,
0.5,
0.0,
0.0
]
},
{
"type": 3,
"values": [
0.0,
0.0,
0.5,
1.0,
0.5,
0.0,
0.0
]
},
{
"type": 4,
"values": [
0.11920292020245979,
0.11920292020665954,
0.49999994373241896,
0.9993294121987771,
0.49999994373241896,
0.11920292020665929,
0.11920292020245965
]
},
{
"type": 5,
"values": [
0.17639723377201547,
0.17639723377482563,
0.48736148525244144,
0.9020455236180753,
0.48736148525244144,
0.17639723377482552,
0.1763972337720154
]
},
{
"type": 6,
"values": [
0.29835047783952967,
0.2983504778420687,
0.4466576363081552,
0.7613624350113533,
0.4466576363081552,
0.29835047784206853,
0.29835047783952956
]
},
{
"type": 7,
"values": [
-0.1773621379439966,
-0.17736213793949165,
0.4999999718662063,
1.0177103819486473,
0.4999999718662063,
-0.17736213793949188,
-0.17736213794399672
]
},
{
"type": 8,
"values": [
0.11920292020212869,
0.11920292020632844,
0.4999999324789028,
0.7994635297590218,
0.4999999324789028,
0.1192029202063282,
0.11920292020212855
]
},
{
"type": 9,
"values": [
0.11920292020279089,
0.11920292020699064,
0.49999995498593514,
1.1991952946385325,
0.49999995498593514,
0.11920292020699039,
0.11920292020279075
]
}
]
},
"overshoot": [
{
"type": 6,
"samples": [
{
"x": 0.096,
"value": 0.1715399896768695
},
{
"x": 0.364,
"value": 0.29468269649147805
},
{
"x": 0.5,
"value": 0.5
},
{
"x": 0.636,
"value": 0.705317303508522
},
{
"x": 0.904,
"value": 0.8284600103231305
}
]
},
{
"type": 7,
"samples": [
{
"x": 0.096,
"value": -0.008135544802172934
},
{
"x": 0.364,
"value": -0.21415973191618876
},
{
"x": 0.5,
"value": 0.5
},
{
"x": 0.636,
"value": 1.2141597319161888
},
{
"x": 0.904,
"value": 1.008135544802173
}
]
}
],
"hard_window_exact_interval": {
"a": 0.3,
"b": 0.7,
"at_a": 1.0,
"below_b": 1.0,
"at_b": 0.0
}
}