Skip to content

Commit

Permalink
Throw in sqrt as an aggday for #272
Browse files Browse the repository at this point in the history
  • Loading branch information
dreeves committed Aug 23, 2023
1 parent a76e56e commit 427293e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/broad.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const pow = Math.pow
const floor = Math.floor
const ceil = Math.ceil
const sign = Math.sign
const sqrt = Math.sqrt

const DIY = 365.25
const SID = 86400
Expand Down Expand Up @@ -84,6 +85,7 @@ count : (x) => x.length, // number of datapoints
kyshoc : (x) => min(2600, bu.sum(x)), // ad hoc, guineapigging; deprecated
skatesum : (x) => min(self.rsk8, bu.sum(x)), // cap at daily rate
cap1 : (x) => min(1, bu.sum(x)), // sum but capped at 1
sqrt : (x) => sqrt(bu.sum(x)), // sqrt of sum
}

/*
Expand Down

0 comments on commit 427293e

Please sign in to comment.