summaryrefslogtreecommitdiff
path: root/ms/ms.go
diff options
context:
space:
mode:
Diffstat (limited to 'ms/ms.go')
-rw-r--r--ms/ms.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ms/ms.go b/ms/ms.go
index da2d201..fc0fe95 100644
--- a/ms/ms.go
+++ b/ms/ms.go
@@ -137,3 +137,7 @@ func (ma *MathematicalSeries[T]) IsNormallyDistributed() bool {
func (ma *MathematicalSeries[T]) Values() []T {
return ma.elements
}
+
+func (ma *MathematicalSeries[T]) Size() int {
+ return len(ma.elements)
+}