m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Here you can find relevant information on how to implement Pattern Recognition projects using Scilab.
 
Here you can find relevant information on how to implement Pattern Recognition projects using Scilab.
  
 +
==Brief Introduction to Scilab==
  
'''Brief Introduction to Scilab'''
+
[http://www.scilab.org| Scilab] is a open-source Matlab-like tool developed at INRIA. It can be [http://www.scilab.org/download/| downloaded] for several platforms.
 
+
 
+
`<a href "http://www.scilab.org">Scilab</a> is a open-source Matlab-like tool developed at INRIA. It can be downloaded for several platforms from the link:
+
 
+
http://www.scilab.org/download/
+
  
 
Tutorials describing how to use Scilab can be found here:
 
Tutorials describing how to use Scilab can be found here:
 +
* [http://www.scilab.org/doc/intro/node1.html The official documentation]
 +
* [http://128.220.138.60:8080/download/attachments/1343559/Scilab+Tutorial+Annigeri.pdf?version=1 A hands-on tutorial]
 +
* [http://comptlsci.anu.edu.au/Numerical-Methods/tutorial-all.pdf ANU Scilab Tutorial]
 +
* [http://www.iecn.u-nancy.fr/~pincon/scilab/docletter.pdf Une introduction a Scilab], if you want to have some fun reading a Scilab tutorial in French.
  
* `The official documentation <http://www.scilab.org/doc/intro/node1.html>`_
+
==Homework #1 related functionality==
  
* `A hands-on tutorial <http://128.220.138.60:8080/download/attachments/1343559/Scilab+Tutorial+Annigeri.pdf?version=1>`_
+
===Random Number Generator===
 
+
''grand'' is the function used to generate random numbers. In order to generate a multivariate normally distributed sequence of ''n'' vectors with mean ''mu'' and covariance ''cov'', ''grand'' should be called as:
* `ANU Scilab Tutorial <http://comptlsci.anu.edu.au/Numerical-Methods/tutorial-all.pdf>`_
+
 
+
* `Une introduction a Scilab <http://www.iecn.u-nancy.fr/~pincon/scilab/docletter.pdf>`_ , if you want to have some fun reading a Scilab tutorial in French.
+
 
+
'''Homework #1 related functionality'''
+
 
+
 
+
- '''Random Number Generator''': grand is the function used to generate random numbers. In order to generate a multivariate normally distributed sequence of *n* vectors with mean *mu* and covariance *cov*, grand should be called as:
+
  
 +
<source lang="matlab">
 
numbers = grand(n, 'mn',mu, cov);
 
numbers = grand(n, 'mn',mu, cov);
 +
</source>
  
 
+
===Function declaration===
 
+
example that computes the multivariate normal probability density:
- '''Function declaration''': example that computes the multivariate normal probability density:
+
<source lang="matlab">
 
+
::
+
 
+
 
+
 
// function to compute the multivariate normal distribution
 
// function to compute the multivariate normal distribution
 
//note that it asks for the sigma inverse, as well as the Sigma's determinant
 
//note that it asks for the sigma inverse, as well as the Sigma's determinant
 
function [g] = MultivariateNormalDensity(x,mu, sigma_inv, sigma_det)
 
function [g] = MultivariateNormalDensity(x,mu, sigma_inv, sigma_det)
d=length(x);
+
  d=length(x);
r2 = (x-mu)'*sigma_inv*(x-mu);
+
  r2 = (x-mu)'*sigma_inv*(x-mu);
factor = 1/sqrt(((2*%pi)^d)*sigma_det);
+
  factor = 1/sqrt(((2*%pi)^d)*sigma_det);
g = factor * exp (-(1/2)*r2);
+
  g = factor * exp (-(1/2)*r2);
 
endfunction
 
endfunction
 +
</source>
  
  
 
The file with the code above can be downloaded from the link below:
 
The file with the code above can be downloaded from the link below:
 +
[[Media:MultivariateNormalDensity_OldKiwi.sci]]
  
!`MultivariateNormalDensity.sci`__
+
==Tool Boxes==
 
+
__ MultivariateNormalDensity.sci
+
 
+
'''Tool Boxes'''
+
 
+
There are several *tool boxes* of functions written by people all over the world adding extra functionality to Scilab. Here are some useful links:
+
 
+
* `Toolboxes for Scilab and Their Manuals <http://www.scilab.org/contrib/index_contrib.php?page=download&category=MANUALS>`_
+
 
+
* `Scilab Toolbox especialized on Pattern Recognition -- Presto-Box <http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=194>`_
+
 
+
* `Manual for Presto-Box -- Scilab <http://lmb.informatik.uni-freiburg.de/lmbsoft/presto-box/presto-box-docu.pdf>`_
+
 
+
* `ANN - Neural Networks Tool Box  <http://dir.filewatcher.com/d/Mandrake/10.2/src/Sciences/Mathematics/scilab-toolbox-ANN-0.4.2-4mdk.src.rpm.27699.html>`_
+
 
+
* `SCIsvm <http://www.informatik.uni-freiburg.de/~fehr/scisvm.html>`_ , a plugin for the libsvm C++ library.
+
  
 +
There are several ''tool boxes'' of functions written by people all over the world adding extra functionality to Scilab. Here are some useful links:
  
'''Scilab Code'''
+
* [http://www.scilab.org/contrib/index_contrib.php?page=download&category=MANUALS Toolboxes for Scilab and Their Manuals]
 +
* [http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=194 Scilab Toolbox especialized on Pattern Recognition -- Presto-Box]
 +
* [http://lmb.informatik.uni-freiburg.de/lmbsoft/presto-box/presto-box-docu.pdf Manual for Presto-Box -- Scilab]
 +
* [http://dir.filewatcher.com/d/Mandrake/10.2/src/Sciences/Mathematics/scilab-toolbox-ANN-0.4.2-4mdk.src.rpm.27699.html ANN - Neural Networks Tool Box]
 +
* [http://www.informatik.uni-freiburg.de/~fehr/scisvm.html SCIsvm], a plugin for the libsvm C++ library.
  
All the relevant code for the EE662 course written in Scilab is posted below:
 
  
!`MultivariateNormalDensity.sci`__ - Implementation of a function to compute the multivariate normal density
+
==Scilab Code==
  
__ MultivariateNormalDensity.sci
+
All the relevant code for the EE662 course written in Scilab is posted [[Media:MultivariateNormalDensity_OldKiwi.sci| here]].

Latest revision as of 10:20, 20 March 2008

Here you can find relevant information on how to implement Pattern Recognition projects using Scilab.

Brief Introduction to Scilab

Scilab is a open-source Matlab-like tool developed at INRIA. It can be downloaded for several platforms.

Tutorials describing how to use Scilab can be found here:

Homework #1 related functionality

Random Number Generator

grand is the function used to generate random numbers. In order to generate a multivariate normally distributed sequence of n vectors with mean mu and covariance cov, grand should be called as:

numbers = grand(n, 'mn',mu, cov);

Function declaration

example that computes the multivariate normal probability density:

// function to compute the multivariate normal distribution
//note that it asks for the sigma inverse, as well as the Sigma's determinant
function [g] = MultivariateNormalDensity(x,mu, sigma_inv, sigma_det)
  d=length(x);
  r2 = (x-mu)'*sigma_inv*(x-mu);
  factor = 1/sqrt(((2*%pi)^d)*sigma_det);
  g = factor * exp (-(1/2)*r2);
endfunction


The file with the code above can be downloaded from the link below: Media:MultivariateNormalDensity_OldKiwi.sci

Tool Boxes

There are several tool boxes of functions written by people all over the world adding extra functionality to Scilab. Here are some useful links:


Scilab Code

All the relevant code for the EE662 course written in Scilab is posted here.

Alumni Liaison

Ph.D. on Applied Mathematics in Aug 2007. Involved on applications of image super-resolution to electron microscopy

Francisco Blanco-Silva