IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
data_draw_scatter_1d.m File Reference

Detailed Description

Draws 1-D scatter plot with optional per-class distributions.

Definition in file data_draw_scatter_1d.m.

Go to the source code of this file.

Functions

function data_draw_scatter_1d (in data, in idx_fea, in type_distr, in threshold)
 

Function Documentation

function data_draw_scatter_1d ( in  data,
in  idx_fea,
in  type_distr,
in  threshold 
)
Parameters
datadataset
idx_feaWhat feature to use. Number points to 1 column in data.X
type_distrcontrols drawing the distributions on top of the scores
  • 0 no distributions are drawn
  • 1 estimates distribution by gaussian kernel estimation (each point contributes with a small gaussian bump)
  • 2 histogram distribution estimation - each bar in the histogram represents a quantile, therefore has same area, therefore has variable width. Looks cool
thresholdWorks only for two classes. If specified, illustrates "misclassified" regions of each class