Skip to content

ryotat/demo_conjugate

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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

About

Interactively plots the convex conjugate of arbitrary functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published