-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
202 additions
and
25 deletions.
There are no files selected for viewing
12 changes: 8 additions & 4 deletions
12
...sticsWorkbench-Diagrams.package/SWCartesianCoordinateSystem.class/instance/axisPadding.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
geometry | ||
axisPadding | ||
|
||
| paddedMaximumX paddedMaximumY paddingFactor| | ||
| paddedMaximumX paddedMaximumY paddingFactorX paddingFactorY| | ||
|
||
paddingFactor := (percentageBased) ifTrue: 1.0 ifFalse: self class defaultAxisValuePaddingFactor. | ||
paddedMaximumX := (self xAxis maximum * paddingFactor) ceiling. | ||
paddedMaximumY := ( self yAxis maximum * paddingFactor) ceiling. | ||
paddingFactorX := self class defaultAxisValuePaddingFactor. | ||
paddingFactorY := (percentageBased) ifTrue: 1.0 ifFalse: self class defaultAxisValuePaddingFactor. | ||
paddedMaximumX := (self xAxis maximum * paddingFactorX) ceiling. | ||
paddedMaximumY := ( self yAxis maximum * paddingFactorY) ceiling. | ||
|
||
self xAxis maximum: paddedMaximumX. | ||
self yAxis maximum: paddedMaximumY | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/StatisticsWorkbench-Diagrams.package/SWDiagram.class/instance/sliderMorph..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
sliderMorph: aSlider | ||
|
||
sliderMorph := aSlider |
4 changes: 4 additions & 0 deletions
4
packages/StatisticsWorkbench-Diagrams.package/SWDiagram.class/instance/sliderMorph.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
sliderMorph | ||
|
||
^ sliderMorph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
packages/StatisticsWorkbench-Tests.package/SWBubblePlotTest.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
testing | ||
setUp | ||
|
||
| diagram | | ||
super setUp. | ||
diagram := SWDiagram new. | ||
|
||
self | ||
data: SWDataStub createSeededXYZ; | ||
diagram: (SWDiagram new visualize: self data with: SWBubblePlot); | ||
bubblePlot: (self diagram charts) first | ||
diagram: (diagram visualizeAll: self data with: SWBubblePlot); | ||
bubblePlot: (self diagram charts) first. | ||
|
||
diagram addSlider. |
2 changes: 1 addition & 1 deletion
2
...icsWorkbench-Tests.package/SWBubblePlotTest.class/instance/testBubblePlotVisualisation.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
testing | ||
testBubblePlotVisualisation | ||
|
||
self assert: self data size equals: self bubblePlot dataPoints size | ||
self assert: self data first size equals: self bubblePlot dataPoints size |
15 changes: 15 additions & 0 deletions
15
packages/StatisticsWorkbench-Tests.package/SWBubblePlotTest.class/instance/testFiltering.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
testing | ||
testFiltering | ||
|
||
| checkCollection | | ||
|
||
self diagram sliderMorph setScaledValue: 8.5. | ||
|
||
checkCollection := (self diagram charts first dataPoints select: [:dataPoint| dataPoint height = 0]). | ||
self assert: (checkCollection size) equals: 2. | ||
|
||
checkCollection := (self diagram charts second dataPoints select: [:dataPoint| dataPoint height = 0]). | ||
self assert: (checkCollection size) equals: 2. | ||
|
||
checkCollection := (self diagram charts third dataPoints select: [:dataPoint| dataPoint height = 0]). | ||
self assert: (checkCollection size) equals: 3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
packages/StatisticsWorkbench-Tests.package/SWDataStub.class/class/createSeededXYZ.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
helper | ||
createSeededXYZ | ||
|
||
^ SWDataUnlabeled fromXValues: {1 . 2 . 3 . 4 . 5} versusYValues: {5 . 200 . 38 . 69 . 16} versusZValues: {17 . 14 . 5 . 8 . 3} | ||
| dataCollection | | ||
|
||
dataCollection := OrderedCollection new. | ||
dataCollection add: (SWDataUnlabeled fromXValues: {(1.5) . (2.5) . 3 . 4 . 5} versusYValues: {22 . 110 . 64 . 211 . 35} versusZValues: {9 . 20 . 3 . 7 . 12}). | ||
dataCollection add: (SWDataUnlabeled fromXValues: {1 . 2 . 3 . 4 . 5} versusYValues: {5 . 200 . 38 . 69 . 16} versusZValues: {17 . 14 . 5 . 8 . 3}). | ||
dataCollection add: (SWDataUnlabeled fromXValues: {1 . 2 . 3 . 4 . 5} versusYValues: {210 . 53 . 180 . 83 . 27} versusZValues: {6 . 3 . 9 . 7 . 11}). | ||
|
||
^ dataCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
4 changes: 4 additions & 0 deletions
4
...ges/StatisticsWorkbench-Tests.package/SWNormalizedTest.class/instance/configureDiagram.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
configureDiagram | ||
|
||
self diagram normalized: true |
10 changes: 10 additions & 0 deletions
10
...es/StatisticsWorkbench-Tests.package/SWNormalizedTest.class/instance/testNormalization.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
testNormalization | ||
|
||
| summedValues | | ||
|
||
summedValues := (Array new: 5) collect: [:a | 0]. | ||
|
||
self assert: ((self diagram charts at: 3) data first y) equals: 37.5. | ||
self assert: ((self diagram charts at: 2) data first y) equals: 50. | ||
self assert: ((self diagram charts at: 1) data first y) equals: 12.5 |
6 changes: 6 additions & 0 deletions
6
packages/StatisticsWorkbench-Tests.package/SWNormalizedTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"configureDiagram" : " Nils Urban 6/19/2024 17:25", | ||
"testNormalization" : " Nils Urban 6/19/2024 17:26" } } |
14 changes: 14 additions & 0 deletions
14
packages/StatisticsWorkbench-Tests.package/SWNormalizedTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "StatisticsWorkbench-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SWNormalizedTest", | ||
"pools" : [ | ||
], | ||
"super" : "SWPreprocessingTest", | ||
"type" : "normal" } |
Empty file.
4 changes: 4 additions & 0 deletions
4
.../StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/instance/configureDiagram.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
configureDiagram | ||
|
||
^self subclassResponsibility |
4 changes: 4 additions & 0 deletions
4
...s/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/instance/dataCollection..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
dataCollection: aDataCollection | ||
|
||
^ dataCollection := aDataCollection |
4 changes: 4 additions & 0 deletions
4
...es/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/instance/dataCollection.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
dataCollection | ||
|
||
^ dataCollection |
4 changes: 4 additions & 0 deletions
4
packages/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/instance/diagram..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
diagram: aDiagram | ||
|
||
^ diagram := aDiagram |
4 changes: 4 additions & 0 deletions
4
packages/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/instance/diagram.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
diagram | ||
|
||
^ diagram |
20 changes: 20 additions & 0 deletions
20
packages/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/instance/setUp.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
as yet unclassified | ||
setUp | ||
|
||
| data1 data2 data3 dataCollection| | ||
|
||
data1 := SWDataUnlabeled fromDataPointCollections: #(#(1 3) #(2 2) #(3 3) #(4 2) #(5 3)). | ||
data2 := SWDataUnlabeled fromDataPointCollections: #(#(1 4) #(2 1) #(3 2) #(4 4) #(5 1)). | ||
data3 := SWDataUnlabeled fromDataPointCollections: #(#(1 1) #(2 2) #(3 1) #(4 2) #(5 1)). | ||
|
||
dataCollection := OrderedCollection new. | ||
dataCollection | ||
add: data1; | ||
add: data2; | ||
add: data3. | ||
|
||
self diagram: SWDiagram new. | ||
self configureDiagram. | ||
|
||
self dataCollection: dataCollection; | ||
diagram: (self diagram visualizeAll: dataCollection with: SWAreaChart) |
10 changes: 10 additions & 0 deletions
10
packages/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"configureDiagram" : " Nils Urban 6/19/2024 17:23", | ||
"dataCollection" : " Nils Urban 6/19/2024 17:27", | ||
"dataCollection:" : " Nils Urban 6/19/2024 17:27", | ||
"diagram" : " Nils Urban 6/19/2024 17:27", | ||
"diagram:" : " Nils Urban 6/19/2024 17:27", | ||
"setUp" : " Nils Urban 6/19/2024 17:24" } } |
15 changes: 15 additions & 0 deletions
15
packages/StatisticsWorkbench-Tests.package/SWPreprocessingTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"category" : "StatisticsWorkbench-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"dataCollection", | ||
"diagram" ], | ||
"name" : "SWPreprocessingTest", | ||
"pools" : [ | ||
], | ||
"super" : "TestCase", | ||
"type" : "normal" } |
Empty file.
4 changes: 4 additions & 0 deletions
4
packages/StatisticsWorkbench-Tests.package/SWStackedTest.class/instance/configureDiagram.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
configureDiagram | ||
|
||
self diagram stacked: true |
10 changes: 10 additions & 0 deletions
10
packages/StatisticsWorkbench-Tests.package/SWStackedTest.class/instance/testSum.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
testSum | ||
|
||
| summedValues | | ||
|
||
summedValues := (Array new: 5) collect: [:a | 0]. | ||
|
||
self assert: ((self diagram charts at: 3) data collect: [:vector | vector y]) equals: #(3 2 3 2 3) asOrderedCollection. | ||
self assert: ((self diagram charts at: 2) data collect: [:vector | vector y]) equals: #(7 3 5 6 4) asOrderedCollection. | ||
self assert: ((self diagram charts at: 1) data collect: [:vector | vector y]) equals: #(8 5 6 8 5) asOrderedCollection |
6 changes: 6 additions & 0 deletions
6
packages/StatisticsWorkbench-Tests.package/SWStackedTest.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"configureDiagram" : " Nils Urban 6/19/2024 17:25", | ||
"testSum" : " Nils Urban 6/19/2024 17:25" } } |
14 changes: 14 additions & 0 deletions
14
packages/StatisticsWorkbench-Tests.package/SWStackedTest.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "StatisticsWorkbench-Tests", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SWStackedTest", | ||
"pools" : [ | ||
], | ||
"super" : "SWPreprocessingTest", | ||
"type" : "normal" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters