Header menu logo FSharp.Stats

Table<'R, 'C, 'T> Type

A 2D table with generic row‐labels and column‐labels, backed by a flattened Matrix<'T>

Constructors

Constructor Description

Table(rowKeys, colKeys, dataMatrix)

Full Usage: Table(rowKeys, colKeys, dataMatrix)

Parameters:
    rowKeys : 'R[]
    colKeys : 'C[]
    dataMatrix : Matrix<'T>

Returns: Table<'R, 'C, 'T>
rowKeys : 'R[]
colKeys : 'C[]
dataMatrix : Matrix<'T>
Returns: Table<'R, 'C, 'T>

Instance members

Instance member Description

this.ColKeys

Full Usage: this.ColKeys

Returns: 'C[]

All column labels in order.

Returns: 'C[]

this.Data

Full Usage: this.Data

Returns: Vector<'T>

Underlying data storage.

Returns: Vector<'T>

this.DataMatrix

Full Usage: this.DataMatrix

Returns: Matrix<'T>

Underlying matrix storage.

Returns: Matrix<'T>

this.GetColumn

Full Usage: this.GetColumn

Parameters:
    c : 'C

Returns: ('R * 'T)[]

Slice out a column (as array of label * value).

c : 'C
Returns: ('R * 'T)[]

this.GetRow

Full Usage: this.GetRow

Parameters:
    r : 'R

Returns: ('C * 'T)[]

Slice out a row (as array of label * value).

r : 'R
Returns: ('C * 'T)[]

this[r, c]

Full Usage: this[r, c]

Parameters:
    r : 'R

Returns: 'C

Indexer by label keys.

r : 'R
Returns: 'C

this[i, j]

Full Usage: this[i, j]

Parameters:
    i : int

Returns: int

Indexer by integer coordinates (0-based).

i : int
Returns: int

this.NumCols

Full Usage: this.NumCols

Returns: int

Number of columns.

Returns: int

this.NumRows

Full Usage: this.NumRows

Returns: int

Number of rows.

Returns: int

this.RowKeys

Full Usage: this.RowKeys

Returns: 'R[]

All row labels in order.

Returns: 'R[]

Type something to start searching.