Skip to content

Commit

Permalink
RandAnyDist
Browse files Browse the repository at this point in the history
  • Loading branch information
埃博拉酱 committed Mar 26, 2023
1 parent a87c363 commit 240daba
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions +MATLAB/+Lang/MatlabException.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
MEX_exception(26)
FillData_larger_than_NumBytes(27)

NumWantNew_is_too_big(239)
Range_is_not_a_numerical_type(240)
Invalid_RestartDisposition(241)
PathManager_not_installed(242)
Number_of_EdgeColors_does_not_match_number_of_lines(243)
Expand Down
Binary file added +MATLAB/RandAnyDist.mlx
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function Arrows = LineFollowingArrow(XYCoordinates,options)
function ProjectPaths = ListAllProjectPaths(Project)
%绘制多条误差阴影线图
function Patches=MultiShadowedLines(Y,ShadowHeights,FaceAlpha,options)
%生成任意概率分布密度的随机数
function varargout = RandAnyDist(PDF,Size,Range)
%将任意维度的RGB图像转换为灰度图
function Image = Rgb2Gray(Image,Dimension)
%在不破坏图连通性的前提下尝试移除节点(Try to remove the node without breaking graph connectivity)
Expand Down
36 changes: 36 additions & 0 deletions resources/functionSignatures.json
Original file line number Diff line number Diff line change
Expand Up @@ -3005,6 +3005,42 @@
}
]
},
"MATLAB.RandAnyDist": {
"inputs": [
{
"name": "PDF",
"kind": "required",
"type": [
[
"function_handle"
],
[
"symfun"
]
],
"purpose": "联合概率密度函数"
},
{
"name": "Size",
"kind": "required",
"type": [
"real",
"vector"
],
"purpose": "要返回的随机数组的各维尺寸"
},
{
"name": "Range",
"kind": "ordered",
"type": [
"real",
"vector"
],
"repeating": true,
"purpose": "每个随机变量的数值范围和数据类型"
}
]
},
"MATLAB.Rgb2Gray": {
"inputs": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info>
<Category UUID="FileClassCategory">
<Label UUID="design"/>
</Category>
</Info>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info location="RandAnyDist.mlx" type="File"/>

0 comments on commit 240daba

Please sign in to comment.