@@ -1125,30 +1125,30 @@ \section{Probability distributions}
11251125used in this book. Other important distributions are presented in
11261126appendix \ref {ch:distributions }.
11271127
1128- \subsection {Probability distributions --- General implementation }
1128+ \subsection {Probability distributions --- Smalltalk implementation }
11291129\marginpar {Figure \ref {fig:statisticsclasses } with the boxes {\bf
11301130ProbabilityDensity} and {\bf
11311131ProbabilityDensityWithUnknownDistribution} grayed.} Table
11321132\ref {tb:distrgenimpl } shows the description of the public methods
1133- of the implementations of both languages .
1133+ of the implementation .
11341134\begin {table }[h]
11351135 \centering
11361136 \caption {Public methods for probability density functions}
11371137 \label {tb:distrgenimpl }
11381138\vspace {1 ex}
1139- \begin {tabular }{|l | l | l| } \hline
1140- Description & \hfil Smalltalk & \hfil Java \\ \hline
1141- $ P\left (x\right )$ & {\tt value:} & { \tt value(double)} \\
1142- $ F\left (x\right )$ & {\tt distributionValue:} & { \tt distributionValue(double)} \\
1143- $ F\left (x_1 ,x_2 \right )$ & {\tt acceptanceBetween:and:} & { \tt distributionValue(double,double)} \\
1144- $ F^{-1}\left (x\right )$ & {\tt inverseDistributionValue:} & { \tt inverseDistributionValue(double)} \\
1145- $ x^{\dag }$ & {\tt random} & { \tt random()} \\
1139+ \begin {tabular }{|l | l |} \hline
1140+ Description & \hfil Smalltalk \\ \hline
1141+ $ P\left (x\right )$ & {\tt value:} \\
1142+ $ F\left (x\right )$ & {\tt distributionValue:} \\
1143+ $ F\left (x_1 ,x_2 \right )$ & {\tt acceptanceBetween:and:} \\
1144+ $ F^{-1}\left (x\right )$ & {\tt inverseDistributionValue:} \\
1145+ $ x^{\dag }$ & {\tt random} \\
11461146 \hline
1147- $ \bar {x}$ & {\tt average} & { \tt average()} \\
1148- $ \sigma ^2 $ & {\tt variance} & { \tt variance()} \\
1149- $ \sigma $ & {\tt standardDeviation} & { \tt standardDeviation()} \\
1150- skewness & {\tt skewness} & { \tt skewness()} \\
1151- kurtosis & {\tt kurtosis} & { \tt kurtosis()} \\
1147+ $ \bar {x}$ & {\tt average} \\
1148+ $ \sigma ^2 $ & {\tt variance} \\
1149+ $ \sigma $ & {\tt standardDeviation} \\
1150+ skewness & {\tt skewness} \\
1151+ kurtosis & {\tt kurtosis} \\
11521152 \hline
11531153\end {tabular }
11541154$ \dag $ $ x$ represents the random variable itself. In other words,
@@ -1174,7 +1174,6 @@ \subsection{Probability distributions --- General implementation}
11741174must be provided to create a function (as defined in section
11751175\ref {sec:function }) for the distribution function.
11761176
1177- \subsection {Probability distributions --- Smalltalk implementation }
11781177Listing \ref {ls:probdistr } shows the implementation of a general
11791178probability density distribution in Smalltalk. The class {\tt
11801179DhbProbabilityDensity} is an abstract implementation. Concrete
0 commit comments