• Vlad Niculae
  • Research
  • Blog
  • Teaching
  • Students
  • Sampling Gamma random variates through the ratio-of-uniforms method

    Sun, 09 Oct 2011Category: python
    #monte carlo #numpy #random sampling #ratio-of-uniforms #scipy #python

    One year ago I had the chance to take a class on Monte Carlo simulation with prof. Ion Văduva, and my assignment for the class was to implement exactly what it says in the title of the blog post. I am going to walk you through the idea behind this …

    Newton interpolation and numerical differentiation

    Fri, 15 Apr 2011Category: python
    #differentiation #interpolation #matplotlib #newton #numerical #numpy #python

    I am sharing some Python code code that I wrote as a school assignment. This computes the Newton form of the interpolation polynomial of a given set of points, and allows for the evaluation of both the polynomial and its derivative, at a given point. This is an accurate way …

    Tweaking matplotlib subplots for pretty results

    Mon, 04 Apr 2011Category: python
    #matplotlib #python

    When plotting multiple subplots using matplotlib, the axes rarely look pretty with the default configuration. Since matplotlib figures are abstract objects, designed for consistency in print as well as on screen, tweaking their layout can get tricky.

    An example¶

    The following code is taken from the face recognition example in …

    [ all posts ] [ categories ] [ tags ] [ pages: << < 1 2 3 > >>  ]

    Powered by Pelican. Privacy policy.