List Vector<T>.Get List Lengths 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#
A vector of integers containing the stored length of each list, with the same index as this vector. Missing elements are included.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
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.