File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Class {
1919 ' data' ,
2020 ' dataTruncated'
2121 ],
22- #category : ' Math-FunctionFit'
22+ #category : # ' Math-FunctionFit'
2323}
2424
2525{ #category : #creation }
@@ -98,7 +98,7 @@ PMGeneralFunctionFit >> evaluate [
9898|ff |
9999ff := PMErrorMinimizer function: errorFunction.
100100firstResult := [ff evaluate .ff parameters]
101- ifError : [:err :rcvr | verbose ifTrue: [self inform: ' ErrorMinimizer was not successful' ]. nil ].
101+ onErrorDo : [ verbose ifTrue: [self inform: ' ErrorMinimizer was not successful' ]. nil ].
102102firstResult ifNotNil: [go addPointAt: firstResult] .
103103firstResult := go evaluate .
104104self errorType = #squared
@@ -107,7 +107,7 @@ ff parameters: firstResult.
107107ff desiredPrecision: PMFloatingPointMachine new machinePrecision.
108108ff maximumIterations: 1000 .
109109result: = [ff evaluate .ff parameters]
110- ifError : [:err :rcvr |
110+ onErrorDo : [
111111 verbose ifTrue: [self inform: ' last FunctionFit was not successful' ].
112112 ff result parameters].
113113((errorFunction value: result) > (errorFunction value: firstResult)) ifTrue: [
You can’t perform that action at this time.
0 commit comments