top of page
  • Google+ Social Icon
  • Twitter Social Icon
  • LinkedIn Social Icon
  • Facebook Social Icon

Another Day, Another Code

  • Eric Birtcil
  • Mar 3, 2017
  • 1 min read

On Wednesday, I produced an image of a "stretched" Gaussian Distribution in python. Today, my task was to change that code so that the Gaussian Distribution could be rotated. This looks something like the two images below. Both of these Gaussian Distributions have been rotated through some angle theta.

The reason for doing this code after I had already made an elliptical model is because not all images of objects in space appear in the same orientation. Sometimes, the images are rotated or blurred in different directions. I chose these two images, but this image can be rotated through any angle.

Below is the code I used for this image. Next week, I am planning on doing a full explanation of one of my codes, which will hopefully make this project a little more understandable and approachable.

The main difference between this code and the previous is that I used a different equation to produce this image. If you compare "func" from this code and the last, you will see that they are different. This equation still represents a Gaussian Distribution; however, the equation is now in general form.


Comments


RECENT POST
bottom of page