New statistics related models and handlers.
This commit is contained in:
9
models/machine.go
Normal file
9
models/machine.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package models
|
||||
|
||||
type MachineUsage struct {
|
||||
Machine string
|
||||
DrawsUsed int
|
||||
PctOfDraws float64
|
||||
FirstUsed string
|
||||
LastUsed string
|
||||
}
|
||||
15
models/prediction.go
Normal file
15
models/prediction.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
type NextMachineBallsetPrediction struct {
|
||||
NextDrawDate string
|
||||
CurrentMachine string
|
||||
EstimatedNextMachine string
|
||||
MachineTransitionPct float64
|
||||
CurrentBallset sql.NullString
|
||||
EstimatedNextBallset sql.NullString
|
||||
BallsetTransitionPct sql.NullFloat64
|
||||
}
|
||||
18
models/statistics.go
Normal file
18
models/statistics.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
type TopNum struct {
|
||||
Number int
|
||||
Frequency int
|
||||
}
|
||||
|
||||
type Pair struct {
|
||||
A int
|
||||
B int
|
||||
Frequency int
|
||||
}
|
||||
|
||||
type ZScore struct {
|
||||
Ball int
|
||||
Recent int
|
||||
Z float64
|
||||
}
|
||||
Reference in New Issue
Block a user