Calculating time subperiods for tweets histogram.
This commit is contained in:
parent
0da5c06527
commit
382dcd9954
@ -0,0 +1,11 @@
|
||||
*Socialmetrica
|
||||
periodsSince: startingDate until: endingDate
|
||||
| endings subperiodDuration |
|
||||
subperiodDuration := (endingDate - startingDate) / self.
|
||||
endings := OrderedCollection new.
|
||||
endings add: startingDate.
|
||||
1 to: self do: [ :i | | ending |
|
||||
ending := startingDate + (subperiodDuration * i).
|
||||
endings add: ending.
|
||||
].
|
||||
^ endings
|
3
Socialmetrica.package/Integer.extension/properties.json
Normal file
3
Socialmetrica.package/Integer.extension/properties.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"name" : "Integer"
|
||||
}
|
Loading…
Reference in New Issue
Block a user