diff options
| author | Will Hawkins <[email protected]> | 2022-11-07 10:11:09 -0500 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-11-07 10:11:26 -0500 |
| commit | f7d143bcf8703c41a39d9b8e7896b6e7468d6fd7 (patch) | |
| tree | c2ca0999d4f693fa3900ecdb280a5fae3cccbd1b /ms/ms.go | |
| parent | ea39f3e0ddd0b35bf649477f628fabbc0c1ca424 (diff) | |
Add Size() method for MathmematicalSeries.
Diffstat (limited to 'ms/ms.go')
| -rw-r--r-- | ms/ms.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) +} |
