PBOUNDARY |
Plots decision boundary of given classifier in 2D.
Synopsis:
h = pboundary(model)
h = pboundary(model,options)
Description:
This function plots decision boundary of given classifier in
2-dimensional feature space. The classification function
must be specified in the field model.eval. The decision
bounary is interpolated from the response of the classifier
y = feval( model.fun, X, model).
Input:
model [struct] Model of classifier.
.fun [string] Classification function.
options [struct] Controls visualization:
.gridx [1x1] Sampling density in x-axis (default 200).
.gridy [1x1] Sampling density in y-axis (default 200).
.line_style [string] Used line-style to plot decision boundary.
.fill [1x1] If 1 then the class regions are filled.
Output:
h [1 x nobjects] Handles of used graphics objects.
Example:
data = load('riply_trn');
figure;
ppatterns(data);
pboundary( knnrule(data,1) );
See also
PPATTERNS, PLINE.
About: Statistical Pattern Recognition Toolbox
(C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac
Czech Technical University Prague
Faculty of Electrical Engineering
Center for Machine Perception
Modifications:
1-may-2004, VF
19-may-2003, VF