Skip to content

Commit 72b697d

Browse files
and some cleaning
1 parent 4781038 commit 72b697d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/Math-Core-Distribution/PMErfApproximation.class.st

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"
2-
A PMErfApproximation is a five term approximation to erf(x). This is a singleton class encapsulating the approximation.
2+
A `PMErfApproximation` is a five term approximation to erf(x). This is a singleton class encapsulating the approximation.
33
44
Use with
55
6+
```
67
PMErfApproximation new value: aNumber
8+
```
79
810
to receive erf(x). The result of the error function lies between zero and one.
911

src/Math-Core-Distribution/PMMitchellMooreGenerator.class.st

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Class {
99
#classVars : [
1010
'UniqueInstance'
1111
],
12-
#category : 'Math-Core-Distribution'
12+
#category : #'Math-Core-Distribution'
1313
}
1414

1515
{ #category : #creation }
@@ -70,11 +70,10 @@ PMMitchellMooreGenerator >> floatValue [
7070

7171
{ #category : #initialization }
7272
PMMitchellMooreGenerator >> initialize: anArray lowIndex: anInteger [
73-
73+
7474
randoms := anArray.
7575
lowIndex := anInteger.
76-
highIndex := randoms size.
77-
^self
76+
highIndex := randoms size
7877
]
7978

8079
{ #category : #information }

src/Math-Core-Distribution/PMProbabilityDensity.class.st

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Class {
44
#instVars : [
55
'flatGenerator'
66
],
7-
#category : 'Math-Core-Distribution'
7+
#category : #'Math-Core-Distribution'
88
}
99

1010
{ #category : #information }
@@ -108,10 +108,11 @@ PMProbabilityDensity >> kurtosis [
108108

109109
{ #category : #information }
110110
PMProbabilityDensity >> parameters [
111+
111112
"Returns an Array containing the parameters of the distribution.
112113
It is used to print out the distribution and for fitting."
113114

114-
^self subclassResponsibility
115+
self subclassResponsibility
115116
]
116117

117118
{ #category : #display }

0 commit comments

Comments
 (0)