contour2d.m
来自「这是用matlab编写的支持向量机的函数工具箱」· M 代码 · 共 15 行
M
15 行
function ret = contour2d ( M , mean , r , Thetan ) # makes a contour of a Gaussian distribution # where M is the chol of the covarianc matrix and r is the reqd "radius"theta = 0.0 ;dtheta = 2*3.14159 / ( Thetan - 1 ) ; list=[];# make contoursfor thetan=1:Thetan list(thetan,: ) = mean + r * [cos(theta), sin(theta)] * M ; theta = theta + dtheta ;endforret = list ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?