AAE 450 Spring 2008 Adam Waite 2/7/08 Dynamics and Control Gaussian Probability Function Collaboration with Mike Walker.

Slides:



Advertisements
Similar presentations
Modeling of Data. Basic Bayes theorem Bayes theorem relates the conditional probabilities of two events A, and B: A might be a hypothesis and B might.
Advertisements

Python Crash Course Accuracy 3 rd year Bachelors V1.0 dd Hour 7.
Lecture 3: Signals & Systems Concepts
Lecture 13 L1 , L∞ Norm Problems and Linear Programming
Combining Monte Carlo Estimators If I have many MC estimators, with/without various variance reduction techniques, which should I choose?
LabVIEW Introduction Alan Jennings.
Random variables 1. Note  there is no chapter in the textbook that corresponds to this topic 2.
CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
Materials for Lecture 11 Chapters 3 and 6 Chapter 16 Section 4.0 and 5.0 Lecture 11 Pseudo Random LHC.xls Lecture 11 Validation Tests.xls Next 4 slides.
Getting started with Simulink An introductory tutorial ES205 Analysis and Design of Engineering Systems Rose-Hulman Institute of Technology © R. Layton.
Discrete Random Variable. Outline Expected Value (Section 2.5) Functions of a Random Variable (Section 2.6) Expected Value of a Derived Random Variable.
1 © 2011 The MathWorks, Inc. Model-Based Design of a Wind Turbine Steve Miller Technical Marketing, Physical Modeling MathWorks
AAE 450 Spring 2008 Adam Waite January 24, 2008 Dynamics and Control Thrust Vector Control Analysis for an Air Launched Rocket.
Functions.
CSCE Review—Fortran. CSCE Review—I/O Patterns: Read until a sentinel value is found Read n, then read n things Read until EOF encountered.
1 A Tool for System Simulation: SIMULINK Can be used for simulation of various systems: – Linear, nonlinear; Input signals can be arbitrarily generated:
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
AAE 450 Spring 2008 Albert C Chaney 06 March 2008 Dynamics and Control 200 g Case Thanks to D&C Team (Mike, Alfred, Adam, Jeff)
9.4 – Solving Quadratic Equations By Completing The Square
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
3.5 – Solving Systems of Equations in Three Variables.
Sampling Distributions. What is a sampling distribution? Grab a sample of size N Compute a statistic (mean, variance, etc.) Record it Do it again (until.
GrowingKnowing.com © Expected value Expected value is a weighted mean Example You put your data in categories by product You build a frequency.
Whiteboardmaths.com © 2008 All rights reserved
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 5 Discrete Random Variables.
Chapter 8 Iteration Dept of Computer Engineering Khon Kaen University.
Problem Transient Response By: Matt Lausmann ME 114 Granda Assignment #3.
Regensburg, 24. – Introduction to Simulink Pavel Karban University of West Bohemia, Faculty of Electrical Engineering, Department of Theory.
OUTLINE Overview Numbers, variables and similar in Matlab
Statistics Presentation Ch En 475 Unit Operations.
Introduction to Matlab Module #9 Page 1 Introduction to Matlab Module #9 – Simulink Topics 1.Simulink Textbook Reading Assignments Practice Problems.
Chapter 4 Dynamic Systems: Higher Order Processes Prof. Shi-Shang Jang National Tsing-Hua University Chemical Engineering Dept. Hsin Chu, Taiwan April,
NCN nanoHUB.org Wagner The basics of quantum Monte Carlo Lucas K. Wagner Computational Nanosciences Group University of California, Berkeley In collaboration.
Chapter 16 Probability Models. Who Wants to Play?? $5 to play You draw a card: – if you get an Ace of Hearts, I pay you $100 – if you get any other Ace,
Introduction to MATLAB for Engineers Third Edition William J. Palm III Chapter 10 Simulink PowerPoint to accompany Copyright © The McGraw-Hill Companies,
DC Motor Speed Modeling in Simulink
EE3417 – Introduction to Simulink
Lecture 6: Time Response 1.Time response determination Review of differential equation approach Introduce transfer function approach 2.MATLAB commands.
AAE 450 Spring 2008 Ricky Hinton February 6 th, 2008 Propulsion Group Solid Propellant Research and Optimum Expansion Ratio Code Additional help from:
University of Baghdad College of engineering Ele. & Com. Dept. 3 rd Year Matlab Report of By Ahmed Alaa Part I Part II.
AP Statistics Section 7.2A Mean & Standard Deviation of a Probability Distribution.
MATLAB and SimulinkLecture 21 To days Outline Introduction to Simulink Block diagrams Building models Exercises on today’s topics.
Simulink Continuous Library by Dr. Amin Danial Asham.
Why Repetition? Read 8 real numbers and compute their average REAL X1, X2, X3, X4, X5, X6, X7, X8 REAL SUM, AVG READ *, X1, X2, X3, X4, X5, X6, X7, X8.
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson0-1 Supplement 2: Comparing the two estimators of population variance by simulations.
AAE 450 Spring 2008 Adam Waite 3/27/08 Dynamics and Control Control Theory and Steering Law Modifications.
CHAPTER 4 ESTIMATES OF MEAN AND ERRORS. 4.1 METHOD OF LEAST SQUARES I n Chapter 2 we defined the mean  of the parent distribution and noted that the.
CS Class 04 Topics  Selection statement – IF  Expressions  More practice writing simple C++ programs Announcements  Read pages for next.
Getting started with Simulink
Simulink Modelling Tutorial In Simulink, it is very straightforward to represent a physical system or a model. In general, a dynamic system can be constructed.
Chapter 19 Monte Carlo Valuation. © 2013 Pearson Education, Inc., publishing as Prentice Hall. All rights reserved.19-2 Monte Carlo Valuation Simulation.
Getting started with Simulink An introductory tutorial.
WORKSHOP 1 CO-SIMULATION.
Objective #20: Solve systems of equations by substitution
Single Tank System FV Desired liquid level: 5 cm (0.05 m)
Work done in collaboration with: Adam Waite
WORKSHOP 7 PID TUNING.
Ex1: Event Generation (Binomial Distribution)
WORKSHOP 3 GSE IMPORT.
Error rate due to noise In this section, an expression for the probability of error will be derived The analysis technique, will be demonstrated on a binary.
CONCEPTS OF ESTIMATION
Probability Review for Financial Engineers
Working with Continuous Random Variables and the Normal Distribution
Getting Started With Simulink
Kalman Filter: Bayes Interpretation
Complete the Square January 16, 2017.
Monte Carlo simulation
Michael Walker February 28, 2008 Dynamics and Control Group Contact Monte Carlo Simulation Code AAE 450 Spring 2008 Dynamics and Control.
Presentation transcript:

AAE 450 Spring 2008 Adam Waite 2/7/08 Dynamics and Control Gaussian Probability Function Collaboration with Mike Walker

AAE 450 Spring 2008 Gaussian Probability Method  Inputs  Average Value of Parameter (ex. Isp, wind speed, mass flow rate)  Standard Deviation  Create an array (ex. input = [AvWindSpeed, StdDevWind])  Output  Randomized value for the Parameter based on Gaussian Probability Model ex. WindSpeed = Gauss_Density(input) Dynamics and Control Num. of Iterations Percent Error Example using WindSpeed equal to 20 m/s with StdDev = 1 m/s By Adam Waite

AAE 450 Spring 2008 Implementing Gaussian Function  Currently used by the simulator for thrust, mass flow rate, and wind speed  Need standard deviation values for: -Isp, mdot, wind speed Dynamics and Control Future Work  Finalize controller  Set up program for Monte Carlo simulation  Investigate hardware necessary to implement controller Simulink by Mike Walker and Adam Waite Location of Gauss Function is in DNC subgroup in Sim 2.05 folder

AAE 450 Spring 2008 References  Smith, Julius O. Spectral Audio Signal Processing, March 2007 Draft, Stanford University  The MathWorks Inc., “gaussmf help file,” 2007 Dynamics and Control

AAE 450 Spring 2008 Derivation of Gaussian Function  This is the main Gaussian equation  Rearrange the function to solve for the variable x  Matlab is then used to pick a random number between 0 and 2 to put as the function f  If the number is between 0 and 1, the negative square root is used  If the number is between 1 and 2, the positive square root is used  This is the Gauss_Density function with average value and sigma as inputs Derivation by Mike Walker

Gauss_Density Function AAE 450 Spring 2008 %ISP Variance function for integration with DNC SIM %By: Mike Walker %January function Value = Gauss_Density(inp) %sigma is sqrt(9) = 3 format long g MEAN=inp(1); sig=inp(2); num_rand = 2.*rand; if(num_rand <=1) r= num_rand; x1 = -sqrt(-2*sig*sig*log(r))+MEAN; else r=num_rand -1; x1 = sqrt(-2*sig*sig*log(r))+MEAN; end Value = x1; Function by Mike Walker

Test File AAE 450 Spring 2008 % Test Run for Wind Speed Values % Adam Waite clear clc close all AvWindSpeed = 20; sigma = 1; input = [AvWindSpeed, sigma]; for t = 1:1000 WindSpeed(t) = Gauss_Density(input); end % For infinite iterations, the averaged values for WindSpeed % Should be equal to the given average value number = sum(WindSpeed)/length(WindSpeed) Test File for Gauss_Density function by Adam Waite

Old Method Using Simulink Block AAE 450 Spring 2008 Simulink by Adam Waite  Used a randomizer block that needed the average value and the variance  Can be seen in the above model as Thrust Value Randomizer  Used for thrust and wind direction

Old Method (cont.) AAE 450 Spring 2008 Simulink by Adam Waite  Reasons for Not Using this Method  Simulink block also required a seed number which produced the same “randomizations” for every run  Required a for loop in Matlab to run through different seed numbers for each use of the block which would slow down the program  Did not use Gaussian method