Skip to content
Interactively plots the convex conjugate of arbitrary functions
Objective-C
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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

You can’t perform that action at this time.