sourcelibs/Kit/demos/example.xtl

1⍝!/usr/bin/env xetal 2⍝ Kit in use: the three data sets at small sizes, from their seeds. 3⍝ Run with "just demo Kit example". 4"kt:" u̲se< "Kit" 5 6(X, y) ← ᵏᵗf̲lat (1, 3, 2, 2, 0.2) ⍝ three flat clusters of two points in the plane 7X 8y 9(D, c) ← ᵏᵗd̲irections (7, 2, 3, 0.1) ⍝ two directions, three points each, lengths varied 10D 11c 12ᵏᵗt̲ree (2, 2) ⍝ a tree of depth 2, branching 2: 7 nodes 13ᵏᵗt̲reeDistances (2, 2) 14ᵏᵗt̲reeClasses (2, 2) 15ᵏᵗt̲reeLayout (2, 2)