This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TEMPORARY FUNCTION | |
-- In this function, we're going to be working on arrays of values. | |
-- we're also going to define a set of functions 'inside' the kMeans. | |
-- *heavily borrowing from https://github.com/NathanEpstein/clusters* -- | |
kMeans(x ARRAY<FLOAT64>, -- ESR1 gene expression | |
y ARRAY<FLOAT64>, -- EGFR gene expression | |
iterations FLOAT64, -- the number of iterations |