File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1331,6 +1331,15 @@ DataSeriesTest >> testStatsQuantile [
13311331 self assert: (series quantile: 100 ) equals: 20 .
13321332]
13331333
1334+ { #category : #tests }
1335+ DataSeriesTest >> testStatsQuantileDoesNotModifyTheSeries [
1336+
1337+ | copy |
1338+ copy := series copy.
1339+ series quantile: 5 .
1340+ self assert: series equals: copy.
1341+ ]
1342+
13341343{ #category : #tests }
13351344DataSeriesTest >> testStatsQuartile [
13361345
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ DataSeries >> ninth [
324324{ #category : #statistics }
325325DataSeries >> quantile: aNumber [
326326 | sortedSeries index |
327- sortedSeries := self sort .
327+ sortedSeries := self sorted .
328328
329329 aNumber = 0
330330 ifTrue: [ ^ sortedSeries first ].
You can’t perform that action at this time.
0 commit comments