Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
moment function for cascalog.math
(def moment
(<- [!val !k :> !moment]
(c/avg !val :> !mean)
(- !val !mean :> !dev)
(expt !dev !pow :> !pow-dev)
(c/sum !pow-dev :> !pow-dev-sum)
(div !pow-dev-sum !count :> !moment)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.