Interactively plots the convex conjugate of arbitrary functions
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
abs.png
demo_conjugate.m
entropy.png

README.md

demo_conjugate

Interactively plots the convex conjugate of arbitrary functions

Syntax:

demo_conjugate(funcp, xx, gg)

  • funcp: function handle to the function you want to plot
  • xx: x values for the function
    
  • gg: x-range of the convex conjugate function (optional)
    

Examples:

  • demo_conjugate(@(x)abs(x),-5:0.1:5) gives f(x)=|x|
  • demo_conjugate(@(x)x.*log(x)+(1-x).*log(1-x),0.001:0.001:0.999) gives f(x)=xlog(x)+(1-x)log(1-x)

Copyright: Ryota Tomioka, 2012