ListVector<T>.GetListLengths Method

Returns a vector containing the length of each list.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public Vector<int> GetListLengths()

Return Value

Vector<Int32>
A vector of integers containing the stored length of each list, with the same index as this vector. Missing elements are included.

Remarks

This method returns a vector with the same length as the list vector, where each element represents the number of items in the corresponding list.

This is useful for understanding the distribution of list lengths or for filtering/selecting lists based on their size.

See Also