-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Nyan11/Issue_0078
Rotate the kiviat polygon and fix the bottom label position
- Loading branch information
Showing
69 changed files
with
9,028 additions
and
9,011 deletions.
There are no files selected for viewing
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,31 +1,31 @@ | ||
Extension { #name : 'Collection' } | ||
|
||
{ #category : '*Roassal-Chart' } | ||
Collection >> interQuartileRange [ | ||
| quartiles q1 q3 | | ||
quartiles := self quartiles. | ||
q1 := quartiles first. | ||
q3 := quartiles third. | ||
^ q3 - q1 | ||
] | ||
|
||
{ #category : '*Roassal-Chart' } | ||
Collection >> quartiles [ | ||
| q1 q2 q3 quantile | | ||
quantile := RSInvertedCDF data: self. | ||
q1 := quantile compute: 0.25. | ||
q2 := quantile compute: 0.50. | ||
q3 := quantile compute: 0.75. | ||
^ { q1. q2. q3 } | ||
] | ||
|
||
{ #category : '*Roassal-Chart' } | ||
Collection >> standardDeviation [ | ||
"It follows the implementation of numpy using the size N (instead of N - 1)" | ||
| standardDeviation sum mean | | ||
sum := 0. | ||
mean := self average. | ||
self do: [ :observationX | sum := sum + ((observationX - mean) squared) ]. | ||
standardDeviation := (sum/self size) sqrt. | ||
^ standardDeviation | ||
] | ||
Extension { #name : 'Collection' } | ||
|
||
{ #category : '*Roassal-Chart' } | ||
Collection >> interQuartileRange [ | ||
| quartiles q1 q3 | | ||
quartiles := self quartiles. | ||
q1 := quartiles first. | ||
q3 := quartiles third. | ||
^ q3 - q1 | ||
] | ||
|
||
{ #category : '*Roassal-Chart' } | ||
Collection >> quartiles [ | ||
| q1 q2 q3 quantile | | ||
quantile := RSInvertedCDF data: self. | ||
q1 := quantile compute: 0.25. | ||
q2 := quantile compute: 0.50. | ||
q3 := quantile compute: 0.75. | ||
^ { q1. q2. q3 } | ||
] | ||
|
||
{ #category : '*Roassal-Chart' } | ||
Collection >> standardDeviation [ | ||
"It follows the implementation of numpy using the size N (instead of N - 1)" | ||
| standardDeviation sum mean | | ||
sum := 0. | ||
mean := self average. | ||
self do: [ :observationX | sum := sum + ((observationX - mean) squared) ]. | ||
standardDeviation := (sum/self size) sqrt. | ||
^ standardDeviation | ||
] |
Oops, something went wrong.