Better variable namings

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-15 08:49:20 -05:00
parent 382dcd9954
commit 986f4a83bc

View File

@ -1,11 +1,11 @@
*Socialmetrica *Socialmetrica
periodsSince: startingDate until: endingDate periodsSince: startingDate until: endingDate
| endings subperiodDuration | | borders subperiodDuration |
subperiodDuration := (endingDate - startingDate) / self. subperiodDuration := (endingDate - startingDate) / self.
endings := OrderedCollection new. borders := OrderedCollection new.
endings add: startingDate. borders add: startingDate.
1 to: self do: [ :i | | ending | 1 to: self do: [ :i | | ending |
ending := startingDate + (subperiodDuration * i). ending := startingDate + (subperiodDuration * i).
endings add: ending. borders add: ending.
]. ].
^ endings ^ borders