MATLAB Function Reference
  Go to function:
    Search    Help Desk 
dataset     Methods   

Creator of the dataset class

Syntax

Description

data creates an empty data object.

data(d) clone the data object or fix a broken data object from its struct form.

data(data,'attr1',val1,'attr2',val2,...) create a data object. data are the data (each piece of data is on a different line). The couples of attr1, val1, ... are used to set the attributes.

data(data,symbols,vartypes,labels,variables) create a data object. data are the data (each piece of data is on a different line). labels is a column vector of the labels (optional) corresponding to each piece of data. variables [cell], are the names of the columns of the data. symbols [cell] are the symbolic correspondance for the symbolic data. vartypes is a cell array containing the type of the variable for each column ('continuous','discrete','symbolic','class'). There can only be one 'class' variable at a time. If vartypes is not specified, the types are deduced from the data and the symbol field

data(classes,data,symbols,vartypes,labels,variables) create a data object. data are the data (each piece of data is on a different line). labels is a column vector of the labels (optional) corresponding to each piece of data. classes contains the class associated with each piece of data. variables [cell], are the names of the columns of the data. symbols [cell] are the symbolic correspondance for the symbolic data.

data(datafile,variables,symbols,vartypes,labels) create a data object from a mat datafile. datafile is the name of the mat file where the data are saved. The file must contain a series of variables referenced by variables[cell]. Each of this variable must be a column vector([double] or [cell]) of length equal to the number of data points.

Methods



[ Help Desk ]