File: nonParametricNormals.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (12 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
function [n]=nonParametricNormals(zu,zv)

dim=prod(size(zu));

n=[-zu(:)';
   -zv(:)';
   ones(1,dim)];

n=n*sparse([1:dim;1:dim]',1 ./sqrt(sum(n.^2,'r')));
n=matrix(n,[3 size(zu)]);

endfunction