Vyxal s, 13 bytes
›vḟv›ƛ&›[\ε|0
A port of the jelly answer, and I think the best I'm gonna get.
Attempted port of Jonas, 21 bytes
Ẋƛ÷ε1=;?Lɾƛ?Lɾ-ȧ;f*∑1⁄2
Old version, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Older version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal s, 13 bytes
›vḟv›ƛ&›[\ε|0
A port of the jelly answer, and I think the best I'm gonna get.
Old version, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Older version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal s, 13 bytes
›vḟv›ƛ&›[\ε|0
A port of the jelly answer, and I think the best I'm gonna get.
Attempted port of Jonas, 21 bytes
Ẋƛ÷ε1=;?Lɾƛ?Lɾ-ȧ;f*∑1⁄2
Old version, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Older version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal s, 2313 bytes
›vḟv›ƛ&›[\ε|0
A port of the jelly answer, and I think the best I'm gonna get.
Old version, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
OldOlder version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Old version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal s, 13 bytes
›vḟv›ƛ&›[\ε|0
A port of the jelly answer, and I think the best I'm gonna get.
Old version, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Older version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal, 2823 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Old version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.
Vyxal, 23 bytes
L2(0Ẋni÷ε1=[n6ḋ÷ε&+])1円⁄2
Try it Online! I still think there's a bit more I can do.
Old version, 28 bytes
L(x|L(←x i0niε1=[n←xε&+]))1円⁄2
This. Is. Horrible.