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.2.0
C#
public Vector<int> GetListLengths()

Return Value

Vector<Int32>
A vector of integers containing the length of each list.

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