Wolfram 语言

知识库扩展

访问并操作精选自定义实体

导入关于单变量概率分布数据的实体存储.

In[1]:=
Click for copyable input
es = CloudGet@CloudObject[ "https://www.wolframcloud.com/objects/user-8a7d28b9-c01d-46b8-ba65-\ c3daa0ded865/ProbabilityDistribution-EntityStore"]
Out[1]=

将它设置为自动被 Entity 框架访问的一个实体存储.

In[2]:=
Click for copyable input
$EntityStores = {es};

在这个存储中有 465 个概率分布.

In[3]:=
Click for copyable input
EntityValue["ProbabilityDistribution", "EntityCount"]
Out[3]=

并且每个分布有至多 67 个属性.

In[4]:=
Click for copyable input
EntityValue["ProbabilityDistribution", "PropertyCount"]
Out[4]=

这是可用于正态分布的数据.

In[5]:=
Click for copyable input
EntityProperty["ProbabilityDistribution", "SamplePlottingParameters"]
Out[5]=
显示完整的 Wolfram 语言输入
In[6]:=
Click for copyable input
data = Normal[ EntityValue[Entity["ProbabilityDistribution", "Normal"], "PropertyAssociation"]]; data = DeleteCases[data, EntityProperty["ProbabilityDistribution", "SamplePlottingParameters"] -> _]; data = data //. HoldPattern[Function[a_, b_]] :> b //. HoldPattern[Inactive[ConditionalExpression][a_, b_]] :> Row[{a, Style[" for ", Gray], b}]; data = Activate[data, Sqrt | DirectedInfinity | Piecewise | _Derivative]; Grid[List @@@ data, Alignment -> Left, Dividers -> All, Background -> {None, {{LightGray, White}}}] // TraditionalForm
Out[6]//TraditionalForm=

相关范例

de en es fr ja ko pt-br ru