« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Units
Integrated with the Statistics Framework
Calculate various descriptive statistics for a set of pseudorandom lengths.
In[1]:=
X
qmixed = BlockRandom[SeedRandom[1234]; Join[Quantity[RandomReal[10, 10], "Feet"], Quantity[RandomReal[10, 10], "Inches"]]];
In[2]:=
X
FormulaGallery[forms_List] := TraditionalForm@ Grid[Table[forms[[i]], {i, Length[forms]}], Dividers -> All, Spacings -> {1, 2}, Alignment -> {Center, Center}, BaseStyle -> {FontFamily -> "Helvetica"}, Background -> {None, {{Hue[.6, .15, .9], GrayLevel[.9]}}}, FrameStyle -> Directive[Thick, White]]
In[3]:=
X
Pane[FormulaGallery[ Map[{#, #[qmixed]} &, {Mean, Median, Variance, StandardDeviation, Skewness, Kurtosis}]] , 550]
Out[3]=