ExZarr.Gallery.SampleData (ExZarr v1.1.0)
View SourceDeterministic sample data generators used by the Livebook tutorials.
Summary
Functions
Creates a rows x cols matrix (flat list) with a simple pattern.
Returns n pseudo-random floats in [0,1) with a stable seed.
Builds a tiny corpus for embedding demos (no network calls).
Functions
@spec matrix(non_neg_integer(), non_neg_integer()) :: [number()]
Creates a rows x cols matrix (flat list) with a simple pattern.
Value at (r, c) is: r * 1000 + c.
@spec rand_floats(pos_integer(), integer()) :: [float()]
Returns n pseudo-random floats in [0,1) with a stable seed.
Builds a tiny corpus for embedding demos (no network calls).