Better variable namings
This commit is contained in:
parent
382dcd9954
commit
986f4a83bc
@ -1,11 +1,11 @@
|
||||
*Socialmetrica
|
||||
periodsSince: startingDate until: endingDate
|
||||
| endings subperiodDuration |
|
||||
| borders subperiodDuration |
|
||||
subperiodDuration := (endingDate - startingDate) / self.
|
||||
endings := OrderedCollection new.
|
||||
endings add: startingDate.
|
||||
borders := OrderedCollection new.
|
||||
borders add: startingDate.
|
||||
1 to: self do: [ :i | | ending |
|
||||
ending := startingDate + (subperiodDuration * i).
|
||||
endings add: ending.
|
||||
borders add: ending.
|
||||
].
|
||||
^ endings
|
||||
^ borders
|
Loading…
Reference in New Issue
Block a user