MCPcopy Create free account
hub / github.com/cogentcore/core / DescIndex

Function DescIndex

tensor/stats/split/agg.go:69–82  ·  view source on GitHub ↗

Desc DescIndex performs aggregation using standard statistics across all splits, and stores results in the Splits. Column is specified by index.

(spl *table.Splits, colIndex int)

Source from the content-addressed store, hash-verified

67// DescIndex performs aggregation using standard statistics across
68// all splits, and stores results in the Splits. Column is specified by index.
69func DescIndex(spl *table.Splits, colIndex int) {
70 dt := spl.Table()
71 if dt == nil {
72 return
73 }
74 col := dt.Columns[colIndex]
75 sts := stats.DescStats
76 if col.NumDims() > 1 { // nd cannot do qiles
77 sts = stats.DescStatsND
78 }
79 for _, st := range sts {
80 AggIndex(spl, colIndex, st)
81 }
82}
83
84// DescColumn performs aggregation using standard statistics across
85// all splits, and stores results in the Splits.

Callers 2

DescColumnFunction · 0.70
DescColumnTryFunction · 0.70

Calls 3

AggIndexFunction · 0.85
TableMethod · 0.80
NumDimsMethod · 0.65

Tested by

no test coverage detected