1 %> @brief Saver in LIBSVM format (loading currently not implemented)
3 %> See also README file of LIBSVM containing data format specification.
6 % The following properties affect the loading process and are unused at the moment
8 %> 2-element vector specifying the wavenumber range.
9 %> This is necessary because
this file format does not have
this information.
10 %> However, the parameter is optional (the
default data fea_x will be
14 %> (optional) Image height. If specified, will assign it the loaded dataset
16 %> ='hor'. Whether the pixels are taken horizontally ('hor') or vertically ('ver') to form the image.
17 %> It was found that OPUS numbers the point in the image map left-right, bottom-up, hence 'hor'.
18 %> Same
as irdata.direction (although
irdata.direction has a different default).
31 function data = load(o)
32 irerror('Loading not implemented at the moment');
38 function o = save(o, data)
39 h = fopen(o.filename, 'w');
41 irerror(sprintf('Could not create file ''%s''!', o.filename));
44 X = zeros(data.no, data.nf*2+1);
45 X(:, 1) = data.classes;
49 fmt = [fmt, '\t%d:%f'];
51 X(:, j*2+1) = data.X(:, j);
58 irverbose(sprintf('Just saved file "%s"', o.filename), 2);
function irverbose(in s, in level)
Dataset loader/saver common class.
Analysis Session (AS) base class.
Saver in LIBSVM format (loading currently not implemented)