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

Method TableColStd

tensor/stats/simat/simat.go:42–44  ·  view source on GitHub ↗

TableColStd generates a similarity / distance matrix from given column name in given IndexView of an table.Table, and given standard metric function. if labNm is not empty, uses given column name for labels, which if blankRepeat is true are filtered so that any sequentially repeated labels are blank

(ix *table.IndexView, column, labNm string, blankRepeat bool, met metric.StdMetrics)

Source from the content-addressed store, hash-verified

40// is true are filtered so that any sequentially repeated labels are blank.
41// This Std version is usable e.g., in Python where the func cannot be passed.
42func (smat *SimMat) TableColStd(ix *table.IndexView, column, labNm string, blankRepeat bool, met metric.StdMetrics) error {
43 return smat.TableCol(ix, column, labNm, blankRepeat, metric.StdFunc64(met))
44}
45
46// TableCol generates a similarity / distance matrix from given column name
47// in given IndexView of an table.Table, and given metric function.

Callers

nothing calls this directly

Calls 2

TableColMethod · 0.95
StdFunc64Function · 0.92

Tested by

no test coverage detected