Skip to content

Commit 29aec66

Browse files
Add minimal comment for the class.
standardDeviation is also not defined.
1 parent 0e92645 commit 29aec66

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

src/Math-Numerical/PMCauchyDistribution.class.st

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"
2+
PMCauchyDistribution is a continuous probability distribution, depending of 2 parameters: mu and beta.
3+
"
14
Class {
25
#name : #PMCauchyDistribution,
36
#superclass : #PMProbabilityDensity,
@@ -67,7 +70,9 @@ PMCauchyDistribution >> initialize: aNumber1 scale: aNumber2 [
6770

6871
{ #category : #information }
6972
PMCauchyDistribution >> kurtosis [
70-
self shouldNotImplement
73+
"The kurtosis of the receiver is not defined."
74+
75+
self shouldNotImplement
7176
]
7277

7378
{ #category : #information }
@@ -78,24 +83,26 @@ PMCauchyDistribution >> parameters [
7883

7984
{ #category : #information }
8085
PMCauchyDistribution >> privateInverseDistributionValue: aNumber [
81-
"Private - Answer the number whose acceptance is aNumber."
82-
^aNumber =0
83-
ifTrue:[Float infinity negated]
84-
ifFalse: [aNumber =1
85-
ifTrue:[Float infinity ]
86-
ifFalse:[( ( aNumber - (1 / 2)) * Float pi) tan * beta + mu]].
86+
"Answer the number whose acceptance is aNumber."
87+
88+
^ aNumber = 0
89+
ifTrue: [ Float infinity negated ]
90+
ifFalse: [ aNumber = 1
91+
ifTrue: [ Float infinity ]
92+
ifFalse: [ ((aNumber - (1 / 2)) * Float pi) tan * beta + mu ] ]
8793
]
8894

8995
{ #category : #information }
90-
PMCauchyDistribution >> skewness [
91-
92-
self shouldNotImplement
96+
PMCauchyDistribution >> skewness [
97+
"The skewness of the receiver is not defined."
98+
self shouldNotImplement
9399
]
94100

95101
{ #category : #information }
96102
PMCauchyDistribution >> standardDeviation [
97103
"The standard deviation of the receiver is not defined."
98-
^nil
104+
105+
self shouldNotImplement
99106
]
100107

101108
{ #category : #information }

0 commit comments

Comments
 (0)