src/stats.bend checks
raw source on the hub · import 0x53dde92df75268075f1bc6c33ecbb079/src/stats.bend as Stats
3 imports
import Base import ./batch.bend as Batch import ./numeric.bend as Numeric
Types
type Sample source · line 5 · raw
Data
Sample@x:F32 -> @y:F32 -> Sample
type Moments source · line 10 · raw
Data
Centered sufficient statistics, combined with the parallel variance formula. valid tracks non-finite input separately from arithmetic overflow.
NoSamplesMoments
Moments@n:Nat -> @mean_x:F32 -> @mean_y:F32 -> @xx:F32 -> @xy:F32 -> @valid:Bool -> Moments
Definitions
def singleton source · line 14 · raw
@row:Sample -> Moments
def merge source · line 19 · raw
@a:Moments -> @b:Moments -> Moments
def moments source · line 38 · raw
@rows:0x53dde92df75268075f1bc6c33ecbb079/src/batch.Batch<Sample> -> Moments