GetSampleCluster

Get the ID of the best-matching cluster of a single sample.

Syntax

Definition:

HRESULT GetSampleCluster(
    HRESULT       hrPrev,
    ITcVnMlModel* ipClusterer,
    ITcUnknown*   ipSample,
    LONG&         nCluster,
    float*        pNovelty = nullptr
)

Parameters

Name

Type

Default

Description

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

ipClusterer

ITcVnMlModel*

Clusterer to be used

ipSample

ITcUnknown*

Container holding a single input sample (ContainerType_Vector_REAL or ContainerType_Vector_LREAL)

nCluster

LONG&

Returns the ID of the cluster the sample has been assigned to

pNovelty

float*

nullptr

Returns the degree of novelty (0.0 if a sample is completely known; > 0.0 otherwise) of the presented sample (optional, set to 0 if not required)

GetSampleCluster 1: Return value

HRESULT

Required License

TC3 Machine Learning Realtime Inference

System Requirements