L7 - OPTI 280: Computer Programming Workshop Robin Palit...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
OPTI 280 Spring 2010 Lecture 7 R. Palit 1 OPTI 280: Computer Programming Workshop Robin Palit College of Optical Sciences University of Arizona rpalit@optics.arizona.edu
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
OPTI 280 Spring 2010 Lecture 7 R. Palit 2 Lesson Plan Review of Quizzes 1 & 2 Histograms Probability Distributions Uniform Poisson Gaussian Subplots Sorting
Background image of page 2
OPTI 280 Spring 2010 Lecture 7 R. Palit 3 Histogram A statistical chart that graphically display frequencies (number of occurrences) of a variable. The bin size is important. In MatLab you can either specify the bin size or the bin centers. Application in digital imaging
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
OPTI 280 Spring 2010 Lecture 7 R. Palit 4 Histogram Histogram can be used to bin data to show trends. Spring 2010 - OPTI 280, mid-term grade distribution number of occurrences percentage
Background image of page 4
OPTI 280 Spring 2010 Lecture 7 R. Palit 5 Probability Distributions Histograms of random data may show trends that can be associated with a probability distribution. A continuous probability distribution identifies the probability of the value of a random variable falling within a particular interval. A discrete probability distribution identifies the probability of the value of a random variable. Probability density function (PDF) displays the probability of random variations about some mean value.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
OPTI 280 Spring 2010 Lecture 7 R. Palit 6 Uniform Distribution All random variables within the support of a uniform distribution occur with equal probability. pr( x ) = 1 b a , a x b 0 , otherwise Χ Ψ Ω a = 2 b = 8 Probability density function (PDF)
Background image of page 6
R. Palit 7 Uniform Distribution rand() function can be used to sample random variables from a uniform distribution on the interval x = [0,1]. Output of the rand() function can be modified to sample random variables from a uniform distribution on the interval x = [a,b]. x = a + (b-a).*rand()
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 23

L7 - OPTI 280: Computer Programming Workshop Robin Palit...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online