Skip to content

Commit 0e92645

Browse files
kurtosis, skewness and variance are not defined on Cauchy distribution
1 parent 482c790 commit 0e92645

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Math-Numerical/PMCauchyDistribution.class.st

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ PMCauchyDistribution >> initialize: aNumber1 scale: aNumber2 [
6565
beta := aNumber2
6666
]
6767

68+
{ #category : #information }
69+
PMCauchyDistribution >> kurtosis [
70+
self shouldNotImplement
71+
]
72+
6873
{ #category : #information }
6974
PMCauchyDistribution >> parameters [
7075

@@ -81,6 +86,12 @@ PMCauchyDistribution >> privateInverseDistributionValue: aNumber [
8186
ifFalse:[( ( aNumber - (1 / 2)) * Float pi) tan * beta + mu]].
8287
]
8388

89+
{ #category : #information }
90+
PMCauchyDistribution >> skewness [
91+
92+
self shouldNotImplement
93+
]
94+
8495
{ #category : #information }
8596
PMCauchyDistribution >> standardDeviation [
8697
"The standard deviation of the receiver is not defined."
@@ -107,5 +118,6 @@ PMCauchyDistribution >> valueAndGradient: aNumber [
107118
{ #category : #information }
108119
PMCauchyDistribution >> variance [
109120
"The variance of the receiver is not defined."
110-
^nil
121+
122+
self shouldNotImplement
111123
]

0 commit comments

Comments
 (0)