Skip to content

Interactively plots the convex conjugate of arbitrary functions

Notifications You must be signed in to change notification settings

ryotat/demo_conjugate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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