-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
36 lines (31 loc) · 994 Bytes
/
main.go
File metadata and controls
36 lines (31 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"fmt"
"github.com/pmrt/suspx/simulation"
"github.com/pmrt/suspx/utils"
)
const (
// Separators for easy reading
AppSection = "=============================================================="
Section = "-----------"
)
// TODO - Make `out` to default to params e.g.: cd5_m14010_t12.png
// TODO - Maybe we could experiment with detecting users with cooldown of 20
// minutes, running a simulation to detect users with consistent 20 minutes
// between pixels. Then run another simulation with only those users, this could
// improve the results of cd > 5
func main() {
fmt.Println(AppSection)
datasets, filestats := utils.OrderCSV()
fmt.Printf("Datasets (%d): %v\n", len(datasets), datasets)
fmt.Printf(
"First rows of datasets range from: (%v) to (%v)\n",
filestats[0].FirstRowTimestamp, filestats[len(filestats)-1].FirstRowTimestamp,
)
fmt.Println(Section)
simulation.New(simulation.SimulationOptions{
Datasets: datasets,
}).
Setup().
Run()
}