NEAREST_CENTROID_SET_CVIP

nearest_centroid_set_cvip() - reads the training file of feature vectors and calculates centroids for each class.

Contents

SYNTAX

file_name = nearest_centroid_set_cvip(file_tr)

Input Parameters include :

Output Parameters include :

DESCRIPTION

Given the training set file, this function computes the centroid for each of the classes in the training set. It assumes the last column in the training file contains the name of the classes.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Input training vector

 file_tr = 'myTrainingVectors.CSV';

% Calling function

 d = nearest_centroid_set_cvip(file_tr)
d =

centroids_myTrainingVectors.CSV

CREDITS

Author: Mehrdad Alvandipour, March 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website