Convert Units of a QuantityDistribution
Define a quantity distribution.
In[1]:=
\[ScriptCapitalD] =
QuantityDistribution[GammaDistribution[2, 3], "Hours"];
Find distribution of the magnitude in new units.
In[2]:=
QuantityMagnitude[\[ScriptCapitalD], "Minutes"]
Out[2]=
Use UnitConvert to obtain quantity distribution in new units.
In[3]:=
UnitConvert[\[ScriptCapitalD], "Days"]
Out[3]=
Easily switch between unit systems.
In[4]:=
length\[ScriptCapitalD] =
QuantityDistribution[BatesDistribution[3, {2.3, 3.5}], "Inches"]
Out[4]=
Convert to standard SI units.
In[5]:=
UnitConvert[length\[ScriptCapitalD]]
Out[5]=
Convert to any length unit.
In[6]:=
UnitConvert[length\[ScriptCapitalD], "Centimeters"]
Out[6]=