Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/DataFrame/Array.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'Array' }
Extension { #name : #Array }

{ #category : '*DataFrame' }
{ #category : #'*DataFrame' }
Array >> calculateDataType [

| types |
Expand All @@ -18,7 +18,7 @@ Array >> calculateDataType [
^ UndefinedObject
]

{ #category : '*DataFrame' }
{ #category : #'*DataFrame' }
Array >> leastCommonSuperclassOf: firstClass and: secondClass [
"Determines the closest element of class hierarchy which is the common ancestor of two given classes"

Expand All @@ -40,7 +40,7 @@ Array >> leastCommonSuperclassOf: firstClass and: secondClass [
^ Object
]

{ #category : '*DataFrame' }
{ #category : #'*DataFrame' }
Array >> sortIfPossible [
"Sort if possible"

Expand Down
4 changes: 2 additions & 2 deletions src/DataFrame/Behavior.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : 'Behavior' }
Extension { #name : #Behavior }

{ #category : '*DataFrame-Core-Base' }
{ #category : #'*DataFrame-Core-Base' }
Behavior >> inheritsFromOrEqualTo: aClass [
"Answer whether the argument, aClass, is equal to the receiver or belongs to its superclass chain."

Expand Down
14 changes: 7 additions & 7 deletions src/DataFrame/Collection.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Extension { #name : 'Collection' }
Extension { #name : #Collection }

{ #category : '*DataFrame-Core-Base' }
{ #category : #'*DataFrame-Core-Base' }
Collection >> ** arg [

^ self raisedTo: arg
]

{ #category : '*DataFrame' }
{ #category : #'*DataFrame' }
Collection >> asDataFrame [

| numberOfRows numberOfColumns dataFrame |
Expand All @@ -31,26 +31,26 @@ Collection >> asDataFrame [
^ dataFrame
]

{ #category : '*DataFrame-Core-Base' }
{ #category : #'*DataFrame-Core-Base' }
Collection >> asDataSeries [

^ DataSeries newFrom: self
]

{ #category : '*DataFrame-Core-Base' }
{ #category : #'*DataFrame-Core-Base' }
Collection >> closeTo: aCollection [

^ (self - aCollection) inject: true into: [ :accum :each |
accum and: (each closeTo: 0) ]
]

{ #category : '*DataFrame-Core-Base' }
{ #category : #'*DataFrame-Core-Base' }
Collection >> variance [

^ self stdev squared
]

{ #category : '*DataFrame' }
{ #category : #'*DataFrame' }
Collection >> withSeries: aDataSeries collect: twoArgBlock [
"Collect and return the result of evaluating twoArgBlock with corresponding elements from this collection and aDataSeries."
| result |
Expand Down
10 changes: 4 additions & 6 deletions src/DataFrame/DataCorrelationMethod.class.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Class {
#name : 'DataCorrelationMethod',
#superclass : 'Object',
#category : 'DataFrame-Math',
#package : 'DataFrame',
#tag : 'Math'
#name : #DataCorrelationMethod,
#superclass : #Object,
#category : 'DataFrame-Math'
}

{ #category : 'comparing' }
{ #category : #comparing }
DataCorrelationMethod class >> between: x and: y [
"Calcualte the correlation coefficient between two data series"
self subclassResponsibility
Expand Down
Loading