The Complete SPRLIB & ANNLIB

parzen_best_s

- determine the best smoothing value for a class

SYNOPSIS

double parzen_best_s (class, init_s)

ARGUMENTS

int class The class of which the smoothing parameter has to be optimized.
double init_s The starting value for s, the smoothing parameter.

RETURNS

The function returns the optimal smoothing value if within MAXITER (standard set to 100) iterations a better value is found. It returns init_s if no convergence was possible.

FUNCTION

The function determines the optimal smoothing paramter s for a Parzen kernel for a particular class class. It takes as input the class for which the kernelsize has to be estimated and an initial smoothing parameter init_s. The function iterates towards an optimal s, if an optimal s is possible.

NOTE

For this function to work the Parzen estimator has to be initialized. This can be done using parzen_init.

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998