
% DEMOILLLE4 Demonstrate LLE on the oil data.
%
%	Description:
%	% 	demOilLle4.m SVN version 99
% 	last update 2008-10-05T21:51:33.000000Z

[Y, lbls] = lvmLoadData('oil');

options = lleOptions(32, 2);
model = lleCreate(2, size(Y, 2), Y, options);
model = lleOptimise(model);

lvmScatterPlot(model, lbls);

if exist('printDiagram') & printDiagram
  lvmPrintPlot(model, lbls, 'Oil', 4);
end

errors = lvmNearestNeighbour(model, lbls);
