programlibs/Kit/demos/example.xtl

source · imports kt: libs/Kit/src/Kit.xtl

X : Float

value · line 6
(X, y) ← ᵏᵗf̲lat (1, 3, 2, 2, 0.2)          ⍝ three flat clusters of two points in the plane

y : Int

value · line 6
(X, y) ← ᵏᵗf̲lat (1, 3, 2, 2, 0.2)          ⍝ three flat clusters of two points in the plane

D : Float

value · line 9
(D, c) ← ᵏᵗd̲irections (7, 2, 3, 0.1)       ⍝ two directions, three points each, lengths varied

c : Int

value · line 9
(D, c) ← ᵏᵗd̲irections (7, 2, 3, 0.1)       ⍝ two directions, three points each, lengths varied