Statistics::Unique Function

void Unique(TMtxVec *Src, TVec *Dst, TVecInt *Counts = null);

Finds the unique elements in vector/matrix.

#NameTypeDescription
1SrcTMtxVec *Defines data unique elements search.
2DstTVec *Returns unique elements. Size and TMtxVec::Complex properties of Dst are adjusted automatically.
3Counts = nullTVecInt *If specifed, stores the count of each unique element in dataset.
Remarks:

Finds and sorts the unique elements in Src vector/matrix array. Sorted values are returned in Dst vector. An exception is raised if Src is Complex. Length and Complex properties of Dst vector are adjusted automatically.

See Also: Statistics::Ranks, Statistics::TiedRanks
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler