<< fpica Scilab ICA/BSS Toolbox pcamat >>

Scilab ICA/BSS Toolbox >> Scilab ICA/BSS Toolbox > icaplot

icaplot

plot signals in various ways

Description

icaplot is mainly for plottinf and comparing the mixed signals and separated ica-signals.

icaplot has many different modes. The first parameter of the function defines the mode. Other parameters and their order depends on the mode. The explanation for the more common parameters is in the end.

Classic

icaplot('classic', s1, n1, range, xrange, titlestr)

Plots the signals in the same manner as the FASTICA and FASTICAG programs do. All the signals are plotted in their own axis.

Complot

icaplot('complot', s1, n1, range, xrange, titlestr)

The signals are plotted on the same axis. This is good for visualization of the shape of the signals. The scale of the signals has been altered so that they all fit nicely.

Histogram

icaplot('histogram', s1, n1, range, bins, style)

The histogram of the signals is plotted. The number of bins can be specified with 'bins'-parameter. The style for the histograms can be either 'bar' (default) of 'line'.

Scatter

icaplot('scatter', s1, n1, s2, n2, range, titlestr, s1label, s2label, markerstr)

A scatterplot is plotted so that the signal 1 is the 'X'-variable and the signal 2 is the 'Y'-variable. The 'markerstr' can be used to specify the maker used in the plot. The format for 'markerstr' is the same as for Matlab's PLOT.

Compare

icaplot('compare', s1, n1, s2, n2, range, xrange, titlestr, s1label, s2label)

This for for comparing two signals. The main used in this context would probably be to see how well the separated ICA-signals explain the observed mixed signals. The s2 signals are first scaled with REGRESS function.

Compare - Sum

icaplot('sum', s1, n1, s2, n2, range, xrange, titlestr, s1label, s2label)

The same as Compare, but this time the signals in s2 (specified by n2) are summed together.

Compare - Sumerror

icaplot('sumerror', s1, n1, s2, n2, range, xrange, titlestr, s1label, s2label)

The same as Compare - Sum, but also the 'error' between the signal 1 and the summed IC's is plotted.

More common parameters

The signals to be plotted are in matrices s1 and s2. The n1 and n2 are used to tell the index of the signal or signals to be plotted from s1 or s2. If n1 or n2 has a value of 0, then all the signals from corresponding matrix will be plotted. The values for n1 and n2 can also be vectors (like: [1 3 4]) In some casee if there are more than 1 signal to be plotted from s1 or s2 then the plot will contain as many subplots as are needed.

The range of the signals to be plotted can be limited with 'range'-parameter. It's value is a vector ( 10000:15000 ). If range is 0, then the whole range will be plotted.

The 'xrange' is used to specify only the labels used on the x-axis. The value of 'xrange' is a vector containing the x-values for the plots or [start end] for begin and end of the range ( 10000:15000 or [10 15] ). If xrange is 0, then value of range will be used for x-labels.

You can give a title for the plot with 'titlestr'. Also the 's1label' and 's2label' are used to give more meaningfull label for the signals.

Lastly, you can omit some of the arguments from the and. You will have to give values for the signal matrices (s1, s2) and the indexes (n1, n2)

Authors


Report an issue
<< fpica Scilab ICA/BSS Toolbox pcamat >>