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

Function AggColumn

tensor/stats/split/agg.go:29–35  ·  view source on GitHub ↗

AggColumn performs aggregation using given standard statistic (e.g., Mean) across all splits, and returns the SplitAgg container of the results, which are also stored in the Splits. Column is specified by name -- see Try for error msg version.

(spl *table.Splits, column string, stat stats.Stats)

Source from the content-addressed store, hash-verified

27// all splits, and returns the SplitAgg container of the results, which are also
28// stored in the Splits. Column is specified by name -- see Try for error msg version.
29func AggColumn(spl *table.Splits, column string, stat stats.Stats) *table.SplitAgg {
30 dt := spl.Table()
31 if dt == nil {
32 return nil
33 }
34 return AggIndex(spl, dt.ColumnIndex(column), stat)
35}
36
37// AggColumnTry performs aggregation using given standard statistic (e.g., Mean) across
38// all splits, and returns the SplitAgg container of the results, which are also

Callers 3

AnalyzePlanetsFunction · 0.92
TestAggFunction · 0.85
TestAggEmptyFunction · 0.85

Calls 3

AggIndexFunction · 0.85
TableMethod · 0.80
ColumnIndexMethod · 0.80

Tested by 2

TestAggFunction · 0.68
TestAggEmptyFunction · 0.68