Into

Modules

Documentation

classPiiKnnClassifierOperation

#include <PiiKnnClassifierOperation.h>

An operation that classifies samples according to the k nearest neighbors rule.

Inherits PiiVectorQuantizerOperation

Description

See PiiClassifierOperation and PiiKnnClassifier for more information.

Properties

int

The number of nearest neighbors the classifier considers.

Public member functions

int
( )
void
(
  • int k
)

Protected member functions

virtual bool

Returns false.

Property details

  • int k

    [read, write]

    The number of nearest neighbors the classifier considers.

    The default is 5. Setting this value to one makes the classifier use the nearest neighbor rule.

Function details

  • int k

    ()
  • void setK

    (
    • int k
    )
  • virtual bool needsThread

    ()
    [protected, virtual]

    Returns false.

    Reimplemented from PiiClassifierOperation.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.