File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
src/Math-Core-Distribution Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 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
44Use with
55
6+ ```
67PMErfApproximation new value: aNumber
8+ ```
79
810to receive erf(x). The result of the error function lies between zero and one.
911
Original file line number Diff line number Diff line change 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 }
7272PMMitchellMooreGenerator >> 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 }
Original file line number Diff line number Diff line change 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 }
110110PMProbabilityDensity >> 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 }
You can’t perform that action at this time.
0 commit comments