Home > lib > data_new_from_database.m

data_new_from_database

PURPOSE ^

Loads spectra and classification from database

SYNOPSIS ^

function data = data_new_from_database(session)

DESCRIPTION ^

 Loads spectra and classification from database

 Makes up a 'data' structure with
   - X: data matrix (rows are spectra, columns are wavenumbers)
   - classes: classification index (0, 1, 2 and so on), one for each row in data.
   - idspectrum_s: a column vector containing the same number of row as
     data. Its elements are the spectrum id corresponding to each row
     in data
   - no_wavenumbers: matches number of columns in data.X but comes from a
     different source
   - class_labels: legends for each class
   - idjudge_ref: db:judge.id

   params: .idexperiment, .iddomain, .idjudge, .iddeact

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 18-Feb-2010 12:47:47 by m2html © 2003