Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dataset ¶
Dataset ccontains a slice of pitches as well as the min and max date contained within the pitch slice
type Pitch ¶
type Pitch struct { PitchType string `csv:"pitch_type"` RawGameDate string `csv:"game_date"` GameDate time.Time `csv:"-"` ReleaseSpeed float64 `csv:"release_speed"` ReleasePosX float64 `csv:"release_pos_x"` ReleasePosZ float64 `csv:"release_pos_z"` ReleasePosY float64 `csv:"release_pos_y"` PlayerName string `csv:"player_name"` Batter int `csv:"batter"` Pitcher int `csv:"pitcher"` Events string `csv:"events"` Description string `csv:"description"` Zone int `csv:"zone"` Des string `csv:"des"` GameType string `csv:"game_type"` Stand string `csv:"stand"` PThrows string `csv:"p_throws"` HomeTeam string `csv:"home_team"` AwayTeam string `csv:"away_team"` Type string `csv:"type"` HitLocation int `csv:"hit_location"` BbType string `csv:"bb_type"` Balls int `csv:"balls"` Strikes int `csv:"strikes"` GameYear int `csv:"game_year"` // Might need to change this to datetime obj PfxX float64 `csv:"pfx_x"` PfxZ float64 `csv:"pfx_z"` PlateX float64 `csv:"plate_x"` PlateZ float64 `csv:"plate_z"` On3B int `csv:"on_3b"` On2B int `csv:"on_2b"` On1B int `csv:"on_1b"` OutsWhenUp int `csv:"outs_when_up"` Inning int `csv:"inning"` InningTopbot string `csv:"inning_topbot"` HcX float64 `csv:"hc_x"` HcY float64 `csv:"hc_y"` Umpire int `csv:"umpire"` Vx0 float64 `csv:"vx0"` Vy0 float64 `csv:"vy0"` Vz0 float64 `csv:"vz0"` Ax float64 `csv:"ax"` Ay float64 `csv:"ay"` Az float64 `csv:"az"` SzTop float64 `csv:"sz_top"` SzBot float64 `csv:"sz_bot"` HitDistanceSc int `csv:"hit_distance_sc"` LaunchSpeed float64 `csv:"launch_speed"` LaunchAngle float64 `csv:"launch_angle"` EffectiveSpeed float64 `csv:"effective_speed"` ReleaseSpinRate int `csv:"release_spin_rate"` ReleaseExtension float64 `csv:"release_extension"` GamePk int `csv:"game_pk"` Pitcher1 int `csv:"pitcher.1"` Fielder2 int `csv:"fielder_2"` Fielder3 int `csv:"fielder_3"` Fielder4 int `csv:"fielder_4"` Fielder5 int `csv:"fielder_5"` Fielder6 int `csv:"fielder_6"` Fielder7 int `csv:"fielder_7"` Fielder8 int `csv:"fielder_8"` Fielder9 int `csv:"fielder_9"` EstimatedBaUsingSpeedangle float64 `csv:"estimated_ba_using_speedangle"` EstimatedWobaUsingSpeedangle float64 `csv:"estimated_woba_using_speedangle"` WobaValue float64 `csv:"woba_value"` WobaDenom float64 `csv:"woba_denom"` BabipValue float64 `csv:"babip_value"` IsoValue float64 `csv:"iso_value"` LaunchSpeedAngle int `csv:"launch_speed_angle"` AtBatNumber int `csv:"at_bat_number"` PitchNumber int `csv:"pitch_number"` PitchName string `csv:"pitch_name"` HomeScore int `csv:"home_score"` AwayScore int `csv:"away_score"` BatScore int `csv:"bat_score"` FldScore int `csv:"fld_score"` PostAwayScore int `csv:"post_away_score"` PostHomeScore int `csv:"post_home_score"` PostBatScore int `csv:"post_bat_score"` PostFldScore int `csv:"post_fld_score"` IfFieldingAlignment string `csv:"if_fielding_alignment"` OfFieldingAlignment string `csv:"of_fielding_alignment"` SpinAxis int `csv:"spin_axis"` DeltaHomeWinExp float64 `csv:"delta_home_win_exp"` DeltaRunExp float64 `csv:"delta_run_exp"` }
Pitch is the struct representation of a single pitch recorded by MLB's statcast system
Click to show internal directories.
Click to hide internal directories.