www.omatrix.com





:: O-Matrix ::
> Overview
> Examples
> Performance
> Analysis Functions
> Data Visualization
> The O-Matrix Language
> Data Manipulation/IO
> Application Development
> Using Matlab m-files




NORMAL.OMS

Script File:
# Description:
# Compares sample and true cumulatives for a normal random variable.
#
clear
# number of points
N = 200 
# seed the random simulation
seed(1, 2, 3, 4)
# simulated normal random variate
y = snormal(N, 1) 
# sort the values
y = sort(y) 
# simulated cumulative distribution
cum = seq(N) / double(N) 
#
gtitle("Sample And True Cumulative")
# plot the simulated cumulative distribution
gplot(y, cum)
# plot the true cumulative distribution
gplot(y, cnormal(y)) 
	  

Output:


Company |  Products |  Showcase |  Support |  Ordering
Copyright© 1994-2009 Harmonic Software Inc. - All rights reserved.